EJB 3.0 expalins deployment descriptors not required, if that is true how and where should i configure pool of instances ?
Now in my application, I have a statement in one of the source files as follows:
The private variable 'localClassPath' of ClassLoader stores the semi-colon separated paths of various required projects and jar files in an application. But this variable has everything except the path to 'resources' folder.
First of all, your class VerifyCredentials is NOT an HttpServlet (I see it nowhere extending javax.servlet.http.HttpServlet interface).
Hence, you can't call getServletContext() method. If your class were to implement javax.servlet.http.HttpServlet, then the copile-time error would be gone.
So i gave the form action tag in JSP as follows <form name="input" method="post" action="JdbcServlet">
my worry is not about the wrong path the server is going to.
I have given the servlet path as "com.pg.sebastian.sebastian.servlet.JdbcServlet" in web.xml but the URL after submitting the JSP page is http://localhost:8081/Test/master/register/JdbcServlet.
Also its giving a 404 error at http://localhost:8081/Test/master/register/JdbcServlet.
Prasad Krishnegowda wrote:you have to change in both sides, change the action attribute in the jsp and servlet-mapping in web.xml to /com/pg/sebastian/sebastian/servlet/JdbcServlet
C:\myApp> jar -cvf myApp.war *.class
hi raghul , how the same war file generation in console .(you explained in command prompt)
I keep getting the same error due to improper parsing of: String sqlStatement = "INSERT INTO user (firstName,userName,password,email,userRole) VALUES ("+fName,uName,pw,em,userRole+");";