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
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