• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question regarding Exam and about Listener

 
Stein Vom
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all! I was giving a mock exam from an CD, which i got with the WROX book. In one question it was asked to enter the answer into an textfield. I entered it(the answer as EVAL_PAGE). After i saw the result, my answer was told incorrect. Although the correct shown by them was same(EVAL_PAGE). This answer they had written with an space. Will this kind of thing will appear in Real Exam too? Has anybody experienced this? Or anybody has answer to this! One more thing about listener. . .I am really confused with that part. Can anybody finally tell which all Listener need not to be mentioned in web.xml? Waiting for an reply. thanks in advance . . .
 
Martyn Clark
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Stein
To answer you question about the real exam and the problem you had, you will never now from the real exam because they never tell you which ones you got wrong or right.

As for the listener it is HttpSessionBindingListener that you do not confiure in the DD (web.xml) file. Hope that is of some help.
 
Stein Vom
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot Martyn!
 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Also HttpSessionActivationListener is not required to configure in DD.

Thanks
 
Stein Vom
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Narendra!
 
Amit Tayal
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Narendra
Are you sure that we are not supposed to mention about HttpSessionActivationListener in DD as I have read in HFSJ(Page: 261) that we need to mention the same in DD.

Regards
Amit
 
Martyn Clark
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all i think i was right with my first reply i undestand that it is only session binding listener that is not configured in DD.
Also HttpSessionActivationListener is not required to configure in DD.
I think you are wrong on this Narendra, As Ami say's in his post take a look at page 261
 
Jiji Cherian
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Stein,
About the error that you got in the mock exam.
i think the developer of the exam is not aware of the trim() function ..

Hopefully the real exam developers dont do such mistakes..
 
Yogesh Hingmire
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Please refer to the errata , that will help clear things.

Also remember, HttpSessionActivationListener and HttpSessionBindingListener are the only listeners NOT required to be declared in the web.xml.

Thanks,
Yogesh.
 
Martyn Clark
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Yogesh you are correct about the errata my apoligies to Narendra he was right all along It as made me realise that a good check through the errata pages may be a good thing.
 
Stein Vom
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks all of you!

System.out.println("So, finally . . . HttpSessionActivationListener and HttpSessionBindingListener are the only listeners NOT required to be declared in the web.xml");

Nice joke on that part Jiji, i also even thought about it. I think the sun people would not do this mistake.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic