why ,we are using jsp and html.which one is better?

Answers were Sorted based on User's Feedback



why ,we are using jsp and html.which one is better?..

Answer / sivasubramanian.k

JavaServer Pages (JSP) is a Java technology that allows
software developers to dynamically generate HTML, XML or
other types of documents in response to a Web client
request. The technology allows Java code and certain pre-
defined actions to be embedded into static content.

The JSP syntax adds additional XML-like tags, called JSP
actions, to be used to invoke built-in functionality.
Additionally, the technology allows for the creation of JSP
tag libraries that act as extensions to the standard HTML
or XML tags. Tag libraries provide a platform independent
way of extending the capabilities of a Web server.

JSPs are compiled into Java Servlets by a JSP compiler. A
JSP compiler may generate a servlet in Java code that is
then compiled by the Java compiler, or it may generate byte
code for the servlet directly. JSPs can also be interpreted
on-the-fly reducing the time taken to reload changes.

So JSP is better than HTML as it contains both static and
dynamic content..

Is This Answer Correct ?    10 Yes 1 No

why ,we are using jsp and html.which one is better?..

Answer / giridhar gangapatnam

jsp is used for both static and dynamic contents in web
applications. But html is only for static contents.
So, as per my knowledge jsp is better than html

Is This Answer Correct ?    8 Yes 0 No

Post New Answer

More Core Java Interview Questions

What are instance variables?

0 Answers  


How do you create immutable object in java?

0 Answers  


Do I need java on my pc?

0 Answers  


How can we get one Interface methods whit out using implementation of interface

1 Answers   Oracle,


How to override a equals() method and what is the use?

1 Answers  






I am unable to find or learn about print command. I have a graphical program in core java in applet but i want to give print command but i have coding for that so if anyone know about this plz mail me on avdhesh_chauhan007@yahoo.co.in

0 Answers  


how to execute main()

4 Answers   Symphony, TCS,


What is constructor and virtual function? Can we call a virtual function in a constructor?

0 Answers  


What is :: operator in java?

0 Answers  


Difference between interface and abstract class with ex.

4 Answers   Cognizant, Tech Mahindra,


How you can create a radio buttion using Checkbox class?

1 Answers  


Can a constructor be made final?

0 Answers  


Categories