What is Java JSP and Java Servlet

What is Java JSP and Java Servlet

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?

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
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
Advertisements
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
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 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  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,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 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-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-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 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
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 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 - JSP-Servlet
java  how to upload a pdf file in a jsp page using servlet
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 servlets sessions session tracking  How to track the session in Servlet
Java from JSP - JSP-Servlet
Calling Java from JSP  Does anyone have an example of Calling Java from JSP
What is the difference between JSF, Servlet and JSP?
What is the difference between JSF, Servlet and JSP?  What is the difference between JSF, Servlet and 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 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  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 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 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
.. 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 - 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
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 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 - 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
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
what the use of taglib - JSP-Servlet
what the use of taglib  what is the use of taglib where we exactly use it?  Hi Friend, It is used to create custom tag in jsp. For more information, visit the following link: http://www.roseindia.net/jsp
Java or Jsp code - JSP-Servlet
Java or Jsp code  Hello Sir, How to create the code for the password recovery page(like forgot gmail password question and answer page)using the radion buttons in display the same page in jsp.I need only how to make
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
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   can anyone help me with an idea to develop whiteboard using jsp. it is very important for me. Thank you. Ram
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 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
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 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  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 - 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
java  i am writing a code for jsp. which is display the data... button name is get by another servlet. now i am fix each row has hidden field with same name "gname". my servlet get the name by request.getParmeter("gname
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 - 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  example of session tracking in servlet
JAVA - JSP-Servlet
JAVA  Hi Friends, can u please tell me what are the thread safe and thread unsafe methods in servlet? mail: [email protected]  Hi Friend, Servlet is not thread safe but you can make it thread safe
Java - JSP-Servlet
Java  Hello Sir/Madam, How can I write a JSP in my website? I mean to say in which folder I need to save and what extension I have to give and how... for this. thank you.  hey , Just create a jsp file and place in server

Ads