• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

servlet response can be sent to same servlet as request

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys
Plz help me

If i want to send the response of one servlet and the same servlet handels the response also as request.

i.e if there is Form 1 in Servlet1 whose target is also servlet1 .

Is it possible

Sam
 
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why you wanna do this. Any rational reason for that??
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Sam In:

i.e if there is Form 1 in Servlet1 whose target is also servlet1 .



I don't see any reason why not. It can be beneficial to have a single servlet handling all the requests for a given functional area or even an entire application. The design pattern is called 'Front Controller', I believe.

GM
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Gerry Mason:


I don't see any reason why not. It can be beneficial to have a single servlet handling all the requests for a given functional area or even an entire application. The design pattern is called 'Front Controller', I believe.

GM



yes, even we can have just one servlet in command pattern as well.
but here its sort of something i couldn't get. may be you tried to say something like,

"sending request from page 1 to Servlet A and gettin response as page 2 and then sending the same response as request from page 2 to servlet A."

I think it likely happens, nothing new as such. did you mean this??
 
I'm still in control here. LOOK at this tiny ad!
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic