You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Shervin Asgari <sh...@linpro.no> on 2006/07/04 15:05:45 UTC

Simple question regarding Action class

Hello.

In the top of my action class I have the following:

-**
 * Administer Your Domain
 *
 * @struts.action name="domainAdministratorForm" 
path="/admin/domainAdministrator" scope="request"
 *                parameter="method"
 * @struts.action-forward name="domainAdministrator.page" 
path=".domainAdministrator"
 *
 * @author <a href="mailto:shervin@asgari.no">Shervin Asgari</a>
 *
 */
public class DomainAdministratorAction {
.
.
.
}

However in my struts-config.xml file which is auto generated, I do not 
get the Action Mapping Definitions.

I want something like this:
<action
      path="/admin/domainAdministrator"
      
type="org.roller.presentation.website.actions.DomainAdministratorAction"
      name="domainAdministratorForm"
      scope="request"
      parameter="method"
      unknown="false"
      validate="true"
    >
      <forward
        name="domainAdministrator.page"
        path=".domainAdministrator"
        redirect="false"
      />
</action>

What is missing? What have I forgotten to do? All my other Action 
Mapping Definitions are correctly auto-generated.

-- 
Shervin Asgari