Thank you Dave,
Here is the corresponding part of struts-config.xml file. 
     <action-mappings>
         <action
            path="/logoff"
            type="com.csc.fs.crm.rrr.tc.authorization.LogoffAction">
            <forward name="SUCCESS" path="/authorization/logon.jsp"/>
            <forward name="FAILURE" path="/authorization/errors.jsp"/>

         </action>
     </action-mappings>

So, how should my href="....." look like. Can I just say href="/logoff" or
do I have to give a specific path. If I say just /logoff the system is
looking in the current directory of the jsp and says it can't find it. Can
you help me with this.

Thank you very much,
Prasad.

-----Original Message-----
From: David Graham [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 12, 2002 4:13 PM
To: [EMAIL PROTECTED]
Subject: RE: Action without a form


You invoke it just like any other url.
<a href="/app/someAction.do">my link</a>

You give it the url that the action is mapped to to invoke it.

Dave


>From: "Challa, Prasad V" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
>CC: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: RE: Action without a form
>Date: Thu, 12 Sep 2002 16:06:55 -0500
>
>Thank you Dave for your reply.
>My question is how would you call or invoke that action from your jsp. I
>know we can use html:link and forward for that but I need to do it from a
>button or a menu item or from a javacript etc.
>
>Thank you,
>Prasad.
>
>-----Original Message-----
>From: David Graham [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, September 12, 2002 4:02 PM
>To: [EMAIL PROTECTED]
>Subject: Re: Action without a form
>
>
>I'm not sure exactly what you want.  It's easy to not have a form bean
>associated with an action.  In struts-config.xml define your action like
>this:
>
><action type="com.yourcorp.YourAction"
>             path="/index"/>
>
>Dave
>
> >From: "Challa, Prasad V" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> >Subject: Action without a form
> >Date: Thu, 12 Sep 2002 15:55:28 -0500
> >
> >Hello,
> >I am trying to invoke an action class without having a form-bean 
>associated
> >with it. I know that it works with html:link tag and forward. but, can I
> >use
> >a button or href or something like that to be able to do this. Can 
>somebody
> >shed some light over this.
> >An example would be greatly appreciated.
> >
> >Thank you,
> >Prasad.
> >
> >
> >--
> >To unsubscribe, e-mail:
> ><mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail:
> ><mailto:[EMAIL PROTECTED]>
>
>
>
>
>_________________________________________________________________
>MSN Photos is the easiest way to share and print your photos:
>http://photos.msn.com/support/worldwide.aspx
>
>
>--
>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]>




_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
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