You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Lesaint Sébastien <le...@ginerativ.com> on 2005/12/14 19:05:40 UTC
forward www.myserver.net to an action
Hello,
I have a Struts (1.2.4) webApp running on my server www.myserver.net. The servlet mapping is "*.do". I want the user to be forward to the action "index.do" when she requests "www.myserver.net".
At the moment, I'm using a JSP "index.jsp" in the root directory of my webApp with a <logic:forward> tag that forward to the "index" action (quite a common practice I think).
This works fine but relies much on HTTP redirect (to www.myserver.net/ and then to www.myserver.net/index.jsp) and I would like to avoid that.
I guess the solution belongs to some configuration work on the container (as the action servlet would not know about the request on www.myserver.net) or something like that.
The webApp is running on JBoss 3.2.3 by the way.
I was wondering if someone on the list ever encountered a similar issue and would not mind point me in the direction of one or more way to solve this.
Thank you in advance,
Seb'
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: forward www.myserver.net to an action
Posted by Dave Newton <ne...@pingsite.com>.
Michael Jouravlev wrote:
>On 12/14/05, Lesaint Sébastien <le...@ginerativ.com> wrote:
>
>
>>I have a Struts (1.2.4) webApp running on my server www.myserver.net. The servlet mapping is "*.do". I want the user to be forward to the action "index.do" when she requests "www.myserver.net".
>>
>>At the moment, I'm using a JSP "index.jsp" in the root directory of my webApp with a <logic:forward> tag that forward to the "index" action (quite a common practice I think).
>>
>>This works fine but relies much on HTTP redirect (to www.myserver.net/ and then to www.myserver.net/index.jsp) and I would like to avoid that.
>>
>>
>
>Why? This is a standard approach.
>
>
Yeah, I don't see the big deal either.
On Tomcat I think I'd try changing the welcome file list and see if that
worked; I don't know the equivalent onnnnn JBoss.
Dave
Re: forward www.myserver.net to an action
Posted by Michael Jouravlev <jm...@gmail.com>.
On 12/14/05, Lesaint Sébastien <le...@ginerativ.com> wrote:
> Hello,
>
> I have a Struts (1.2.4) webApp running on my server www.myserver.net. The servlet mapping is "*.do". I want the user to be forward to the action "index.do" when she requests "www.myserver.net".
>
> At the moment, I'm using a JSP "index.jsp" in the root directory of my webApp with a <logic:forward> tag that forward to the "index" action (quite a common practice I think).
>
> This works fine but relies much on HTTP redirect (to www.myserver.net/ and then to www.myserver.net/index.jsp) and I would like to avoid that.
Why? This is a standard approach.
Michael.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org