Wednesday, October 19, 2005

Write down the Valid and Invalid JSP Expressions

Valid:


  1. All primitive literals are valid.
  2. String literals are allowed.
  3. Anything that resolves to Boolean is fine.
  4. Object declaration is allowed.
  5. Method calls should always result in a value( primitive, String, Boolean).

Invalid:


  1. Semicolon should be avoided at the end of the statement.
  2. No variable declarations are allowed.
  3. Method calls should not result in a void value.

0 Comments:

Post a Comment

<< Home