aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes implicit objects are available to the jsp page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "implicit objects are available to the jsp page" Watch "implicit objects are available to the jsp page" New topic
Author

implicit objects are available to the jsp page

Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 483

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?


Thanks,
Sherif
Michael Ku
Ranch Hand

Joined: Apr 20, 2002
Posts: 510
What do you think is the answer?
Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 483

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

Joined: Apr 20, 2002
Posts: 510
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

Joined: Mar 05, 2007
Posts: 483

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

Joined: Apr 20, 2002
Posts: 510
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

Joined: Mar 05, 2007
Posts: 483

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

Joined: Apr 20, 2002
Posts: 510
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

Joined: Mar 05, 2007
Posts: 483

opsssssss, you are right , i didnt notice "false", thanks for clarification
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: implicit objects are available to the jsp page