wood burning stoves*
The moose likes Struts and the fly likes Struts 2 Select tag issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 Select tag issue" Watch "Struts 2 Select tag issue" New topic
Author

Struts 2 Select tag issue

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9381
    
    2

Guys,

I have an object in session and I want to access this object and use it for the s:select tag rendering:



examObject is what I have in my session scope and the allQuestionIds is a Map < Long, Long > defined in my ExamObject. When I used this, I got the following error:



I'm sure that I'm missing the basics. But help please!

SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9381
    
    2

Any ideas?
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9381
    
    2

Why is it not possible to read a Map from session?
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9381
    
    2

Ok. It worked. The problem was my Map was null and when I filled some values, it worked.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 2 Select tag issue