Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

url change in restfull calls

 
Ranch Hand
Posts: 203
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi ranchers,

i am having a problem, what i am trying to do is:-

there are two web-application in my projects both deployed at different server and one is communicating to other via rest-full calls.

Now the problem is, while i am rendering the result from the second application the address in the address does't get changed i.e.

1) Application A & B has an controller servlet ServletA & ServletB respectively
2) Now ServletA calls ServletB and in turn gets the response jsp name which it opens(say A.jsp)
3) Everything goes well but the address bar's url doesn't get changed
4) one thing i don't wanna use send redirect

Can you help me solve this problem.
[ November 03, 2008: Message edited by: subodh gupta ]
 
Sheriff
Posts: 67634
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why does it matter?
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you don't want to use send redirect because you're worrying about the session sharing problem between A and B, do you?

if so, how about SSO?

there's a Central Authentication Service(CAS) that provided a SSO solution.


i hope that's been of some help.

have fun.
 
subodh gupta
Ranch Hand
Posts: 203
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I need to change the url because we have authentication at HTTPServer as well as at AppServer. The former uses regex based while the latter depends on the traditional session based. So, we need to change the url because of the former.

Their are majorly two reason i cannot use the sendRedirect listed below:

1) I will be tie consuming and we have a request time for each web-page which is already tough to achieve
2) Secondly i have to manage everything in a the session because request won't be persisting over the request

Also i won't be able to use the SSO because the delivery time is around the corner.
 
That new kid is a freak. Show him this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic