Have you tried
<html:link page="<%= "/scopeAction.do?row=" + value %>"> 
?

--- Leticia Golubov <[EMAIL PROTECTED]> wrote:
> I just don't understand why the 3rd option doesn't work for me...
> 
> I've tried all possible variations of it but I just can't seem to be able
> to
> parse
> <%value%> to the query string... does anybody know why?
> 
> so <html:link page="/scopeAction.do?row=<%= value %>"> doesn't work nor
> does
> <html:link page="/scopeAction.do?row='<%= value %>'" and so on...
> 
> regards
> 
> -----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]
> 


__________________________________
Do you Yahoo!?
Get better spam protection with Yahoo! Mail.
http://antispam.yahoo.com/tools

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

Reply via email to