YEs it generates the code as your example states.  The parameter will be
in the request under the name userId.  I don't know if the contoller
will fill in a field in your action form with a similar name but it
should.


Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:    (303 263-3044

>>> [EMAIL PROTECTED] 08/15/01 11:08AM >>>
So does this then generate html simmilar to what I gave as example?

<a href="url?id=xx">item xx</a> and so on...

how do I process the request in that uri, do I take the id that's
passed out
of the request, or does the controller stuff it into the form
somewhere?

Thanks

-----Original Message-----
From: Scott Ryan [mailto:[EMAIL PROTECTED]] 
Sent: 15 August 2001 18:04
To: [EMAIL PROTECTED] 
Subject: Re: passing a parameter


This is how I do it.  It uses a request list stored under the name
ListObject which is a Vector of objects.  The link passed the payeeId
value of the object in the request parameter userId.


<logic:iterate name="ListObject"
                        id="PayeeBean"
                        scope="request">
                        <html:link paramId= "userId"
                                   paramName="PayeeBean"
                                   paramProperty="payeeId"
                                   paramScope="page"
                                   page="/payeedetail.do">
                                    <bean:write name="PayeeBean"
property="name"/>
                        </html:link>
</logic:iterate>
                          
>>> [EMAIL PROTECTED] 08/15/01 10:53AM >>>
how would I have a list in struts with each item as a link to a uri (a
struts action) and a parameter to pass?

in jsp:

while (i < items.length) {

%>
<a href="/showItem.jsp?id=<%=items[i].getId()%>">item
<%=items[i].getId()%></a>
<%
i++;
}
%>

in struts:

?????????????


=**********************************************************

If you are not the intended recipient, employee or agent responsible
for delivering the message to the intended recipient, you are hereby
notified that any dissemination or copying of this communication and
its
attachments is strictly prohibited.

If you have received this communication and its attachments in error,
please return the original message and attachments to the sender using
the reply facility on e-mail.

Internet communications are not secure and therefore the UCLES Group
does not accept legal responsibility for the contents of this message.

Any views or opinions presented are solely those of the author and do
not necessarily represent those of the UCLES Group unless otherwise
specifically stated.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses although this does
not
guarantee that this email is virus free.

**********************************************************=

Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:    (303 263-3044

Reply via email to