开发者

Is there any way to pass values from one page to another other than GET AND POST in JSP?

开发者 https://www.devze.com 2023-02-11 05:52 出处:网络
For instance I h开发者_C百科ave a page form.jsp contaiing a form and process.jsp that does all processing on the received data. When I submit data from page form.jsp,it goes to process.jsp which does

For instance I h开发者_C百科ave a page form.jsp contaiing a form and process.jsp that does all processing on the received data. When I submit data from page form.jsp,it goes to process.jsp which does all the processing and creates a table. I want to send this table to form.jsp.Is there any way to do thi?


Use response.sendredirect("form.jsp"). You can add your table in session and access it in form.jsp. Also can use url like "form.jsp?table"+tableData in response.sendredirect.


Don't do the postprocessing in a JSP. Use a servlet.


You would use Encode URL Redirect for encoding your URL.

0

精彩评论

暂无评论...
验证码 换一张
取 消