Latest Tutorials| Questions and Answers|Ask Questions?|Site Map




Have Programming Question? Ask it here!
 
 
 


Valli
Servlet error
3 Answer(s)      4 years and 6 months ago
Posted in : Java Beginners


Can't we place the java files instead of class files in classes folder of our application in webapps..
so that there's no need to compile the java files separately and then place the class files in classes folder..??

Advertisement
View Answers

March 10, 2010 at 10:33 AM


Hi Friend,

You can simply save your java file in classes folder of your tomcat and compile it. Compilation is necessary.

Thanks


March 10, 2010 at 10:35 AM


Cont..

Then your java file and its class file, both get placed in the classes folder.

Thanks


March 10, 2010 at 10:44 AM


Hi,

not only the compilation is mandatory even you have to mention those details in you web.xml file. Then only your servlet program will work. By simply keeping the file in class folder will not make any sense. Whatever class files you are keeping in the class folder all should declare in your web.xml file.

Fore more details log on to the below mentioned site:

http://www.caucho.com/resin-3.0/servlet/tutorial/helloworld/index.xtp

Hope this may help you..

Happy programming.

Regards...,Britto.M


Related Tutorials/Questions & Answers:
SERVLET ERROR
SERVLET ERROR  message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Error instantiating servlet class ServletDemo
error in servlet
error in servlet  while excuting the servlet program, it produce the error as "HTTP 404 not found". i couldnt rectify that error. can you help me...;servlet-name>Serv1</servlet-name> <servlet-class>Serv1<
Advertisements
servlet-error
servlet-error  where we declare a servlet errors in web application
Servlet error
Servlet error  In netbeans6.9 how can we deploy our servlet in my project i design servlet to receive the data through html pages and design database also but unable to do with xml files what we can change in sun-web.xml
Servlet Error - JSP-Servlet
. Error showing ==>Admin/FirstServlet is not a servlet Sincerely Prakash...Servlet Error  Dear All, Which are the jar files needed in Web-inf/lib folder if database is mysql. servlet-api.jar jsp-api.jar mysql-connector
servlet error - JSP-Servlet
servlet error   I have develope a servlet program when I run... overthere. Some times it shows that servlet class is not found but I have done... specified wrong path or you haven't set the classpath properly. Do you have servlet
Servlet error Messsage
Servlet error Messsage  Sir, I have a login jsp page, after checking input in servlet, I want to display error message from servlet to the same jsp login page from which I had taken login info. thanks in advance
error within servlet
error within servlet  List leagueList=(List).context.getAttribute("leagueList"); this is one line in my servlet code. but i have error with this line. The error is.... illegal start of type. Cannot find symbol. Symbol:variable
error message - JSP-Servlet
error message  hi, friends after complete my servlet programe i can type http://localhost:8080 on the browser. the servlet program is insert data into dbms. but i have errormessage that is "window can not access the specified
output error - JSP-Servlet
output error  /*hi friends, the given below is my servlet program error? How can i solve this problem? */ HTTP Status 500... report message description The server encountered an internal error
Servlet error - Java Beginners
my own servlet program.. The error i'm facing is... exception javax.servlet.ServletException: Wrapper cannot find servlet class Ex1 or a class...Servlet error  I installed Jdk and tomcat successfully and all
javax servlet error - JSP-Servlet
javax servlet error  Hi, Can someone help me to figure out, why im getting the error below, when im trying to enter my web page.. Please help me...: Servlet.init() for servlet jsp threw exception
Programming Error - JSP-Servlet
(""); } catch(SQLException se) { out.println("Database Error :"+se.getMessage()); } catch(Exception e) { out.println("General Error :"+e.getMessage... ServletException,IOException {doPost(req,res);} } There is some error
JScript error - JSP-Servlet
logins while updating profile it will not show any error. But, in many logins it shows error as unterminated string. I am not able to understand this because this error occurs in some logins only. Other logins did not show
htpp 404 error "Servlet as is not available"
htpp 404 error "Servlet as is not available"  hi iam new to struts. when iam running my struts app after filling the login form iam getting "Servlet as is not available". iam unable to find out where the error is.iam pasting my
Tomcat error - JSP-Servlet
the error :-this is non microsoft product please see event log . what might be the reason of such error  HI, Can you paste the error log here.We
Servlet error - Java Beginners
Servlet error  Can't we place the java files instead of class files... you have to mention those details in you web.xml file. Then only your servlet...: http://www.caucho.com/resin-3.0/servlet/tutorial/helloworld/index.xtp Hope
Programming Error - JSP-Servlet
(); } } }//End of class m geeting error in this can u please tell me whats the error nd how to solve
Error output - JSP-Servlet
Error output  Can anyone please assist me; The printed output should be: The product is 10. But instead of it I got; The product is undefined. Can anyone trace what went wrong of my code pls
Programming Error - JSP-Servlet
integer.parseInt but its giving error. Please Reply me . Thank you
jsp error - JSP-Servlet
, The 404 or Not Found error message is an HTTP standard response code indicating
code error - JSP-Servlet
is error in this progrm. ss function describe() { window.status
Programming Error - JSP-Servlet
??? And when i tried its giving me error than cannot find variable.In
Script error - JSP-Servlet
running this it shows an error as "STACK OVERFLOW". Correct the code . The code
JSP Error - JSP-Servlet
JSP Error  When i am running my registration.jsp getting following error. HTTP Status 500... description The server encountered an internal error () that prevented it from fulfilling
Proogramming Error - JSP-Servlet
,BankName shoukd get validated but i tried its getting error sir can u please tell me
SQL error - JSP-Servlet
){ System.out.println("Error occured while updating!!!"); } con.close
Programming error - JSP-Servlet
"); } catch(SQLException se) { out.println("Database Error :"+se.getMessage()); } catch(Exception e) { out.println("General Error :"+e.getMessage()); } %>
Programming error - JSP-Servlet
Programming error  Actually there is an error in placeorder.jsp file where there are 5 fields OrderNo ,Name , Address, Email, PhoneNo where if I delete an order of client based on orderno then suppose in database if there are 5
Programming error - JSP-Servlet
where if @ is not given or (dot). is not given etc then it should display error
jsp error - JSP-Servlet
jsp error  how to remove below error:: exception org.apache.jasper.JasperException: java.lang.NullPointerException root cause java.lang.NullPointerException  Hi Friend, It seems that something has
htpp 404 error "Servlet as is not available"
htpp 404 error "Servlet as is not available"  hi iam new to struts. when iam running my struts app after filling the login form iam getting "Servlet as is not available". iam unable to find out where the error is.iam pasting my
Java compilation error - JSP-Servlet
to my problem, but having some error as below.. Generated servlet error: C...; ^ Generated servlet error: C:\Program Files\Apache Software Foundation...; ^ Generated servlet error: C:\Program
file upload error - JSP-Servlet
error as following: javax.servlet.ServletException... ----------------------------------------------------------------------------- This error occured... understood that this error occurred because of a jar file missing. But, i am
illegal start of expression in servlet error..
illegal start of expression in servlet error..  hello Sir, here is my servlet code and i am getting illegal start of expression error in declaring the method named " public Boolean ModificarUsuario(int IdUsuario
file upload error - JSP-Servlet
of the project. In this particular part i got an error... by multipart/Form-data encrypted form. And this error occurred in the processing..., I think jar problem. so Please add servlet-api.jar file in lib folder
error in accessing database - JSP-Servlet
error in accessing database  hiiii im tanushri im tryng to connect my database to the servlet i hv succeeded in connectivity but im stuck to nother error called Got minus one from read call although i hv feeded data to my
srvlet compilation error - JSP-Servlet
srvlet compilation error  while compiling a servlet, httpservlet..., It seems that compiler haven't found the servlet-api.jar file.So put the servlet-api.jar into the lib folder of your apache tomcat folder.Then set
javascript programing error - JSP-Servlet
javascript programing error  hi deepak i m using explorer to run javascript program in this there is no option to check error will u plz tell me the way to check error in explorer as we can check with mozila
Java Compilation error - JSP-Servlet
-fileupload-1.2.1.jar but still there is a problem and when i compile my file this error... and restart it and compile your servlet. Thanks
java compilation error - JSP-Servlet
.I have also set classpath and path.But stil on compiling my servlet programs...; Hi Friend, Put servlet-api.jar in the lib folder of your jdk.Restart your command prompt and compile your servlet and then restart the tomcat
java servlet compilation error - Servlet Interview Questions
java servlet compilation error  i done the Restart your tomcat server and run your servlet.but i got the problam
java servlet compilation error - Servlet Interview Questions
java servlet compilation error  hello sir plz help me, i compile the servlet program but i got the arrors that errors are package javax.servlet.http..., Put servlet-api.jar into the lib folder of apache-tomcat.And set the class path
JSP Translation error - JSP-Servlet
declared first variable shows the following error. ----------------------------------------------- An error occurred at line: 2 in the jsp file: /stud..., in this code there is no error Thanks Rajanikant
Java servlet sql connectivity error - JSP-Servlet
Java servlet sql connectivity error  Hi, I have been trying to connect to sql database via the servlet program in java.I have not been... it gets connected & the prog works.But when i use a servlet prog with a html form
file upload error - JSP-Servlet
file upload error  Iam doing jsp project. File uploading is one part of the project. In this particular part i got an error... by multipart/Form-data encrypted form. And this error occurred in the processing
javascript error in IE - JSP-Servlet
javascript error in IE  Please Help me, I have an urgent requirement i.e. JavaScript prompt box is not working in IE. It Works firefox,safari,--- etc. ********Actually my requirement is without changing setting
Location finding error - JSP-Servlet
Location finding error  Location needs from drive name: My file uploading program has an error. It requires the location should be given from... the error as file not found. Below is the coding.The problem line is marked
JSP error page - JSP-Servlet
JSP error page  Hi i have 1000 of JSP. but we coded it without adding the . but now i have to forward the page to the specific page when the exception occured in JSP. is there any short cut i can do? do not want to add this line
jsp runtime error - JSP-Servlet
jsp runtime error  sir, when i am running ur prog... from this website.... http://www.roseindia.net/jsp/poi/readingWriting.shtml i did the same as per guidelines...but i got error..!!!! org.apache.jasper.JasperException
 

 

 

DMCA.com