What is Java JSP and Java Servlet



Share on Google+Share on Google+

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

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

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?


February 24, 2008 at 6:16 PM


*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.


* 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
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 - JSP-Servlet
java  why is required to write both jsp and servlet in a application of java
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 Servlet - JSP-Servlet
Java Servlet  3-tier structures of servlets
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,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 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 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  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 - JSP-Servlet
Java servlets sessions session tracking  How to track the session in Servlet
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
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
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 from JSP - JSP-Servlet
Calling Java from JSP  Does anyone have an example of Calling Java from JSP
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
.. 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 - JSP-Servlet
java  how to upload a pdf file in a jsp page using servlet
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 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 - 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 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 - 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  Dear Deepak, In my Project we need to integrate Outlook Express mailing system with java/jsp. thanks & regards, vijayababu.m


Advertisement null