• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

url change in restfull calls

 
subodh gupta
Ranch Hand
Posts: 203
  • Mark post as helpful
  • send pies
  • 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 ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65335
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why does it matter?
 
Kevin Chen
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic