File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Storm Applied this week in the Other Open Source APIs forum!
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