jump to navigation

Struts action, parameter attribute June 29, 2005

Posted by javafoo in javanotes, struts basic.
trackback

My gripe about this generic attribute called ‘parameter’ in the struts action config.
So I have something like:

path=”/logonProcess”
type=”naive.actions.LogonAction”
name=”logonForm”
parameter=”/pages/Logon.jsp”
validate=”true”
Now someone pray tell me what this ‘paramter’ is supposed to do.
I looked up on the Apache site and it says:

“action general purpose configuration parameter”.

Alright, but what is that supposed to mean. Well it means different things to different action type classes, if it is a ForwardAction it can be the url you want the action to be forwarded to. For DispatchAction it is the key to the different method values.  Also you can pass your own parameters that can be available to the action.

Comments»

1. vishin - June 22, 2007

i am looking for the same😦

2. vishin - June 22, 2007
3. frishiciciach - October 29, 2008

Heh. Nice. I want everyone to know about my zany shoes Do you want a fresh joke from net? What’s the difference between an oral thermometer and a rectal thermometer? The taste.

4. Sushant - September 2, 2010

good solution

5. saurabh - September 30, 2012

parameter is just an argument you are passing via url. For example my url is http://localhost:8080/LoginApp/Login.do?action=login
now in struts-config
parameter will hold action


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: