• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Questions about the mock exam.

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1.The default value for body_content element of tag library descriptor is
a:empty b.jsp c.tagdependent d.none of them
the answer is b But my answer is d
From the specification,the default value is "JSP"
Is the "jsp" equals "JSP" here? I know the xml is case-sensitive. Why?
2.which scope of the setMaxInactiveInterval() method,the session that this method is called or all the sessions after this method called?
please explain these for me. Thanks a lot.
 
Ranch Hand
Posts: 1011
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) Strictly speaking, the default is "JSP", according to the Sun's Spec. However some containers accept both "jsp" and "JSP". This mock question is not designed very well. In the real exam, you will see "JSP" instead of "jsp". So don't take this mock question too seriously just stick to what you think;
2) setMaxInactiveInterval is for THE one session variable not for all the sessions. Eg. you create two sessions called firstSession, secondSession, and then firstSession.setMaxInactiveInterval(60*30), so the MaxInactiveInterval is 30 minutes for the firstSession, this does not affect the MaxInactiveInterval for the secondSession.
Hope this helps,
 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When both the seesion-timeout and the setMaxInactiveInterval are preset, the second overwrites the first for the particular servlet.
 
this llama doesn't want your drama, he just wants this tiny ad for his mama
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic