You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Frank Russo <fr...@yahoo.com> on 2004/06/07 19:13:15 UTC

Issue with the application context and web server alias names

I've seen something like this posted, but with no answers.
 
I have an issue where I have an alias for an application. For eg. www.company.com/home/appname is an alias for www.company.com/appname, where appname is the context name of my app.
 
When I use the html form tag in my app as follows: 
<html:form action='view.do'>
What gets renderred is:
<form action='/appname/view.do'>
That links to: www.company.com/appname/view.do. The bad thing about that is that I need to have the /home in there. It's a long story why, but it needs to be there. 
 
Is there a way to configure struts to not append the context name? That would allow the form tag to render as:
<form action='view.do'>
which doesn't have a forward slash, then everything works fine, because it will submit to www.company.com/home/appname/view.do.
 
Thanks,
Frank...


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com