This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 9345
    
    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: 9345
    
    2

Any ideas?
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9345
    
    2

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

Joined: Sep 26, 2006
Posts: 9345
    
    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
 
Similar Threads
Select Tag error in struts2
s:select tag issue in struts2
setting scope of variable in Struts2
s:select accessing a HashMap which has Long as key !!
dropdowns within iterator in struts2