You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Bryce Nesbitt <br...@obviously.com> on 2006/04/26 07:17:25 UTC

With resin, getting rid of /home.do at the root ( www.foo.org/home.do ).

All;

I've Goggled, and searched this list, but can't get a
workable solution.  I was handed a struts webapp,
which is now deployed as ROOT.war

Now I'd like to get rid of the "home.do" that comes
up when the root of the site is loaded,
e.g.:  http://www.foo.org/home.do

I've tried an  index.jsp with:
    <jsp:forward page="/home.do" />

And in WEB-INF/web.xml, placing:
    <welcome-file-list>
       <welcome-file>home.do</welcome-file>
    </welcome-file-list>

And in my apache httpd.conf:
    <VirtualHost 69.59.XXX.7X:80>
        Redirect   /  /home.do
    </VirtualHost>

And in resin.conf:
    <war-dir id='/vol0/deployed/ccs_website/webapps'/>
    <web-app id='/' app-dir='/vol0/deployed/blah/ROOT'>
    </web-app>

And even played with getting rid of .do totally with:
     <servlet-mapping>
        <servlet-name>action</servlet-name>
        <url-pattern>*.do</url-pattern>
    </servlet-mapping>


Clearly I'm flailing.

The "home.do" comes up both when the site is initially
loaded, and when an internal link goes back to the
home page.  "home.do", and in fact the entire ".do"
extensions are undesirable.  We don't want people
linking to our website, using a reference to a
specific server technology which will probably change.

        Bryce Nesbitt

-- 
----
Visit http://www.obviously.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: With resin, getting rid of /home.do at the root ( www.foo.org/home.do ).

Posted by Leon Rosenberg <ro...@googlemail.com>.
does resin support url rewriting?
btw, another, dirty solution, is to place an index.jsp with something like this:
...
<iframe width=100% height=100% src="home.do"/>
...
may not work on all browsers though...

regards
Leon

On 4/26/06, Bryce Nesbitt <br...@obviously.com> wrote:
> All;
>
> I've Goggled, and searched this list, but can't get a
> workable solution.  I was handed a struts webapp,
> which is now deployed as ROOT.war
>
> Now I'd like to get rid of the "home.do" that comes
> up when the root of the site is loaded,
> e.g.:  http://www.foo.org/home.do
>
> I've tried an  index.jsp with:
>     <jsp:forward page="/home.do" />
>
> And in WEB-INF/web.xml, placing:
>     <welcome-file-list>
>        <welcome-file>home.do</welcome-file>
>     </welcome-file-list>
>
> And in my apache httpd.conf:
>     <VirtualHost 69.59.XXX.7X:80>
>         Redirect   /  /home.do
>     </VirtualHost>
>
> And in resin.conf:
>     <war-dir id='/vol0/deployed/ccs_website/webapps'/>
>     <web-app id='/' app-dir='/vol0/deployed/blah/ROOT'>
>     </web-app>
>
> And even played with getting rid of .do totally with:
>      <servlet-mapping>
>         <servlet-name>action</servlet-name>
>         <url-pattern>*.do</url-pattern>
>     </servlet-mapping>
>
>
> Clearly I'm flailing.
>
> The "home.do" comes up both when the site is initially
> loaded, and when an internal link goes back to the
> home page.  "home.do", and in fact the entire ".do"
> extensions are undesirable.  We don't want people
> linking to our website, using a reference to a
> specific server technology which will probably change.
>
>         Bryce Nesbitt
>
> --
> ----
> Visit http://www.obviously.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org