• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EL Mock Question

 
PRavi kumar
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,

Which of the following can be used to configure the JSP container to ignore EL expressions?
A <%@ page isELIgnored="true" %>
B <%@ page isELIgnored="false" %>
C <%@ import isELIgnored="false" %>
D None of the above.

I think answer is A. But my mock exams show answer id D. Kindly explain which one is correct.

Regards,
Ravi.
 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even I'd say the answer to be A. I guess your mock exam is wrong. Which one is that?
 
PRavi kumar
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://www.javacertificate.net/
 
Jayant Raj
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
configure the JSP container to ignore EL expressions


The question is how the JSP container can be configured to ignore EL expressions which I would read as "Ignore EL expressions application wide".

EL evaluation is enabled by default.

Evaluation of EL expressions can be ignored application wide by configuring it in the deployment descriptor :


However, you can override this behaviour in specific JSPs by using isELIgnored = "false" in the page directive.
 
Jayant Raj
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hence, the answer should be D.
 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Very good catch....Jayanth. Configure the jsp container meant to configure the DD. Gotcha!!!
 
PRavi kumar
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot of exlanation.

In real exam we will get the questions like this?. If yes I need to be certified in my English.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic