aspose file tools*
The moose likes Struts and the fly likes action 'parameter' - getParameter returns empty string Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "action Watch "action New topic

action 'parameter' - getParameter returns empty string

James Ward
Ranch Hand

Joined: Apr 27, 2003
Posts: 263
In my struts-config.xml i have parameter attribute in the action tag.

<action ....

But in my action class when i do mapping.getParameter it returns empty string. It should have returned "myVal".(mapping is instance of ActionMapping here)

Funny thing - it works perfectly fine in Tomcat, but not in idea what went wrong.
I agree. Here's the link:
subject: action 'parameter' - getParameter returns empty string
Similar Threads
EL question
component should be moved to prefered are using struts
Exception creating bean of form class
Pass a variable from JSP to Servlet Action
Postfix Operator