Struts 2 version? 2013/10/16 Srimuralidharan S <srimuralidhara...@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-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org