Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes JSP and the fly likes how do I set a java bean's property which is neither a String nor primitive in JSP? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "how do I set a java bean Watch "how do I set a java bean New topic
Author

how do I set a java bean's property which is neither a String nor primitive in JSP?

Ren Shao
Ranch Hand

Joined: Dec 23, 2002
Posts: 51
For example, in my JSP, I use
<jsp:useBean id="myBean" class="zhirenshao.MyBean" scope="request" />
one of the property of MyBean is a type I write my self. How do I set this property? (using <jsp:setProperty> )
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how do I set a java bean's property which is neither a String nor primitive in JSP?