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.do"><B>Fiscal Analytic</B></A>

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

<A href="/LaunchPad2Action?fundId=7&legalName=canada_fund"> etc...

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

Reply via email to