You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Crisalyn Ramos <Cr...@morganstanley.com> on 2001/12/10 11:38:00 UTC
how can I call an Action class
Hi, all. How can I invoke an action class from a jsp page during page
load. Say my application calls index.jsp when a user logs on and when
that page is called, it invokes the the Action class. The user log on
does not come from another jsp page so I can't make use of the <form>
tag or <href> tag to invoke this action class. Any other means?
Help will be appreciated.
thanks,
Cris
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: how can I call an Action class
Posted by Burr Sutter <st...@japache.org>.
A couple of options:
1) Instead of linking (GET) or submitting to (POST) to index.jsp go to index.do instead. I assume you've already thought of that one and the login page won't let you.
2) Assuming you have control over the index.jsp, add a line that says:
<jsp:forward page="index.do"/>
I might be confused on your question, if so, please let me know.
Burr
sutter@bravepoint.com
--
Sent via jApache.org
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>