调查问卷系统问卷发布页面数据的获取:
import java.util.ArrayList; import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.servlet.ModelAndView;
import com.ultrawise.survey.core.base.BaseContoller; import com.ultrawise.survey.core.base.ServiceException; import com.ultrawise.survey.module.surevybase.service.TSurveyDataAnswerService; import com.ultrawise.survey.module.user.vo.TSurveyInfoUsers;
@Controller
@RequestMapping("/symanage/answer")
public class TSurveyDataAnswerControl extends BaseContoller {
@Autowired TSurveyDataAnswerService tSurveyDataAnswerService; @Autowired
@RequestMapping(value = "answer.htm", method = RequestMethod.POST) public ModelAndView login(HttpServletRequest request) throws ServiceException { //查询问题 List ls for(ls){
String[] val =request.getParameterValues("q"+list.id) }
return new ModelAndView("/answer/"); } }