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



Home Answers Viewqa Java-Interview-Questions What is Java JSP and Java Servlet

Have Programming Question? Ask it here!
 
 
 


ashok shivhare
What is Java JSP and Java Servlet
2 Answer(s)      6 years and 6 months ago
Posted in : Java Interview Questions


What is JSP? and ..
What is Servlet in Java?


Advertisement
View Answers

February 24, 2008 at 1:16 AM


jsp: separate the prsentation and business logic.(custom tags)
more easy to learn,easy to write

servlet: presentaion and business logic in same place.
everything should embedd in out.println("") it is too complex to write is it?

Raman..


February 24, 2008 at 6:16 PM


Servlet:

*This is the first concept in java to create web oriented programs.
*This requires all objects should be created manually and for user input we must use swing or awt concepts to add text box or any other controls. *Another major thing is all calculations and databse conection codings should be written in a single file.
*If we get an error we have seach for the whole file to find the error. *And we have to recompile after every corrections.


JSP:

* In case of JSP there are some built in objects available.
* Abbreviation for JSP is Java Server Pages. That is java code can be associated with HTML pages .
* So, fixing controls like text box and other controls can be easily fixed. This will become as a presentation logic. No involvement of AWT or SWING.
* processing can be added in JSP file or seperate java file. So error will become easy one.

*In case of jsp there is no compilation process. If you hava a jsp file while you acccesing it will be TRANSLATED into servlet file and then only the result page will be generated. If there is any error it will be shown in the result page.


Related Tutorials/Questions & Answers:
java (servlet) - JSP-Servlet
java (servlet)  how can i disable back button in brower while using servlet or JSP
JAVA JSP and Servlet - JSP-Servlet
JAVA JSP and Servlet  for sending mail through lan without intenet and also chatting facility for online users using Java JSP & SERVLET code.  Hi Friend, Please visit the following links: http://www.roseindia.net
Advertisements
JSP with java/servlet - JSP-Servlet
(java bean or servlet) to fecth the database. Jsp would get the data from...JSP with java/servlet  Thanks Deepak for your answere to my previous.../servlet-jsp-data-list.shtml Hope that it will be helpful for you. Thanks
java servlet - JSP-Servlet
java servlet  hi friends, Thanks in advance. Am poornima am created new servlet in eclipse its open but without including any code am getting... and request. what to do? Is any plugins required ? plz tell me .  Hi Friend
JAVA SERVLET - JSP-Servlet
JAVA SERVLET Log   Hi, A servlet file which create the log files ,then writing values to the list & log, we should have a thousand separator and no decimal values. This means instead of writing 986300.0 in the Log file
Java Servlet - JSP-Servlet
Java Servlet   Hello Sir Could you help me in understanding directory Structure for servlet page in eclipse (IDE). I save my Sevlet in WEB-INF but it is not displaying, it is displaying code of servlet. Process used
java - JSP-Servlet
java  why is required to write both jsp and servlet in a application of java
Java Servlet - JSP-Servlet
Java Servlet  3-tier structures of servlets
java,servlet,jsp - JSP-Servlet
java,servlet,jsp   i am doing a project on online examination system and in that there are problems that-- 1.i want to disable the back,forward and refresh button.Please give me the code for google crome browser. 2.suppose
java charts - JSP-Servlet
java charts  Hi,can any one tell me how to create dyanamic charts wrt database contents by using jsp-servlet
java jsp - JSP-Servlet
java jsp  i have a jsp file, in that i am uploading a file, after uploading the file had to display in the screen. it is displaying if only i refresh the page. but i want to display the uploaded file without refreshing the page
Java Problem - JSP-Servlet
Java Problem  What are the steps to run a java Servlet program.with examples  Hi Friend, Please visit the following link: http://www.roseindia.net/servlets/index.shtml Thanks
java - JSP-Servlet
Java Servlet Config means   What is Servlet Config means ?  ...://www.roseindia.net/servlets/ServletContext.shtml  Servlet Config means configurion of servlet it is used to cofigure any properties in web.xml and Context
java - JSP-Servlet
java  what is the difference between jsp and servlet?   Hi firend, Main difference between Jsp and Servlet Jsp is better for view web pages, while servlet is good for request processing. Jsp has also all
java servlets - JSP-Servlet
java servlets  how to get the parameter value of input type file using java servlets  Hi, You can use request.getParameter(). In Jsp, --- --- IN servlet, String fileName=request.getParameter('fl'); If you
JAVA - JSP-Servlet
Java servlets sessions session tracking  How to track the session in Servlet
Java - JSP-Servlet
Java  What a the steps to compile a Servlet Programe.  Hi... cmd + (Enter Key) 2. Change the directory to the Servlet file(i.e .java) and 3... to configure tomcat for running servlet. http://www.roseindia.net/servlets
java - JSP-Servlet
What is java spring framework  What is java spring framework? Is there any tutorials for Java String in RoseIndia website
Java - JSP-Servlet
.. This is a general question. How to compile a servlet program? I need step by step explaination.. MoreOver,I know JAVA to some extent.. But I need to improve my programming skill.. What Can I do for that? I am in need of answers for these two
java servlet programming - JSP-Servlet
java servlet programming  i want 2 insert the date time into the sql column of data type datetime through servlets dynamically .How 2 do dat
Java Servlet Problem - JSP-Servlet
Java Servlet Problem  I have a servlet class that implemets the ServletContextAttributeListener interface. I am overriding all three methods, but in the attributeReplaced() method, i want to perform a redirect to another servlet
Java Mail - JSP-Servlet
Java Mail  hi, i refer ur J2EE Tutorial - Send Email From JSP & Servlet to send emails from my application.but when i run the jsp it will throw thhese exceptions. ERROR.....javax.mail.SendFailedException: Sending failed
java - JSP-Servlet
java  how to upload a pdf file in a jsp page using servlet
multiuser in java/jsp? - JSP-Servlet
multiuser in java/jsp?  Hi!!! Rose India Team, Kindly let me know what is exact meaning of multiuser in java? I made an web application using jsp... friend, Multi User in Jsp : More then one User can access in Web appication
java servlet programming - JSP-Servlet
java servlet programming  when i m inserting an image file into the sql table in a column of data type binary using prepared statement ps.setBinaryStream, instead of filename it's displaying
Java from JSP - JSP-Servlet
Calling Java from JSP  Does anyone have an example of Calling Java from JSP
java - JSP-Servlet
difference between Jsp and Servlet Jsp is better for view web pages, while servlet is good for request processing. Jsp has also all implicit objects... is done then servlet destroy() : that's the end of servlet. Jsp life cycle
Java Problem - JSP-Servlet
Java Problem  How to run a Simple JSP program ? what steps... the webapps folder of apache tomcat. 5)Create a jsp file 'hello.jsp'.You can put your jsp file either inside the web application folder along with WEB-INF or you
JAVA - JSP-Servlet
JAVA  i browsed a picture in a html page then i want to use the path in the jsp then what i to do ? in java the the path of a file takes the two slashes instead of one example for c:\vinay\ghaf.gif we must use c:\\vinay
java Servlets - JSP-Servlet
java Servlets  Hi i am having a doubt regarding servlets as i am... here i am not using any jsp's. i got up to retriving data from data base but i am... in servlet through "out.println()" if yes then try this My servlet code// public
Java Code - JSP-Servlet
Java Code  Write a JSP program which displays a webpage containg arrival of new items within a particular month in the different branches of a retail company
java - JSP-Servlet
java   can anyone help me with an idea to develop whiteboard using jsp. it is very important for me. Thank you. Ram
Java - JSP-Servlet
Java, JSP vs Servlet  If anyone have idea about how to use all these technologies in one project ..please share with me. Thanks
Java - JSP-Servlet
Java  Dear Deepak, In my Project we need to integrate Outlook Express mailing system with java/jsp. thanks & regards, vijayababu.m
java - JSP-Servlet
computer environment variable and in that i set the class path JAVA_HOME=c:\jdk141_05 CATALINA_HOME=c:\Tomcat5.0 CLASSPATH=C:\Tomcat 5.0\common\lib\servlet... in internet explorer i gave http://localhost:8080/Mimetypes/exurl what is the error
java - JSP-Servlet
Servlet Engine: Apache Tomcat/5.0.18 Sep 15, 2008 8:00:03 PM... INFO: Installing web application at context path /jsp-examples from URL file:C:\ Program Files\Apache Software Foundation\Tomcat 5.0\webapps\jsp-examples Sep
java - JSP-Servlet
java  1.which class it extends when servlet is created automatically from jsp? 2. jsp get translated to servlet.where can find the servlet class (generetted from jsp)for tomcat?  Hi Friend, 1)It extends
tasks on java - JSP-Servlet
tasks on java  hi all, i am a beginner in java language ,i would like to practice some tasks in java..i have an idea about servlets, how to write code .so please can anyone forward a site which contains tasks on java
java script - JSP-Servlet
java script  hello buddy......i m new to here....please help me to solve my problem i have a jsp page with pre populated value comming from other jsp.....ones i submitted i have to clear that page and i have to submite
Java - JSP-Servlet
Java  Hi All, How to integrate Outlook Express with java/jsp. Plase any one help me. thanks®ards, vijayababu.m  Hi Friend, Use the following: Send Mail Thanks
java and oracle - JSP-Servlet
java and oracle  I am developing a small project where I need to upload the resume of the employee and store it into database and retrieve the same... and jsp
Java - JSP-Servlet
Java  Using Servlet,JSP,JDBC and XML How to create a web application for courrier company to provide online help in tracking the delivery status... can create JSP/Servlet web application. http://www.roseindia.net/jsp
java - JSP-Servlet
java  write a program to develop a web application fro a courrier company to provide online help in tracking the delivery status of items by uning Servlet, JSP,JDBC and XML
java - JSP-Servlet
\build\web\WEB-INF\lib\servlet-api.jar hi guys i am getting this error can any.../java/example/java/io/DeleteFile.shtml Thanks
java - JSP-Servlet
java  how to insert and view the image and data from database using jsp,servlet,jdbc  Hi Friend, Please visit the following links.../servlets/retreiveimage.shtml http://www.roseindia.net/jsp/retrieve-image.shtml
java project - JSP-Servlet
java project  i am going to do a mini-project on computerization... system what happens is ...when a student or a new batch of students enters... which i wanted to do ... and i want to implement it thru Servlets and JSP's
java beans - JSP-Servlet
java beans  how to get the values from this page to java page bcoz i want to insert these values into table... the problem visit to : http://www.roseindia.net/jsp/usingbeansinjsp.shtml Thanks
Java : What is servlet?
Java : What is servlet? This section define the concept of java servlet. Servlet : Servlets are small java programs run on web server. You can say... the Java Virtual Machine. Since the servlet runs on server side so it does
JAVA - JSP-Servlet
JAVA  Hi Friends, can u please tell me what are the thread safe and thread unsafe methods in servlet? mail: balla.rajaramesh@gmail.com  Hi Friend, Servlet is not thread safe but you can make it thread safe
java - JSP-Servlet
Java  Why Java with Tomcat
Advertisements
 

 

 

DMCA.com