| Author |
struts and proxy problem
|
Sriram Chandrasekaran
Greenhorn
Joined: Oct 08, 2003
Posts: 17
|
|
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
Joined: May 29, 2003
Posts: 1258
|
|
|
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.
|
Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
|
 |
Sriram Chandrasekaran
Greenhorn
Joined: Oct 08, 2003
Posts: 17
|
|
Well filters cant be used as the post from the form would not even reach the application. anybody? thanks Sri
|
 |
 |
|
|
subject: struts and proxy problem
|
|
|