2

what is the advantage of using EL over scriptlets in JSP.EL is said to be scriptfree language

1

2 Answers 2

5

EL keeps the JSP free from errorprone raw Java code and forces you to write the JSP according the MVC ideology. Anything which isn't possible with EL (or taglibs like JSTL) would then technically and semantically belong in a real Java class. That's the most major advantage.

Sign up to request clarification or add additional context in comments.

Comments

4

The advantages of using EL are:

  • readability
  • conceptual clarity - jsp is not meant to include any business logic, only presentation

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.