And i would like to use the same action for all 9 of them.
Got at clearer picture of what I what?
Jeff Beal wrote:
<html:link action="view" paramId="display" paramName="bean1">text</html:link>
generates the same thing as
<a href="view.do?display=<%=bean1%>">text</a>
<html:link action="view" paramId="display" paramName="bean1" paramProperty="prop1">text</html:link
generates the same thing as
<a href="view.do?display=<%=bean1.getProp1()%>">text</a>
<html:link action="view" name="map1">text</html:link>
works similarly, but it loops through the map identified by the name 'map1' for the name/value pairs. It will generate something like:
<a href="view.do?param1=value1¶m2=value2¶m3=value3">text</a>
Using the page attribute instead of the action attribute may be more along the lines of what you want. I think
<html:link page="view.do?display=page1">text</html:link>
will display
<a href="view.do?display=page1">text</a>
But, I really don't know what you need, so all of these may be off the mark.
-- Jeff
marc wrote:
Have read that 1000 times, don't understand it(I now that it's probely me how is a bit stupid)
Can you give me a and example on have it works, and have I read the string in my action class again.
Thanks
Jeff Beal wrote:
marc wrote:
I have a jsp page with 3 html:link tags on it. I what all these links to point to the same action, but each of them need to go to there own jsp site. So I need to set/pass on a string with each link, so that I can send the request the right place.
How do I do that??
This is explained in pretty good detail at http://struts.apache.org/userGuide/struts-html.html#link
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]