top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Why use of scripting elements in JSP is discouraged?

0 votes
261 views
Why use of scripting elements in JSP is discouraged?
posted Aug 22, 2017 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

JSP pages are mostly used for view purposes and all the business logic should be in the servlet or model classes. We should pass parameters to JSP page through attributes and then use them to create the HTML response in JSP page.

Most part of the JSP page contains HTML code and to help web designers to easily understand JSP page and develop them, JSP technology provides action elements, JSP EL, JSP Standard Tag Library and custom tags that we should use rather than scripting elements to bridge the gap between JSP HTML part and JSP java part.

answer Aug 23, 2017 by Ayush Srivastav
...