http://jakarta.apache.org/struts/userGuide/struts-html.html#link

"However, there are two ways you can append one or more dynamically defined query parameters to the hyperlink -- specify a single parameter with the paramId attribute (and its associated attributes to select the value), or specify the name (and optional property) attributes to select a java.util.Map bean that contains one or more parameter ids and corresponding values.

To specify a single parameter, use the paramId attribute to define the name of the request parameter to be submitted. To specify the corresponding value, use one of the following approaches:

  • Specify only the paramName attribute - The named JSP bean (optionally scoped by the value of the paramScope attribute) must identify a value that can be converted to a String.
  • Specify both the paramName and paramProperty attributes - The specified property getter method will be called on the JSP bean identified by the paramName (and optional paramScope) attributes, in order to select a value that can be converted to a String.

If you prefer to specify a java.util.Map that contains all of the request parameters to be added to the hyperlink, use one of the following techniques:

  • Specify only the name attribute - The named JSP bean (optionally scoped by the value of the scope attribute) must identify a java.util.Map containing the parameters.
  • Specify both name and property attributes - The specified property getter method will be called on the bean identified by the name (and optional scope) attributes, in order to return the java.util.Map containing the parameters. (......)"



Roberto Orlaede Moura Martins - CE wrote:
Mensagem

Olá a todos,

Estou iniciando e struts e gostaria de ajuda pra montar um link com parâmetros.

Estpu usando assim sem problemas:

<html:link page="/preencheform.do"><jsp:getProperty name="func" property="nome"/></html:link></td>

Como fazer para incluir mais parâmetros no link?

-----Mensagem original-----
De: daniel [mailto:[EMAIL PROTECTED]]
Enviada em: quinta-feira, 26 de fevereiro de 2004 16:46
Para: [EMAIL PROTECTED]
Assunto: [cejug] Iniciante em struts

Olá lista,
Eu estou iniciando em Struts. O que eh basicamente?
Nos usamos o MVC modelo 2, existe alguma relação entre os dois?
Existe algum framework mais atual que o struts?
 
Daniel

------------------------------------------------------------------------------------------- Ceara' Java User Group Para cancelar sua assinatura, envie um e-mail para: [EMAIL PROTECTED] Para mais informacoes, mande um e-mail para: [EMAIL PROTECTED] Falar com o administrador? e-mail para: [EMAIL PROTECTED]

Responder a