File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes struts and proxy problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts and proxy problem" Watch "struts and proxy problem" New topic
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