File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

implicit objects are available to the jsp page

 
Sherif Shehab
Ranch Hand
Posts: 485
Android Eclipse IDE Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A JSP page has the following page directives:

<%@page isErrorPage='false' %>
<%@page errorPage='/jsp/myerror.jsp' %>
Which of the following implicit objects are available to the jsp page?


Select 3 correct options
a session


b throwable


c exception


d application


e response



Any answers?
 
Michael Ku
Ranch Hand
Posts: 510
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you think is the answer?
 
Sherif Shehab
Ranch Hand
Posts: 485
Android Eclipse IDE Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Michael Ku:
What do you think is the answer?


i already know the answer but it was wrong in the simulator so i didnt write both , to see who is right without any effect from the answers i wrote
 
Michael Ku
Ranch Hand
Posts: 510
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is easier to help you if you ask the question that you really want to ask. So what is your real question? If you know the answer to the question that you posted, then what is it that you really want to know? If the simulator gave you an answer that you disagree with or know that is wrong then please express this idea so that everyone can benefit from this information then ask your real question.

Help me help you - what is it that you want to know?
 
Sherif Shehab
Ranch Hand
Posts: 485
Android Eclipse IDE Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Michael Ku:
It is easier to help you if you ask the question that you really want to ask. So what is your real question? If you know the answer to the question that you posted, then what is it that you really want to know? If the simulator gave you an answer that you disagree with or know that is wrong then please express this idea so that everyone can benefit from this information then ask your real question.

Help me help you - what is it that you want to know?


that i doubt in the simlator answers . my answers :a,c,d
simulator answers :a,d,e .. so who made the right answer? with clarification please
 
Michael Ku
Ranch Hand
Posts: 510
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
that i doubt in the simlator answers . my answers :a,c,d


Again, why do you disagree with the simulator answers? Why do you think you are correct and the simulator is wrong?

Help me help you - if you tell me what your reasoning is I will tell you if you or the simulator is correct.
 
Sherif Shehab
Ranch Hand
Posts: 485
Android Eclipse IDE Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sherif Shehab:
A JSP page has the following page directives:

<%@page isErrorPage='false' %>
<%@page errorPage='/jsp/myerror.jsp' %>
Which of the following implicit objects are available to the jsp page?


Select 3 correct options
a session


b throwable


c exception


d application


e response



Any answers?


Ok, in my view i said a,c,d & simulator a,d,e so the difference in c & e
i said c because the directive @page isErrorPage='false' was declared so the exception object is available, am i right?
 
Michael Ku
Ranch Hand
Posts: 510
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, the simulator is correct and you are wrong. The response is always available. The exception object is not available unless the page is an errorPage (isErrorPage=true).

Your understanding of the isErrorPage directive is not correct. Please review this subject. This is an important topic that is sure to be on the exam. You may also consider creating a JSP and seeing which of the implicit objects are available to you. Create 2 JSPs, one that is an error page and one that is not. This will help you see the difference
[ November 03, 2007: Message edited by: Michael Ku ]
 
Sherif Shehab
Ranch Hand
Posts: 485
Android Eclipse IDE Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
opsssssss, you are right , i didnt notice "false", thanks for clarification
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic