Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help me to get solved last minute problems!!!

 
Khp Virajith
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Im going to do scwcd in mid of this week. I have some last minute problems to get solved and clarified.so i would be grateful if anybody can clarify followings...


(01) <jsp:useBean id="employee" class="com.Employee" />
can you tell me whether it tries to find that "employee" attribute only in page scope or in all four scope(page > request > session >application) when the scope isn't given(before trying to create new one in page scope)???

(02) <c:set var="abc" value="temp" />
can you tell me whether it tries to find that "abc" attribute only in page scope or in all four scope(page > request > session >application) when the scope isn't given(before trying to create new one in page scope)???


(03) what are the values that can be used for <body-content> element of a tld for a classic tag? is JSP a valid value???


(04) what are the values that can be used for <body-content> element of a tld for a tag file? is JSP a valid value???

(05) what are the values that can be used for <body-content> element of a tld for a simple tag? is JSP a valid value???


(06) when does the valueBound() method of HttpSessionBindingListener implementing class is invoked ?? before binding or immediately after binding??
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All of these questions can be answered by reading the servlet/JSP specification (or by writing a few short lines of code). I think if you want to take the SCWCD then you should become proficient at finding answers in the spec, so I'll refrain from providing them here. Good luck.
 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
(04) what are the values that can be used for <body-content> element of a tld for a tag file? is JSP a valid value???


they are - empty
scriptless ( default )
tagdependent

(06) when does the valueBound() method of HttpSessionBindingListener implementing class is invoked ?? before binding or immediately after binding??


its invoked just when the object is bound to the session, but before it becomes available by using session.getAttribute( )

(02) <c:set var="abc" value="temp" />
can you tell me whether it tries to find that "abc" attribute only in page scope or in all four scope(page > request > session >application) when the scope isn't given(before trying to create new one in page scope)???


if the scope is not mentioned, it defaults to the 'page' scope. if its mentioned, then the one that is mentnoned is used.i think, no searching happens as said by you.

same comment as aboove applies to your question (01)


correct me if i am wrong...rest of the questions, i didnt take time to find !
thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic