HI all
I have a very basic problem in placing the bean.
As told i have placed my bean in
D:\Chari\Tomcat\ShoppingCart\WEB-INF\classes\com\shoppingcart\user\User.class
and in my
JSP program which is in
D:\Chari\Tomcat\ShoppingCart\simple.jsp i have used
<jsp:useBean id="test" scope="session" class="com.shoppingcart.user.User"/>
Even then iam getting the following 3 errors
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 0 in the jsp file: /simple1.jsp
Generated
servlet error:
[javac] Compiling 1 source file
D:\Chari\Tomcat\work\Standalone\localhost\ShoppingCart\simple1_jsp.java:42: package com.shoppingcart.user does not exist
com.shoppingcart.user.User
test = null;
^
An error occurred at line: 0 in the jsp file: /simple1.jsp
Generated servlet error:
D:\Chari\Tomcat\work\Standalone\localhost\ShoppingCart\simple1_jsp.java:44: package com.shoppingcart.user does not exist
test = (com.shoppingcart.user.User) pageContext.getAttribute("test", PageContext.SESSION_SCOPE);
^
An error occurred at line: 0 in the jsp file: /simple1.jsp
Generated servlet error:
D:\Chari\Tomcat\work\Standalone\localhost\ShoppingCart\simple1_jsp.java:47: package com.shoppingcart.user does not exist
test = (com.shoppingcart.user.User) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "com.shoppingcart.user.User");
^
3 errors
Please help me in the regard.
Thanks a lot in advance
Regards
Chari