This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSP and the fly likes unable to access the attribute in any of the container scope Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "unable to access the attribute in any of the container scope" Watch "unable to access the attribute in any of the container scope" New topic
Author

unable to access the attribute in any of the container scope

Anil Deshpande
Ranch Hand

Joined: Jan 13, 2008
Posts: 117
This is a index.jsp file



The custom Tag handler code is as follows



Then I have a show.jsp Page



The DTD in web.xml is perfectly fine. I get the show.jsp page without any problem. The problem is I am able to access colorList but I am unable to access "color" from select tag that I have created using the custom tag.

It is printing me null for line 5 in show.jsp page. Please help.I want to display the color that I have selected in index.jsp page.


Anil Deshpande
SCJP 1.5, SCWCD 1.5
Chinmaya Chowdary
Ranch Hand

Joined: Apr 21, 2008
Posts: 432
Hi Anil.

I think you have not declared 'color' attribute in request scope, that's why got 'null'.

Try like this in EL
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: unable to access the attribute in any of the container scope
 
Similar Threads
Doubt in JSP Custom tags (Simple Tag) in Dynamic Drop Down
HFSF - page 547 - ATTR_TEMPLATE?
HFSJ problem-Dynamic attribute
Doubt on page 547 HFSJ
setDynamicAttribute not being invoked