I want to use a Java file SaveProp
which is written in a package user
. The class file has been placed in WEBINF/classes
. Below are the two lines which cause the issue.
jsp:useBean id="user" class="user.SaveProp" scope="session"
jsp:setProperty name="user" property="*"
It throws:
The value for the useBean class attribute user.SaveProp is invalid
I'm using Tomcat 6.0.
3 things
Make sure that the default no-arg constructor is there and is public.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With