• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reg. Final HFS mock exam question...Doubts

 
Bharat Roy
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ref. Pg.785 Q.43
(1) Is this legal <auth-constraint>*</auth-constraint> (i.e. * in there)

Ref. Pg.797 Q.69
(2) Can we use "all" inside "parameter" attribute in getProperty i.e.
<jsp:getProperty name="whatever" property="all" />

(3) Is it compulsary to give absolute path starting with "/" inside getResourceAsStream("/xxxxx")

Thanks.
 
Nitish Bahadur
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1.) Yes. * equates to all roles defined in the web application.

2.) Yes. I don't think 'all' is a reserved word.

3.) Yes, as per the API documents. However, I think if the getResource can resolve the URI to a valid resource it should not be a problem.
 
Bharat Roy
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nitish,

Thanks for the prompt reply.

Reg. my 1st doubt, that means :

and

are the same thing???

About that 2nd doubt, I read the question incorrectly. Sorry.

Thanks
 
Ranjit Jana
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Please check the errata. This option is taken out.

Regards,

------------------------
{785,823} Question 44;
The bullet "* should reduce duplicate code" should be deleted.
It is not a feature of the design pattern described.
-----------------------
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic