Tuesday, December 21, 2010

JSP- II

Expression Language:
          Expression Language is official from JSP 2.0. EL is used to do most of the thing what we did using Expression and declaration.
          Java in JSP impends, designers to know Java and Java in JSP is hard to maintain and change. For these reasons EL was required. EL isn't the replacement of java functionalities used in JSP pages. It is the convenient way to invoke java code. Plain old java methods are created somewhere else and calling using EL. EL always enclosed in curly braces, prefixed with $ like ${el}.
           With inclusion of EL, there is no need for scriplets in the pages. Even if there are some scriplets written, it can be easily ignored. Earlier this was done in the directive tags. Now it was done only at web.xml file.  
      <scripting-invalid>true</scripting-invalid> in jsp-config tag.
In the same way. EL can also be ignored in a page. But EL was enabled by default.
      <el-ignored>true</el-ignored> in jsp-config tag.



No comments:

Post a Comment