struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: No Configuration Error Struts2
Date Wed, 16 Oct 2013 07:21:17 GMT
Struts 2 version?

2013/10/16 Srimuralidharan S <srimuralidharan.s@dhyanit.com>:
> Hi to all,
>              I'm using struts 2 framework with the following configuration i
> received the following warning and my application doesn't works
>  [Form] No configuration found for the specified action: '/' in namespace:
> ''. Form action defaulting to 'action' attribute's literal value.
>
>
> my struts.xml
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE struts PUBLIC
>    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
>    "http://struts.apache.org/dtds/struts-2.0.dtd">
> <struts>
> <constant name="struts.devMode" value="true" />
> <package name= "db" extends= "struts-default">
> <global-results>
> <result name = "failure">/error.jsp</result>
> <result name="input">/invalid.jsp</result>
> </global-results>
> <action name ="start" method="back" class = "com.dhyan.db.DbAccess" >
> <result name= "success">/index.jsp</result>
> </action>
> <action name = "select" method="selectQuery" class =
> "com.dhyan.db.DbAccess">
> <result name= "success">/view.jsp</result>
> <result name="no-data">/invalid2.jsp</result>
> </action>
> <action name="databasetrigger" class =  "com.dhyan.db.DbAccess">
> <result name = "success">/inserted.jsp</result>
> </action>
> </package>
> </struts>

You can add <default-action-ref name="start"/>

http://struts.apache.org/release/2.3.x/docs/action-configuration.html#ActionConfiguration-ActionDefault
> <filter>
> <filter-name>struts2</filter-name>
> <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
> </filter>

That filter is deprecated since 2.1.3


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message