Re: Calling an action before pageload

wesslan <[email protected]> Tue, 12 Dec 2006 00:22:22 CST
Newsgroups gmane.comp.java.open-symphony.webwork
Message-ID <22808773.1165904611162.JavaMail.os-j2ee@opensymphony01.managed.contegix.com>
We've some threads about this earlier and if I remember correctly, you can do it in two ways:

1) Specify index.action as start page in your web.xml
I (and several others) never got this to work so...

2) Have an index.jsp do a redirect to the action desired
[code]
<html>
<head>
   <meta http-equiv="refresh" content="0;URL=start.action">
</head>
</html>
[/code]
This is the way I do it in all my Webwork and Struts2 applications.

Hth,
Peter
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=53042&messageID=106843#106843

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]