I develop a Web Application using JSP/Servlets in where i use MVC. So i had a bean file, a servlet file and ofcourse a JSP page. I already created a user reg file and it works fine. But when i create another servelt to update my table it doesnt work.
However when i compile the code it shows an error like this one..
C:\apache-tomcat-6.0.16\webapps\rmanew\WEB-INF\classes\com\rajk\javacode\servlet s>javac -classpath c:\apache-tomcat-6.0.16\lib\servlet-api.jar RMAOutServlet.java RMAOutServlet.java:14: cannot find symbol symbol : class RMAEntryModel location: class com.rajk.javacode.servlets.RMAOutServlet RMAEntryModel model = new RMAEntryModel(); ^ RMAOutServlet.java:14: cannot find symbol symbol : class RMAEntryModel location: class com.rajk.javacode.servlets.RMAOutServlet RMAEntryModel model = new RMAEntryModel(); ^ 2 errors
Where RMAEntryModel is the bean file i used to get and put values.. I already used it in two file named as RMAEntryServlet and RMAProcessServlet. But it doesnt shows any error like this.. Whats wrong is in there. Here i paste my code for your reference.
Anyhelp will be appreciated....
Never try to be a hard-worker. Be a smart-worker.
Yes Paul, the file RMAEntryModel is in the location. Why i am so clear on tis, because i already used the RMAEntryModel in my earlier modules like User Registration, Entry form Servlets.. At that time it works good.. But when i use it for RMAOutServlet, it shows an error like this? Why.. i get stuck with this problem..
This is where you set your classpath. I don't see RMAEntryModel in it. It is not part of the Servlet APi whic his the only other thing you have in your classpath. See this if you are not sure what is going wrong.