Q about A tags with Struts!

2001-10-23 Thread O'Neill, John H

Hi all,

hope someone can help me with this!
I want to send a request to an action using the following code

A href= /LaunchPad2Action.doBFiscal Analytic/B/A

The problem is that I want to send up parameters aswell as you would do
normally like :

A href=/LaunchPad2Action?fundId=7legalName=canada_fund etc...

Could someone point out the best way to do this with Struts - is there a tag
to do this?

Cheers,
John

John O' Neill
Fidelity Investments Systems Company (FISC) Ireland Ltd.
Tel (work) : 00 353 1 6141258
mailto:johnh.o'[EMAIL PROTECTED]






Re: Q about A tags with Struts!

2001-10-23 Thread Gregor Rayman

O'Neill, John H JohnH.O'[EMAIL PROTECTED] asks:



 Hi all,

 hope someone can help me with this!
 I want to send a request to an action using the following code

 A href= /LaunchPad2Action.doBFiscal Analytic/B/A

 The problem is that I want to send up parameters aswell as you would do
 normally like :

 A href=/LaunchPad2Action?fundId=7legalName=canada_fund etc...

 Could someone point out the best way to do this with Struts - is there a
tag
 to do this?

Have a look at the html:link tag.

--
gR




RE: Q about A tags with Struts!

2001-10-23 Thread Stephen Owens

You can do this with the html:link tag. For a single parameter using
a bean property as a value you woud do:
html:link href=/LaunchPad2Action.do paramID=fundId paramName=fund
paramProperty=id

which would create
a href=/LaunchPad2Action.do?fundId=7...

For multiple parameters you have to use a Map stored as a bean:
html:link href=/LaunchPad2Action.do name=params

This form uses the keys of the Map as the names of the parameters, with
the String value associated with the key as the value for that
parameter. For more detail see
http://jakarta.apache.org/struts/struts-html.html#link.

regards,

Stephen Owens
Corner Software


-Original Message-
From: O'Neill, John H [mailto:JohnH.O'[EMAIL PROTECTED]]
Sent: Tuesday, October 23, 2001 9:22 AM
To: '[EMAIL PROTECTED]'
Subject: Q about A tags with Struts!


Hi all,

hope someone can help me with this!
I want to send a request to an action using the following code

A href= /LaunchPad2Action.doBFiscal Analytic/B/A

The problem is that I want to send up parameters aswell as you would do
normally like :

A href=/LaunchPad2Action?fundId=7legalName=canada_fund etc...

Could someone point out the best way to do this with Struts - is there a
tag
to do this?