File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Struts Action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts Action " Watch "Struts Action " New topic
Author

Struts Action

altap teli
Greenhorn

Joined: Oct 11, 2004
Posts: 3
How can i call the Action in Struts-config.xml file
eg.
the following Struts-config.xml file is try to call
getaccountinformation action then server gives me error:
No Instance of Action 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>
Eugene Lucash
Ranch Hand

Joined: Feb 19, 2005
Posts: 77
usually the problem is that there are
no such class as action.GetAccountInformationAction
maybe you forgot something to plumb
(I hate Struts for a lot of plumbing code needed)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts Action
 
Similar Threads
Struts Action
Data Source
Cannot load a validator resource
problem dispaly error message in struts
Struts Without Form Bean