[prev in list] [next in list] [prev in thread] [next in thread] 

List:       struts-user
Subject:    Re: No Configuration Error Struts2
From:       Srimuralidharan S <srimuralidharan.s () dhyanit ! com>
Date:       2013-10-16 7:38:29
Message-ID: 525E3FA5.90807 () dhyanit ! com
[Download RAW message or body]

my struts 2 version is 2.0.11
On 10/16/2013 12:51 PM, Lukasz Lenart wrote:
> 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


-- 
Regards,
Srimuralidharan.S


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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic