struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Winters, Jason" <jwint...@Inst.StrykerCorp.Com>
Subject RE: Setting initial page to be an action
Date Thu, 01 Feb 2001 13:50:45 GMT
I had the same results using Tomcat 3.2.  I ended up taking Ted's advice and
used a logic:redirect in my index.jsp page that redirects to if the
request scope beans that are needed are not there.  Thanks for your help


-----Original Message-----
From: renzo estrella []
Sent: Wednesday, January 31, 2001 7:39 PM
Subject: Re: Setting initial page to be an action

I tried this a couple of days ago but the results
 back where a directly listing. I also had to add
 an entry in my action.xml to handle "index" action
 but it still returned the directory listing.
While specifying does give the correct
Perhaps this behavior is due to weblogic5.1 ?

--- "Craig R. McClanahan"
<> wrote:
> "Winters, Jason" wrote:
> > I'm trying to setup my application so that the
> initial page is an action.
> > When the user enters a URL like this,
> http://server/myapp they should be
> > sent to http://server/myapp/  At the
> moment, they get forwarded to
> > http://server/myapp/index.jsp which crashes
> because stuff that was setup in
> > the index action does not exist.
> >
> In your web.xml file, you can define a "welcome
> file" that is used by the
> servlet container (that's how it knows to try
> index.html or index.jsp).  So,
> you could add something like this:
>     <welcome-file-list>
>         <welcome-file></welcome-file>
>     </welcome-file-list>
> One thing to note is that your method will
> get called for any
> "directory name" within the app as well.
> >
> > Any ideas on how to accomplish this would be
> greatly appreciated!
> >
> > Jason Winters
> Craig McClanahan

Get personalized email addresses from Yahoo! Mail - only $35 
a year!

View raw message