• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts2 Action at Root

 
Lukas Benberg
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I would like to perform a Struts2 Action when the root of my Webapplication is called. I use Tomcat5 and Struts2. To make it clear, here is what I want:

- The user goes to www.myApp.org
- a Struts2 ActionClass is called: reads cookie from user and sets session attribute (i.e. login automatically)
- Struts2 ActionMapping redirects to index.jsp (which reads session attributes)

At present, what happens is:

- The user goes to www.myApp.org
- Tomcat redirects to the welcome file: index.jsp
- No action is performed.

So, is there an action name for "root" or something?

Thanks in advance!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic