Hi folks,

I'm trying to add a parameter to a hyperlink, but I don't have direct access to the 
value I want to use in the parameter. I don't have direct access because the value is 
held within an ArrayList object, and only referenced with a logic:iterate call in a 
JSP page.

I have thoroughly searched the mailing list archive and wider Internet, as well as 
"Struts in Action." I have found some related material, but nothing that does exactly 
what I need to do.

I have an ArrayList of Objects that I've placed in the HTTP Request object.

LogonAction.java excerpt:
...
session.setAttribute("concur", group.getConcurrencesList());
...

Each item in the ArrayList consists of two Strings, named projectName and 
concurrenceStatus .
I am iterating through that on a JSP page, using a logic:iterate tag.

portal.jsp excerpt:
...
<TABLE>
<logic:iterate id="concur" name="concur"> <!-- concur contains the ArrayList -->
  <TR>
    <TD><html:link forward="concurrence">
            <bean:write name="concur" property="projectName">
            </html:link>
    </TD>
    <TD><bean:write name="concur" property="concurrenceStatus"/>
    </TD>
  </TR>
</logic:iterate>
</TABLE>
...

This results in the projectName and concurrenceStatus value pairs of every item in the 
ArrayList "concur" being printed to the page, in a table. The projectName values 
render as hyperlinks to project.jsp, the site specified in the struts-config.xml.
excerpts from struts-config.xml
...
<forward name="concurrence" path="/Concurrence.do"/>
...
<action 
  path="/Concurrence"
  type="org.apache.struts.actions.ForwardAction"
  parameter="/pages/project.jsp"/>
...

I want to take the property projectName and append its value to the URI referenced by 
the hyperlink.

I have tried using the technique referenced in SIA 6.4.1, as well as the technique 
referenced in
http://www.mail-archive.com/[EMAIL PROTECTED]/msg89289.html

I can't quite get it working. I'd really appreciate any help.

thanks,

Mike Phelan


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to