• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

return back to same page

 
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Ranch Hand
Posts: 171
Hibernate Spring Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic