Hi,
Something like this:
<a href="$link.setPage('MyPage.vm').setAction('MyAction').addPathInfo('foo',
'bar')">My Link</a>
That would execute the doPerform(..) method.
If you want a particular method in the action to be invoked, then add:
.addPathInfo('eventsubmit_doMethod', '')
- where "doMethod" is the name of the name you'd like to invoke in
your action class
Regards,
Daniel
On Wed, 19 May 2004, Melanie Philpot wrote:
> Can I pass parameters from a link to an action?
> How do I go about it?
>
> Basically I want a link to change a layout, so I have set up an action which it goes
> to.
> >From the action I want to set the right layout and know where I've linked from so I
> >can set the right screen. (hence the parameter)
>
> Thanks for any help
>
> Melanie
>
> ===========================================================
> Melanie Philpot
> Web Developer
> Central Government Division
> Anite Public Sector
> 110 Fleet Road
> Fleet
> Hampshire
> GU51 4BL
>
> tel: 01252 360650
> ddi: 01252 360668
> fax: 01252 819729
>
> email:mailto:[EMAIL PROTECTED]
> web: http://www.aniteps.com
> ===========================================================
> Registered Office: Anite Public Sector: 100 Longwater Avenue, GreenPark, Reading,
> Berkshire, RG2 6GP. VAT No. 732 9280 28
> Registered in England No. 4045673
>
> This email and any files transmitted with it are confidential and are intended
> solely for the use of the individual or entity to whom they are addressed. If you
> have received this email in error please inform the sender and do not print, copy or
> disclose its contents to any other person nor use it for any purpose other than for
> what it was intended.
> nor use it for any purpose other than for what it was intended.
>
>
>
> Scanned for viruses by MessageLabs. The integrity and security of this message
> cannot be guaranteed. This email is intended for the named recipient only, and may
> contain confidential information and proprietary material. Any unauthorised use or
> disclosure is prohibited.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]