Cody, You can't nest tags - you can't have one tag inside the <>'s of another tag. To do what you want, try this: <logic:iterate name="myBean" property="userList" id="currentUser"> <% String ref = "admin_userForm.jsp?user_id=" + currentUser; %> <html:link href="<%= ref %>"><%= currentUser %></html:link><br> </logic:iterate>
-Richard ><logic:iterate name="users" property="userList" id="currentUser"> > <html:link href="admin_userForm.jsp?user_id=<%= > currentUser %>"><%= currentUser %></html:link><br> ></logic:iterate> At 11:37 PM 2/4/2002 -0600, you wrote: >Could someone please shed some light on the following? What would be the >solution for an attempt like this? Consider this code snippet that has an >obviously incorrect syntax: > ><logic:iterate name="users" property="userList" id="currentUser"> > <html:link href="admin_userForm.jsp?user_id=<bean:write >name='currentUser'/>"><bean:write name='currentUser'/></html:link><br> ></logic:iterate> > >I am trying to set a URL paramer with bean data (admin_userForm.jsp?user_id >=<bean:write name='currentUser'/>), but because it is inside of an HTML >attribute, it is not working. I end up with an uninterpereted param value >of "user_id=<bean:write name='currentUser'/>". I know it's just a syntax >issue. I can think of a better way to do it, but not without introducing >java code into the page. > >What is the more elegant Struts-centric way to do this? > >- Cody > >---------------------------------------------------------------- >The information transmitted is intended only for the person or entity to >which it is addressed and may contain confidential and/or privileged >material. Any review, retransmission, dissemination or other use of, or >taking of any action in reliance upon, this information by persons or >entities other than the intended recipient is prohibited. If you received >this in error, please contact the sender and delete the material from any >computer. > > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>