Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
05-04-2011, 07:20 AM #1
- Join Date
- Sep 2010
- Thanked 0 Times in 0 Posts
Error while importing package in Servlet
Todya my problem is with Servlet. I have a servlet name ControllerServlet and
There is another file name DataBean in package name bean. and directory structure is as follows.
When i compile DataBean it's fine but when i try to compile ControllerServlet.java it gives me error that "package bean does not exist".
This problem occurs only when i set the class path for servlet-api.jar. before this every package importion is successful. but after setting the class path for servlet, packages does not import.
Please help me what should i do to compile ControllerServlet.java file in which i have imported "bean.DataBean" and ControllerServlet class extends HttpServlet
Please help me.