This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

return back to same page

 
rakhi sinha
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 167
Hibernate Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic