I have this New user registration form. I user AccountBean to store data from a form. and check make sure all fields are fill. and process.jsp use that bean..and send to retry.jsp or to success.jsp..I also put both AccountBean.java and Its .class file in WEB-INF class folder but its going to this error: HTTP ERROR: 500 Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated. An error occurred at line: 2 in the jsp file: /jsp/ac/process.jsp Generated servlet error: /var/tmp/Jetty_0_0_0_0_8888__group24_j2ee/jsp/ac/process$jsp.java:61: Class org.apache.jsp.AccountBean not found. AccountBean formHandler = null; ^ An error occurred at line: 2 in the jsp file: /jsp/ac/process.jsp Generated servlet error: /var/tmp/Jetty_0_0_0_0_8888__group24_j2ee/jsp/ac/process$jsp.java:64: Class org.apache.jsp.AccountBean not found. formHandler= (AccountBean) ^ An error occurred at line: 2 in the jsp file: /jsp/ac/process.jsp Generated servlet error: /var/tmp/Jetty_0_0_0_0_8888__group24_j2ee/jsp/ac/process$jsp.java:69: Class org.apache.jsp.AccountBean not found. formHandler = (AccountBean) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "AccountBean"); ^ 3 errors, 1 warning
Bhushan Jawle
Ranch Hand
Joined: Nov 22, 2001
Posts: 248
posted
0
Try putting your bean into a package and importing the package in JSP.
viral patel
Greenhorn
Joined: Feb 25, 2003
Posts: 16
posted
0
i done that it is still giving me error that it cant find AccountBean..
Piter john
Greenhorn
Joined: Jan 06, 2003
Posts: 19
posted
0
Can you successfully able to compile Accountbean.java ? if yes then check the path where you stored that file. And try using <useBean property='application/page' />