This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes requestScope Querry Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "requestScope Querry" Watch "requestScope Querry" New topic
Author

requestScope Querry

Yati Tan
Ranch Hand

Joined: May 28, 2005
Posts: 56
I hv set following in the JSP page :

<%
Integer i = new Integer(3);
request.setAttribute("inty",i);
%>

But, Iam not able to access "inty" from requestScope in the same JSP page.

<br> Value of inty ${requestScope[inty]}

Am I being wrong somewhere ?

Pls suggest !


SCJP 1.4<br />SCJA 1.0<br />SCWCD 1.4
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

${requestScope["inty"]}


[My Blog]
All roads lead to JavaRanch
Yati Tan
Ranch Hand

Joined: May 28, 2005
Posts: 56
Thanks !
 
Don't get me started about those stupid light bulbs.
 
subject: requestScope Querry