开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜