Note that the <html:link> tag will do URL rewriting for you. So, to take advantage of that in your case, you might consider using the <html:rewrite> tag in your link, like this:
<a href="<html:rewrite forward="forward.foo"/>">my link</a> Where you've defined "forward.foo" in your struts-config.xml like this: <forward name="forward.foo" path="/app/someAction.do"/> chris > -----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]>