• 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

problem in redirect request object between 2 application servers

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
We are trying to send redirect request object between e application servers. The application is deployed on Websphere 4.0. We have a servlet in the non-secure server. In this servlet, we draw some information and put them into the request object. Then we forward this request object to a JSP page which is located in a secure server. Both servers are in the same Host. But in the JSP, the request object is lost during the server switch.
Can any one help us in how to getting the request object?
Thank you very much!
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Objects placed in the request context do not survive redirects. Information in the request object is only usable by servlets that you forward or include to.
Kyle
 
Guo Song
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What I really mean is that how to pass java object between 2 application servers. At such a case, because the forward can not be used (forward only accept relative URL, so can only be forward to the location with same domain name), only sendRirect(URL) can be used to switch between "http://" and "https://". At such a case, even you put your object in session, you can not get it in the next page. You can only pass some string parameters by adding the string params directly at the end of the url. Maybe creating the object again from the database is the only solution?
Thanks a lot!
 
Kyle Brown
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're pretty much right. Putting things in a shared database is one way (and probably the best way) to handle this. Another would be to put the handle to a stateful session EJB in a cookie and then reinstantiate the handle on the other side...
Kyle
 
Guo Song
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for your kind help!
 
Replace the word "snake" with "danger noodle" in all tiny ads.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic