wood burning stoves 2.0*
The moose likes Struts and the fly likes Map not being resolved (FIXED) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Map not being resolved (FIXED)" Watch "Map not being resolved (FIXED)" New topic
Author

Map not being resolved (FIXED)

Sam Gardner
Ranch Hand

Joined: Jul 22, 2008
Posts: 48
Hi Guys -

I'm having a lot of trouble getting Struts 2 Lists to work.

I am trying to do a selection of 8 radio buttons, but i keep getting a Servlet.service() error:


Here is the action class:


struts.xml action configuration:


calling jsp:


Thanks for any help anyone can give me, and let me know if I should include something else.

I'm using "Struts 2 Design and Programming" by Budi Kurniawan as a reference, and as far as I can tell I'm following the pattern of his code exactly.
Sonny Gill
Ranch Hand

Joined: Feb 02, 2002
Posts: 1211

There is nothing wrong with the code.
This may sound obvious, but are you sure you are accessing the page through the 'action' URL, and not directly as a JSP?


The future is here. It's just not evenly distributed yet. - William Gibson
Consultant @ Xebia. Sonny Gill Tweets
Sam Gardner
Ranch Hand

Joined: Jul 22, 2008
Posts: 48
Sonny Gill wrote:There is nothing wrong with the code.
This may sound obvious, but are you sure you are accessing the page through the 'action' URL, and not directly as a JSP?


Hmm, come to think of it, I am not.

By that you mean linking to "DemoSrs.action" instead of "DemoSrs.jsp", right?

Thanks for the help
Sam Gardner
Ranch Hand

Joined: Jul 22, 2008
Posts: 48
Sam Gardner wrote:
Sonny Gill wrote:There is nothing wrong with the code.
This may sound obvious, but are you sure you are accessing the page through the 'action' URL, and not directly as a JSP?


Hmm, come to think of it, I am not.

By that you mean linking to "DemoSrs.action" instead of "DemoSrs.jsp", right?

Thanks for the help


Thanks a lot, that was the issue.
Sonny Gill
Ranch Hand

Joined: Feb 02, 2002
Posts: 1211

Yeah, it is one of those things... it bites you once, but you will never do it again

I guess you can see what was happening.
In Struts2, if you get weird problems like this, for example validation not happening where you expected it to happen, it is often because some interceptor was not being invoked, or as in this case, even the Action was never invoked.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Map not being resolved (FIXED)
 
Similar Threads
Request not able to reach Action class in Struts2
Dropdown creation dynamically from DB lookup
Need Help - Struts2 s:select issue - Urgent
Advice on first project
DropDown Menu error in Struts 2