why ,we are using jsp and html.which one is better?
Answers were Sorted based on User's Feedback
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 |
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 |
What checkbox method allows you to tell if a checkbox is checked?
How to find the given number is a prime number or not by getting input from the user
What primitive Java types? Howmany are they and what are their names?
Why is an interface be able to extend more than one interface but a class can’t extend more than one class?
How do you make a thread in java?
what are Checked & Unchecked exceptions ?
Java run-time system generates What class of exceptions?
In java, how we can disallow serialization of variables?
How can we handle runtime exceptions? write one sample program? Can we write runtime exceptions beside the throws key word? if yes write sample program?
What is a byte array?
What is Generic in java? Where can we write Generic ( class or method or objects or etc...)? with simple example? Thanks, Bose.
2 Answers Infosys, Tech Mahindra,
How to sort the elements in HashMap