This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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


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?