亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

不能向頁面傳值

不能向頁面傳值

小蕁3408782 2016-08-04 17:42:19
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { // 設置編碼 req.setCharacterEncoding("UTF-8"); // 接受頁面得值 String command = req.getParameter("command"); String description = req.getParameter("description"); // 想頁面傳值 req.setAttribute("command", command); req.setAttribute("description", description); QueryService ?listService = ?new QueryService(); // 數據傳輸值 req.setAttribute("messageList", listService.queryMessageList(command, description)); // 查詢消息列表并傳值 req.getRequestDispatcher("/WEB-INF/jsp/back/list.jsp").forward(req, resp); } @Override protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
查看完整描述

1 回答

?
丶包菜

TA貢獻158條經驗 獲得超233個贊


頁面傳過來請求叫Request,你給頁面傳值叫Response??墒悄阋恢痹诓僮鱎equest

查看完整回答
反對 回復 2016-08-04
  • 1 回答
  • 0 關注
  • 1350 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號