Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Accessing requestURI  RSS feed

 
tanu dua
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

While going through a mock exam , I encountered the following question :



The answer given was a , though I think it should be c

Explanation : requestURI is a property of the httpServletRequest and as in EL we don't get the request object we get only requestScope object which is the map of the attributes in request scope , we can get a request object by page context and then get its property requestURI.Hence , I think it should be c option.

a) option seems to be incorrect as requestURI is not a page scoped attribute

Am I missing something ?

Thanks
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The ranch has a "search" function which can help you often
http://www.coderanch.com/t/173388/java-Web-Component-SCWCD/certification/could-someone-please-provide-me
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!