Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

unable to access the attribute in any of the container scope

 
Anil Deshpande
Ranch Hand
Posts: 119
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Chinmaya Chowdary
Ranch Hand
Posts: 432
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic