struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Graham" <dgraham1...@hotmail.com>
Subject RE: Action without a form
Date Thu, 12 Sep 2002 21:25:34 GMT
That's the best way to do it.

Dave

>From: "Bartley, Chris P [PCS]" <cbartl03@sprintspectrum.com>
>Reply-To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
>To: "'Struts Users Mailing List'" <struts-user@jakarta.apache.org>
>Subject: RE: Action without a form
>Date: Thu, 12 Sep 2002 16:22:03 -0500
>
>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:dgraham1980@hotmail.com]
> > Sent: Thursday, September 12, 2002 4:13 PM
> > To: struts-user@jakarta.apache.org
> > 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" <PVChalla@ftb.com>
> > >Reply-To: "Struts Users Mailing List"
> > <struts-user@jakarta.apache.org>
> > >To: "'Struts Users Mailing List'" <struts-user@jakarta.apache.org>
> > >CC: "'dgraham1980@hotmail.com'" <dgraham1980@hotmail.com>
> > >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:dgraham1980@hotmail.com]
> > >Sent: Thursday, September 12, 2002 4:02 PM
> > >To: struts-user@jakarta.apache.org
> > >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" <PVChalla@ftb.com>
> > > >Reply-To: "Struts Users Mailing List"
> > <struts-user@jakarta.apache.org>
> > > >To: "'struts-user@jakarta.apache.org'"
> > <struts-user@jakarta.apache.org>
> > > >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:struts-user-unsubscribe@jakarta.apache.org>
> > > >For additional commands, e-mail:
> > > ><mailto:struts-user-help@jakarta.apache.org>
> > >
> > >
> > >
> > >
> > >_________________________________________________________________
> > >MSN Photos is the easiest way to share and print your photos:
> > >http://photos.msn.com/support/worldwide.aspx
> > >
> > >
> > >--
> > >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>
> >
> >
> >
> >
> > _________________________________________________________________
> > Send and receive Hotmail on your mobile device: http://mobile.msn.com
> >
> >
> > --
> > 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>




_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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


Mime
View raw message