 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Alessandro Rossi Guest
|
Posted: Thu May 26, 2005 2:28 pm Post subject: struts actionForward default page |
|
|
Hi,
I have a struts project deployed on a tomcat server, I would like that
when a user goes into the site ([url]http://localhost:8080/MySite)[/url], should
be executed an action, and not a jsp.
I tried to modify the web.xml file with something like
<welcome-file-list>
<welcome-file>myActionForward.do?reqCode=myReqCode</welcome-file>
</welcome-file-list>
I tried like above, but if I access to the site, it gives me the index
of all pages... and doesn't execute the actionForward.
Does anybody can help me?
Thank you
Alessandro Rossi
|
|
| Back to top |
|
 |
Lionel Guest
|
Posted: Thu May 26, 2005 3:03 pm Post subject: Re: struts actionForward default page |
|
|
Alessandro Rossi wrote:
| Quote: | Hi,
I have a struts project deployed on a tomcat server, I would like that
when a user goes into the site ([url]http://localhost:8080/MySite)[/url], should
be executed an action, and not a jsp.
|
<logic:redirect forward="myAction"> inside index.jsp.
|
|
| Back to top |
|
 |
Wendy Smoak Guest
|
Posted: Thu May 26, 2005 3:06 pm Post subject: Re: struts actionForward default page |
|
|
"Alessandro Rossi" <aleicaro (AT) libero (DOT) it> wrote
| Quote: | I have a struts project deployed on a tomcat server, I would like that
when a user goes into the site ([url]http://localhost:8080/MySite)[/url], should
be executed an action, and not a jsp.
|
Look at the 'struts-blank' webapp that ships with Struts. It includes an
example of doing what [I think you] want. (It's done in struts-config.xml,
though, and web.xml just has 'index.jsp' as a welcome file.)
--
Wendy
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|