Disadvantages of using scriptlet tags on JSP for managing DOM structure
Posted By : Manish Gupta | 31-Oct-2017
Disadvantages of using scriptlet tag for business logic on
JSP(Java Server Pages) technology undoubtedly provides a simplified, fast way to create the dynamic view for the web application. It does
All the business logic and the calculation must be done on the servlets or Business layers in your application.
The scriptlet tags provided by JSP technology should not be used to embed your business logic and then rendering the view. This is because of the
1. No Code Reusability: Using the
2. Poor structure of JSP page: Scriptlet tags if used on JSP page for view management does result in a structure of
3. Reduced readability of
4. Increases efforts to understand the JSP: Because
5. Prone to
To overcome the
Using jquery is easy to use and it helps in maintaining the structure of the view(JSP). It also helps in understanding the DOM structure and it takes less time
-------------------------------
Thanks.
------------------------------
Cookies are important to the proper functioning of a site. To improve your experience, we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests. Click Agree and Proceed to accept cookies and go directly to the site or click on View Cookie Settings to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site.
About Author
Manish Gupta
Manish is a Java Developer with hands on experience in Core Java, JSP, Spring framework, JavaScript, JQuery, HTML, CSS, and SQL/PL-SQL. Tools used: Eclipse, Netbeans, DBeaver, Oracle SQL Developer, Toad, MS SQL Server. He is a keen learner and technology