• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

examulator question error

 
Ranch Hand
Posts: 310
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is question in examulator quizzes

Which of the following are implicit variables available by default within EL expressions?

a. session
b. out
c. param
d. cookies
e. pageConfig

i select only param.But the site displays param and cookies.

But i am sure cookies is not a EL implicit object, its cookie.
 
Sreeraj G Harilal
Ranch Hand
Posts: 310
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
another question in the same quizzes about EL

Which of the following statements are true?

a. A function for use with an EL must have a public static signature
b. A function for use with an EL cannot take any parameters
c. A function for use with an EL must be declared within the deployment descriptor
d. A function for use with an EL must be declared with a void return type

I select only option a.But site displays option a and c are correct.

I think c is not correct because functions for use with an EL must be declared within any TLD file not in DD
 
Sreeraj G Harilal
Ranch Hand
Posts: 310
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Another wrong answer.

"The beanName attribute of useBean is only used with serialized beans"
a)True
b)False

I select option b. But the site says its option a.

I am sure we can use beanName attribute of useBean with non-serialzed beans also.

See this


Employee.java

anyfile.jsp


its working fine. See the Employee class, its not implementing Serializable interface.
 
Sreeraj G Harilal
Ranch Hand
Posts: 310
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Another question

Which of the following statements are true of custom tags that are created by extending the SimpleTagSupport class.

a. Such tags may contain JSTL expressions within the body
b. Such tags cannot manipulate the content of the body
c. Such tags cannot contain EL expressions within the body
d. Such tags cannot have a bodycontent type of JSP
e. Such tags do not need to be defined with a TLD file

options in radio buttons not in check boxs
answer : a

i select option d. but i didn't get any mark.

I think option a and d are correct. Am i right?
 
Sreeraj G Harilal
Ranch Hand
Posts: 310
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Marcus Green, please reply me about the points i mentioned.
Am i right or not?
 
arch rival
Posts: 2813
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sreeraj, I'll reply to each of your questions very soon (I have just got up and read these messages before going to work). Many thanks for your feedback,
 
Marcus Green
arch rival
Posts: 2813
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"But i am sure cookies is not a EL implicit object, its cookie."

You are right of course, its slightly odd as you might expect a map to
use the plural. I have it as cookie in the text of my material and the JSP Spec
explains in section
1.2.3

"cookie - a Map that maps cookie names to a single Cookie object.... "

I have updated that question now.
 
Marcus Green
arch rival
Posts: 2813
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"I think c is not correct because functions for use with an EL must be declared within any TLD file not in DD"

You are correct I have updated the question. I will also be adding two more references to this topic, the section in the JSP spec (JSP 2.6) and a page by Oracle at

http://www.oracle.com/technology/pub/articles/cioroianu_jspapi.html
 
Sreeraj G Harilal
Ranch Hand
Posts: 310
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Marcus for your reply.
But i am curiously waiting for your reply about the question below :-

"The beanName attribute of useBean is only used with serialized beans"
a)True
b)False
 
If I'd had more time, I would have written a shorter letter. -T.S. Eliot such a short, tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic