Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Kotlin in Action this week in the Kotlin forum!
    Bookmark Topic Watch Topic
  • New Topic

Struts Action  RSS feed

 
altap teli
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Report post to moderator
How can call the Action from struts-config.xml file?for eg.
i write the following struts-config.xml it gives me error:

No Action Instance Could be Created


<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
"http://struts.apache.org/dtds/struts-config_1_2.dtd">

<struts-config>
<form-beans>
<form-bean name="loginForm" type="form.LoginForm"/>

<form-bean name="accountinformationform" dynamic="true"
type="org.apache.struts.action.DynaActionForm">
<form-property name="account" type="java.util.ArrayList"/>
</form-bean>
</form-beans>


<action-mappings>
<action
path="/login"
type="action.LoginAction"
scope="request"
name="loginForm"
validate="true"
input="/login.jsp" >
<forward name="success" path="/action/getaccountinformation" redirect="true"/>
<forward name="failure" path="/login.jsp" redirect="true"/>
</action>

<action
path="/getaccountinformation"
type="action.GetAccountInformationAction"
scope="request"
name="accountinformationform"
validate="false">
<forward name="Success" path="/account_information.jsp"/>
</action>


</action-mappings>

<message-resources parameter="LoginMessageResources.properties"/>
</struts-config>
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66187
149
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
altap, please do not cross-post the same question in multiple forums.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!