You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Zeltser, Mark" <Ma...@lehman.com> on 2002/04/04 16:39:16 UTC
RE: No action instance for path
What is your servlet mappings? If you have standard *.do mapped to action
servlet then you will need the following action="/verifyAction.do"
Mark.
-----Original Message-----
From: kelly lan [mailto:kelly_lan999@yahoo.com]
Sent: Thursday, April 04, 2002 5:36 AM
To: Struts User
Subject: No action instance for path
Hi,
In my logon page ,I logon with user name and user
password,when I submit I get the error:
No action instance for path /verifyAction could be
created
This is my logon page:
..
<html:form action="/verifyAction" focus="username">
<table border="0" width="200">
<tr>
<td width="56"><font size="2"
color="#CC0000"></font></td>
<td width="134">UserName: <font size="2">
<html:text property="username"/>
</font></td>
</tr>
<tr>
<td width="56"><font size="2"
color="#CC0000">Password:</font></td>
<td width="134"> <font size="2">
<html:password property="password"/>
</font></td>
</tr>
<tr bgcolor="#7B889F">
<td>
<html:submit property="submit"value="
"/></td>
<td>
<input type="reset" name="reset1" value="
"></td>
</tr>
</table>
</html:form>
This is my struts_config.xml:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config
SYSTEM
"FILE:/WebSphere/AppServer/dtds/struts-config_1_0.dtd">
<!--
This is a blank Struts configuration file based
on the example application,
with commented examples of some items.
NOTE: If you have a generator tool to create the
corresponding Java classes
for you, you could include the details in the
"form-bean" declarations.
Otherwise, you would only define the "form-bean"
element itself, with the
corresponding "name" and "type" attributes, as
shown here.
-->
<struts-config>
<!-- ========== Data Source Configuration
=============================== -->
<!--
<data-sources>
<data-source
autoCommit="false"
description="Example Data Source Configuration"
driverClass="org.postgresql.Driver"
maxCount="4"
minCount="2"
password="mypassword"
url="jdbc:postgresql://localhost/mydatabase"
user="myusername"
/>
</data-sources>
-->
<!-- ========== Form Bean Definitions
=================================== -->
<form-beans>
<!-- Example logon form bean
<form-bean name="logonForm"
type="org.apache.struts.example.LogonForm"/>
-->
<form-bean name="logonForm"
type="org.apache.struts.webapp.example.LogonForm"/>
</form-beans>
<!-- ========== Global Forward Definitions
============================== -->
<global-forwards>
<!-- Example logon forward
<forward name="logon"
path="/logon.jsp"/>
-->
<forward name="success"
path="/test/confirm.jsp"/>
</global-forwards>
<!-- ========== Action Mapping Definitions
============================== -->
<action-mappings>
<!-- Display the "confirm.html" documentation -->
<action path="/confirmhtml"
forward="/test/confirm.html">
</action>
<!-- Display the "confirm.jsp" documentation -->
<action path="/confirmjsp"
forward="/test/confirm.jsp">
</action>
<!-- Display the verifyAction documentation -->
<action path="/verifyAction"
type="org.apache.struts.webapp.example.VerifyAction"
name="logonForm"
scope="request"
input="/index.jsp">
<forward name="success"
path="/test/confirm.jsp"/>
</action>
<!-- The standard administrative actions available
with Struts -->
<!-- These would be either omitted or protected by
security -->
<!-- in a real application deployment -->
<action path="/admin/addFormBean"
type="org.apache.struts.actions.AddFormBeanAction"/>
<action path="/admin/addForward"
type="org.apache.struts.actions.AddForwardAction"/>
<action path="/admin/addMapping"
type="org.apache.struts.actions.AddMappingAction"/>
<action path="/admin/reload"
type="org.apache.struts.actions.ReloadAction"/>
<action path="/admin/removeFormBean"
type="org.apache.struts.actions.RemoveFormBeanAction"/>
<action path="/admin/removeForward"
type="org.apache.struts.actions.RemoveForwardAction"/>
<action path="/admin/removeMapping"
type="org.apache.struts.actions.RemoveMappingAction"/>
</action-mappings>
</struts-config>
Thank for you!
__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
------------------------------------------------------------------------------
This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Form tag to ActionForm field types relationships.
Posted by Bob Lee <bo...@crazybob.org>.
Is there a complete list of what ActionForm field types corresponds to which
HTML elements? I'm having trouble finding one.
For example, if I have multiple hidden fields with the same name, can my
ActionForm field be an array or a Collection? Or, if I have a checkbox, can
my ActionForm field be a boolean or String?
Thanks,
Bob
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>