wood burning stoves 2.0*
The moose likes Servlets and the fly likes return back to same page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "return back to same page " Watch "return back to same page " New topic
Author

return back to same page

rakhi sinha
Ranch Hand

Joined: Mar 26, 2012
Posts: 147
In my project ,i have written a servlet for uploading .i am using a servlet(first servlet) to call it .and i want some other action on button in that servlet (first servlet)from which i am calling upload servlet.i dont want to show upload servlet and want to return back to first servlet so that another action can be performed...
Anurag Verma
Ranch Hand

Joined: Mar 30, 2012
Posts: 124

This is not a proper design, still if you want to do that, then as you have forwarded the call from servlet 1 to servlet 2, you can again forward the call from servlet 2 to servlet 1. just make sure you keep some signal variable in request or session to identify whether it is a callback or a client request.
Piyush Mangal
Ranch Hand

Joined: Jan 22, 2007
Posts: 196
i dont want to show upload servlet and want to return back to first servlet so that another action can be performed...


You can always do a send redirect to the your first servlet after upload is complete.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: return back to same page
 
Similar Threads
The Original Web Page Cannot Be Found After Validation is Turned True
Access session object in struts1 action or formbean
commandLink with <rich:dataTable>, problem in pagination
Action Form
Struts Page Redirection