Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts and proxy problem

 
Sriram Chandrasekaran
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I dont know if anyone faces this problem using proxies.

My application web-context is set as appName. So all requests have
to go as http://domainname.com/someproxyname/appName/login.do

This brings up the login page. However the form element has entry as follows:

<form action="/Login.do" method="POST">
...
</form>

I hope u see the problem...when i submit the page..the request goes to
http://domainname.com/appName/login.do...which is incorrect and i get a file not found error.
So whats the solution to this? how to make the action go to the right place?

thanks
Sri
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suppose you could write a filter that can rewrite everything so it takes into account the "proxied" url. I've never messed around with proxies, so that's just a wild guess though.
 
Sriram Chandrasekaran
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well filters cant be used as the post from the form would not even reach the application.

anybody?

thanks
Sri
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic