I would recommend using the html-el tag library, in which case the code
should look like that:

<html:link action='/scopeAction?row={$value}'>

See here for an explanation on how to utilize the EL (expression
language):

http://javaboutique.internet.com/tutorials/Struts_EL/


Regards,

Tomeu

-----Mensagem original-----
De: Leticia Golubov [mailto:[EMAIL PROTECTED] 
Enviada: sexta-feira, 27 de Fevereiro de 2004 15:50
Para: Struts User Mailing List
Assunto: 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]

Reply via email to