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

Can a static class have a constructor java?

0 Answers  


What is json parser in java?

0 Answers  


How do you execute a thread in java?

0 Answers  


what is difference between Action messages and Action errors?

3 Answers   Bio Imagene, TCS,


What are the drawbacks of singleton class?

0 Answers  






Write a java program to find the route that connects between Red and Green Cells. General Rules for traversal 1. You can traverse from one cell to another vertically, horizontally or diagonally. 2. You cannot traverse through Black cells. 3. There should be only one Red and Green cell and at least one of each should be present. Otherwise the array is invalid. 4. You cannot revisit a cell that you have already traversed. 5. The maze need not be in the same as given in the above example

0 Answers  


Explain the overview of UDP messaging.

0 Answers  


Can a function return a function?

0 Answers  


What is string in java? String is a data type?

0 Answers  


Program to print 1 1 2 1 2 3 1 2 3 4 like that

8 Answers   Huawei,


How would you format a date in java? I.e. In the ddmmyyy format?

0 Answers  


why operator overloading is removed in java?

1 Answers  


Categories