Hi,
   I am doing things like that. "mainscreen" is my main page. The mapping
should be like this. Isn't it?
       <action
            path="logoff"
            type="your.class.goes.here"
            >
            <forward name="success" path="login path here" />
        </action>       

 Will my href be <a href="logoff.jsp"></a> this? But logoff doesn't have any
JSP? It should be the login.jsp ?
        
        A use case that is related is this.

      1. User presses "reload" button.
      2. If fires a "reload" action.This action does something useful.
      3. Forwards to the same page.
Thanks,
Mohan

-----Original Message-----
From: Quentin.Cope [mailto:Quentin.Cope@;cpg-logistics.com]
Sent: Thursday, October 31, 2002 4:00 PM
To: Struts Users Mailing List
Subject: RE: actions only for html:form ?


Mohan

I think what you want to do is to setup an action mapping something like:

       <action
            path="mainscreen"
            type="your.class.goes.here"
            >
            <forward name="success" path="loggoff path here" />
        </action>       

Then create an action class and do what you want in the execute method.

Regards

Quentin

-----Original Message-----
From: Mohan Radhakrishnan [mailto:MohanR@;hclcomnet.co.in]
Sent: 31 October 2002 10:23
To: 'Struts Users Mailing List'
Subject: actions only for html:form ?


Hi,
    <a href="mainscreen.jsp"></a>

  I am trying to find out how to use the above "href" representation to fire
an action. I need to fire an action for "reload","logoff" etc. Sorry if this
is too elementary.

   The html:form tag has an action. How do I fire an action for logging off
if I have an image as a menu? Do I just specify <a href="logoff.jsp"></a> ?
   A bit of explanation would really help.

         A use case that is related is this.

      1. User presses "reload" button.
      2. If fires a "reload" action.This action does something useful.
      3. Forwards to the same page.
Thanks,
Mohan

--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@;jakarta.apache.org>


--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@;jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

Reply via email to