开发者

Jsp Flow For search and update Form

I have 3 jsp . Lets call them search.jsp,showResult.jsp,updateResult.jsp.

In search.jsp i have 8 fields according to which i have to search the results from database. So when i submit the search.jsp ,it call showResult.jsp , in which i am getting all these fields using request.getParameter. After that i show all the results in showResult.jsp. All the result rows have Details button in the last, and when i click it , i opened a popup which has all the details and i can update it. The popup also have some files input type to upload imag开发者_开发问答es.

So my problem is , when i click the update button i call the updateResult.jsp and after updating the values , how can i go again to showResult.jsp with the same search results.

I dont want to use URL rewriting as it make the URL long and show all the values in url. I cannot use AJAX to update becoz how can i get the path of a file in j.s methos.

Please help me. vikas


You have access to the popup from the original window: one way is to use Ajax and replace the content of the popup with the HTML results of the new search results. IMO I wouldn't use a popup, but that's a different issue.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜