This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Servlet - Array of beans error - Help ! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Servlet - Array of beans error - Help !" Watch "Servlet - Array of beans error - Help !" New topic
Author

Servlet - Array of beans error - Help !

Nair Anoop
Ranch Hand

Joined: May 09, 2001
Posts: 68
Hi,
I am using Tomcat 4.0 as my servlet engine. I am passing an array of beans from a servlet to a JSP and am then attempting to display the same in the JSP. If I use the <jsp:getProperty> tag, I get the correct number of records displayed, but all the values are blanks (initial default values)
However, if I explicitly call the methods user.getXXX(), it works fine. Any help would be greatly appreciated.
Thanks,
Anoop

[This message has been edited by Mike Curwen (edited November 19, 2001).]
Donald Nunn
Ranch Hand

Joined: Nov 11, 2000
Posts: 200
Hello, Nair. Were you able to get your JSP to see the bean and If you did, do you have to put the bean in a package? The reason why I'm asking is I can't get my JSP to see the bean that I created.
thanks
------------------
Donald Nunn
Sun Certified Programmer for the Java� 2 Platform


<b>Donald Nunn</b><br />Sun Certified Programmer for the Java 2 Platform
Donald Nunn
Ranch Hand

Joined: Nov 11, 2000
Posts: 200
Hello, Nair. Were you able to get your JSP to see the bean and If you did, do you have to put the bean in a package? The reason why I'm asking is I can't get my JSP to see the bean that I created.
thanks
------------------
Donald Nunn
Sun Certified Programmer for the Java� 2 Platform
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Servlet - Array of beans error - Help !
 
Similar Threads
how to iterate.
Java Beans error
Servlet - JSP problem
JSP Bean error
Can't pass changed beans values from one JSP page to another