Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Jakarta Server Pages
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Criticism == According to Joel Murach and Michael Urban, authors of the book "Murach's Java Servlets and JSP", embedding Java code in JSP is generally bad practice.{{sfn | Murach | Urban | 2014 | loc=Β§1 Get started right - The JSP for the second page | pp=46-47}} A better approach would be to migrate the back-end logic embedded in the JSP to the Java code in the {{code|Servlet}}.{{sfn | Murach | Urban | 2014 | loc=Β§1 Get started right - The JSP for the second page | pp=46-47}} In this scenario, the {{code|Servlet}} is responsible for processing, and the JSP is responsible for displaying the HTML,{{sfn | Murach | Urban | 2014 | loc=Β§1 Get started right - The JSP for the second page | pp=46-47}} maintaining a clear [[separation of concerns]]. In 2000, Jason Hunter, author of "Java Servlet Programming" described a number of "problems" with JavaServer Pages.<ref name="problems">[http://servlets.com/soapbox/problems-jsp.html The Problems with JSP] (January 25, 2000)</ref> Nevertheless, he wrote that while JSP may not be the "best solution for the Java Platform" it was the "Java solution that is most like the non-Java solution," by which he meant Microsoft's [[Active Server Pages]]. Later, he added a note to his site saying that JSP had improved since 2000, but also cited its competitors, [[Apache Velocity]] and Tea (template language).<ref name="problems" /> Today, several alternatives and a number of JSP-oriented pages in larger web apps are considered to be technical debt.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)