Yes, I've been trying solution number 3, but that doesn't work at all. The
browser doesn't like and renders the link incorrectly.

I'm now trying solution 1, as suggested, as below:

<html:link action='/scopeAction'
          paramId='<%=value%>'
          paramName='scopeForm'
        paramProperty='row' >
...
</html:link>

I've tried different permutations to set the value for the row property, but
had no success...  I read the link but that wasn't helpful at all.  What I
mean is, it's not clear to me how to set the value...  In the case above,
the row is not being set.

-----Original Message-----
From: Paul, R. Chip [mailto:[EMAIL PROTECTED]
Sent: 27 February 2004 15:59
To: 'Struts Users Mailing List'
Subject: RE: html:link action - how to append query string


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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to