Dear display-tag folks,
I use struts.
I have an object called User with attributes,
userID,firstName,middleName,lastName.
In the Struts action I make a Vector of users via DB
call and then do a
request.setAttribute("usersVec",usersVec);
In the jsp that the action forwards to, I use:
Vector
usersVec=(Vector)request.getAttribute("usersVec");
Now I pass usersVec to the display tag ...as so.
<display:table width="75%" list="<%=usersVec%>" >
<display:column property="userId" title="ID" />
<display:column property="firstName" />
<display:column property="middleName" />
<display:column property="lastName" />
</display:table>
It gives me a runtime error as:-
javax.servlet.jsp.JspException: Can not use column tag
outside of a TableTag.
int org.apache.taglibs.display.ColumnTag.doEndTag()
ColumnTag.java:245
void
_edhilldisplay._jsp._displayTagTest._jspService(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
[/edHillDisplay/jsp/displayTagTest.jsp]
displayTagTest.jsp:26
===
Can you suggest any way out of this?
A Vector as far as I know is a type of List
Regards
Neal
__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user