The mapping is passed to perform(), so you can access the parameter like
this:
String parameter = mapping.getParameter();
To pass multiple parameters, you could set it up like a query string
(p1=this&p2=that), and then use
Hashtable parameters =
HttpUtils.parseQueryString(mapping.getParameter());
to get them out.
http://java.sun.com/j2ee/j2sdkee/techdocs/api/javax/servlet/http/HttpUtils.html
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/about/struts/
"Suriyanarayanan, Senthil Kumar" wrote:
>
> Hello,
> How do I use the parameter attribute of the action tag. The
> struts-config_1_0.dtd says, action tag takes
> parameter attribute as..
>
> parameter General purpose configuration parameter that can be
> used
> to pass extra information to the Action selected by
> this
> mapping.
>
> I would like to how to mention in struts-config.xml and refer it in
> the perform method of the action.
>
> Any help would be appreciated.
>
> Thanks
> Senthil Kumar.S