AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

struts actionForward default page

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Language Programming
View previous topic :: View next topic  
Author Message
Alessandro Rossi
Guest





PostPosted: Thu May 26, 2005 2:28 pm    Post subject: struts actionForward default page Reply with 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.

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...Smile and doesn't execute the actionForward.

Does anybody can help me?
Thank you
Alessandro Rossi

Back to top
Lionel
Guest





PostPosted: Thu May 26, 2005 3:03 pm    Post subject: Re: struts actionForward default page Reply with quote



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





PostPosted: Thu May 26, 2005 3:06 pm    Post subject: Re: struts actionForward default page Reply with quote



"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
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Language Programming All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.