Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What kind of code should pages created with JavaServer Pages technology (JSP pages) contain ?

0
Posted

What kind of code should pages created with JavaServer Pages technology (JSP pages) contain ?

0

Ideally, JSP pages should contain no code written in the Java programming language (that is, no expressions or scriptlets). Anything a JSP page needs to do with Java code can be done from a custom tag. (For a description of the syntax for JSP technology, see http://java.sun.com/products/jsp/tags/11/syntaxref11.html. A list of technical resources for JSP pages appears at http://java.sun.com/products/jsp/technical.html.) Advantages of JSP technology that are partially eliminated by expressions or scriptlets include: • Separation of form and function. JSP pages that contain substantial Java code are usually tangles of layout tags (form) and program logic (function). Such files are are difficult to read and still more difficult to maintain. Changes to program logic corrupt the presentation; and worse, changes in presentation often impact program logic, causing new bugs. Separating logic from presentation allows the two to vary relatively independently. • Separation of developer skill sets

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123