aspose file tools*
The moose likes Servlets and the fly likes Problems while using Beans jsp:setProperty tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Problems while using Beans jsp:setProperty tag" Watch "Problems while using Beans jsp:setProperty tag" New topic

Problems while using Beans jsp:setProperty tag


Joined: Sep 25, 2000
Posts: 4
In my application I am using a bean to which I am going to pass a Connection object.I have the Connection Object and I am writing like this jsp:setProperty name="mybean" property="con" value="con"/ as I have the Connection object named as "con" in my JSP page ..
But I am getting the error java.lang.IllegalArgumentException: JSP10Servlet: setProperty(): bean package1.samplebean1 doesn't have a Enum property please help me
Thnks in advance
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12675
My understanding of setProperty is that it can only be used where the value is a String - not an Object.
I think you are going to have to write the Java code to set this property rather than using jsp:setProperty

Java Resources at
I agree. Here's the link:
subject: Problems while using Beans jsp:setProperty tag
Similar Threads
Passing two values to setProperty
Accessing the servletContext outside of a servlet
How to retrieve drop down list selection into a bean.
<jsp:setProperty> sets null values in the bean
setting a bean in a JSP