I've been trying to get struts to do what I want, and I haven't been 
successful.  Since what I'm trying to do is a bit complicated, I'll explain 
that first =]

I want the user of my web application to go to the URL
http://webserver/path/i/want
Apache then forwards the request to another url, hitting a web application at
http://webserver/mywebapp/
This isn't an html redirect, so the url the user sees doesn't change.

The user then clicks a link in the app, and sees this address in their 
location bar:
http://webserver/path/i/want/action.do
which apache forwards to my web app.

Everything works fine with struts so far. The problem comes when the user 
submits a form.  They are then sent here:
http://webserver/mywebapp/action.do

My <html:form action="/action"> tag was written in url form as 
"/mywebapp/action.do".  I want it to write out "action.do", so the user still 
sees http://webserver/path/i/want/action.do, and never sees mywebapp 
anywhere.

Is there any way to do this?  I've been looking for struts config stuff, and 
the closest thing I found was the pagePattern attribute on the controller tag 
in the struts-config file.  Unfortunately, it seems this attribute only 
affects actual page attributes and not action attributes.

Is there some way to do this that I have missed?

Thanks.

-- 
Jonathan Corbin
Payment Technologies, Inc
Phone: 717-506-2200 x2565

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to