"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/index.do. At the moment, they get forwarded to
http://server/myapp/index.jsp which crashes
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 7:39 PM
To: [EMAIL PROTECTED]
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&qu
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/index.do. At the moment, they get forwarded to
http://server/myapp/index.jsp which crashes because stuff that was setup
If a JSP requires something created by an action, you can test for it
first, and then forward to the action if it is missing, e.g.
logic:notPresent name="myIndexBean"logic:redirect
href="index.do"//logic:notPresent
I usually put these after the taglib declarations, but before the HTML.
4 matches
Mail list logo