Javabean Where to put the bean class file?
<p>I have a javabean file that is written to collect user data from web form. (UserData.java)</p>

<p>This file is compiled and is put under a package called <code>user</code>
(I put this class under <code>webapps\ROOT\WEB-INF\classes\user</code>)</p>

<p>Then in a particular html page, I allow user to enter their name, email, etc.
When user clicks on the submit button they will go to "/process.jsp", in which the first two statements are:</p>

<pre><code>&lt;jsp:useBean id="user" class="user.UserData" scope="session" /&gt;
&lt;jsp:setProperty name="user" property="*" /&gt;
</code></pre>

<p>But it throws:</p>

<pre><code>org.apache.jasper.JasperException: /process.jsp(1,1) The value for the useBean class attribute user.UserData is invalid.
</code></pre>

<p>Notice that my UserData is a public class and the getter and setter methods are correct.</p>

<p>Can anyone help?? Thank you!</p>
