You have I think three choices, in preferred order:
1. Use the paramName, paramScope, and paramProperty attributes of
<html:link>
(see
http://jakarta.apache.org/struts/userGuide/struts-html.html#link)
This may not work with the page scoped variable defined the way you've
done it, I don't know.
2. Use Struts-EL and add ${value} into your link string
3. <html:link page='/scopeAction.do?row="<% =value %>"'
I think your core problem is to pass an variable without the param
attributes you need to contstuct and send a URL, not the name of an action?
-----Original Message-----
From: Leticia Golubov [mailto:[EMAIL PROTECTED]
Sent: Friday, February 27, 2004 9:50 AM
To: Struts User Mailing List
Subject: html:link action - how to append query string
I have a simple question, for a change... :)
Given
<% String value="some Value" %>
and
<html:link action='/scopeAction?row=???'>
how do I append the java var 'value' to the end of the action?
If I hardcode it, it works and the behaviour is as expected, i.e.:
<html:link action='/scopeAction?row=3'>
Note I have tried the following and failed:
<html:link action='/scopeAction?row=<=value>'
<html:link action='/scopeAction?row="<=value>"'
<html:link action="/scopeAction?row='<=value>'"
Also searched on internet but didn't find anything as yet...
regards
NOTE: I don't want to use <html:hidden property="row" value="<%=value>"/> in
this instance...
---------------------------------------------------------------------
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]