This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Servlets and the fly likes How to retrieve a Vector of beans without using taglib ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Servlets
Reply locked New topic

How to retrieve a Vector of beans without using taglib ?

Ian Yang
Ranch Hand

Joined: Nov 27, 2001
Posts: 44
I have a "", "My.jsp" and "" which is a bean class. First "" handles some business logic and then feeds a Vector of items into "ItemList" bean and creates a vector of Litemlist bean, then do
request.setAttribute("ItemListVec", v);
and forward(request, response) to "My.jsp".
Question is-- In "My.jsp", if I don't use taglib, and just want to use <jsp:useBean> <jsp:getProperty> syntax, how can I retrieve the ItemList vector ? The "id" in jsp:useBean is associated with the vector, not element, and this "id" matches to "ItemListVec". How do I get info. from each element ? what "id" should I use when I retrive element ?
I know I can do in a similar way by simply do:
then loop through it and get the info from each element. But in this way, I am NOT using <jsp:useBean> <jsp:getProperty> syntax, am I still using MVC ?
Junilu Lacar

Joined: Feb 26, 2001
Posts: 6281

Reply here:
Please do not cross-post. This thread will be closed.
Thanks for your cooperation.
Have you checked out Aspose?
subject: How to retrieve a Vector of beans without using taglib ?
It's not a secret anymore!