You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Davidson, Glenn" <Gl...@tiaa-cref.org> on 2003/07/01 17:47:45 UTC
Trouble with html:link forward
I am relatively new to Struts and am having what I hope is an easy problem
to fix.
Background.
I am creating an ArrayList (listofdocs) of simple objects and place them in
the session. I then have a JSP that will iterate over these objects and
display some object attributes. This works just fine. My problem is when I
try to do a html:link, I'd like to pass the object reference as part of the
link. When I do this the error message I get goes like this:
[Servlet Exception in:/pages/editXMLjsp] Cannot retrieve the definition for
form bean app.TiaaDocument
my link looks like:
<html:link forward="editxml"
paramId="tiaaDocument" paramName="doc" >
Edit
</html:link>
Where doc is defined in the iterate as such:
<logic:iterate id="doc" name="listofdocs" scope session"
type=app.TiaaDocument">
Any ideas?
Thanks
Glenn