You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Thomas Fahrmeyer <th...@fahrmeyer.de> on 2002/09/09 01:24:35 UTC

html:link and parameter appending does not work

Hi,

i just want to create a link with URL-Encoding and adding some parameter the
the link. I tried it with

<html:link href="/modifyPersonSelections" paramId="selectionId"
paramProperty="1">remove</html:link>

to get
<a href="/modifyPersonSelections?id=1>remove</a>

but the link generated does not contain the parameter :(

I'm using Struts 1.1b2.

Thanx
Thomas


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: html:link and parameter appending does not work

Posted by "David M. Karr" <dm...@earthlink.net>.
>>>>> "Thomas" == Thomas Fahrmeyer <th...@fahrmeyer.de> writes:

    Thomas> Hi,
    Thomas> i just want to create a link with URL-Encoding and adding some parameter the
    Thomas> the link. I tried it with

    Thomas> <html:link href="/modifyPersonSelections" paramId="selectionId"
    Thomas> paramProperty="1">remove</html:link>

    Thomas> to get
    Thomas> <a href="/modifyPersonSelections?id=1>remove</a>

    Thomas> but the link generated does not contain the parameter :(

    Thomas> I'm using Struts 1.1b2.

Read the API description for "html:link".  If I understand what you're trying
to do, you should change "selectionId" to "id" and "paramProperty" to
"paramValue".

-- 
===================================================================
David M. Karr          ; Java/J2EE/XML/Unix/C++
dmkarr@earthlink.net


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>