You don't need to do it this way - you map the JSP to an Action class in
struts-config.xml and Struts will automatically send the data to the class
when the request URL changes.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 05, 2002 1:40 PM
To: Struts Users Mailing List
Subject: RE: Call action from JSP



I don't use form because I don't need to submit any data. The action will
perform some logic against query string in request and data in session, and
forward wither to a success page or a failure page.

I could put this logic directly in JSP rather than in an action, but I
don't want so many Java code in JSP.



 

                      "Galbreath, Mark"

                      <Galbreath@tessco.       To:       "'Struts Users
Mailing List'" <[EMAIL PROTECTED]>                
                      com>                     cc:

                                               Subject:  RE: Call action
from JSP                                                      
                      09/05/2002 12:27

                      PM

                      Please respond to

                      "Struts Users

                      Mailing List"

 

 




Why would you want to call an Action class directly from a JSP (outside a
form:action block)?

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 05, 2002 1:19 PM
To: [EMAIL PROTECTED]
Subject: Call action from JSP


Could someone help me on this code:

In *.jsp:

<%
      if (condition satisfied) {
            // how to fill this line to call an action, say invoke.do?
      }
%>

Thanks.


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>







--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to