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 action 'parameter' - getParameter returns empty string 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 "action Watch "action New topic
Author

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 ....
parameter="myVal"
...
</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 WebSphere...no idea what went wrong.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: action 'parameter' - getParameter returns empty string
 
Similar Threads
Exception creating bean of form class
Postfix Operator
Pass a variable from JSP to Servlet Action
EL question
component should be moved to prefered are using struts