Hi, This is Suhas. I have read your mail. Most probably you have not defined the action which drives the jsp. Bcos if no action is mentioned in the <s:form>, defaults to the driving action. If not defined warning comes out.
Thanks Suhas. --- On Thu, 12/2/09, Ratheesh Kumar K <k.ratheeshku...@gmail.com> wrote: > From: Ratheesh Kumar K <k.ratheeshku...@gmail.com> > Subject: Re: WARNING: Could not find action or result There is no Action > mapped for namespace / and action name . - [unknown location] > To: user@struts.apache.org > Date: Thursday, 12 February, 2009, 9:41 AM > Sorry for the inconvenience. > Thanks for your instant response. > here is the directory structure > http://www.nabble.com/file/p21969639/directoryStructure.gif > > Following are the major configuration files: > > web.xml > <?xml version="1.0" > encoding="UTF-8"?> > <web-app > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns="http://java.sun.com/xml/ns/javaee" > xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" > xsi:schemaLocation="http://java.sun.com/xml/ns/javaee > http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" > id="WebApp_ID" > version="2.5"> > <display-name>test1</display-name> > <welcome-file-list> > <welcome-file>t1.jsp</welcome-file> > </welcome-file-list> > <filter> > <filter-name>struts2</filter-name> > > <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class> > </filter> > <filter-mapping> > <filter-name>struts2</filter-name> > <url-pattern>/*</url-pattern> > </filter-mapping> > </web-app> > > struts.xml > > <?xml version="1.0" > encoding="UTF-8"?> > <!DOCTYPE struts PUBLIC > "-//Apache Software Foundation//DTD Struts > Configuration 2.1//EN" > > "http://struts.apache.org/dtds/struts-2.1.dtd"> > <struts> > <constant name="struts.devMode" > value="true" /> > <package name="Amrita" > namespace="Amrita" > extends="struts-default"> > <action name="loadAmrita" > class="org.amrita.testAction"> > <result > name="input">index.jsp</result> > <result>success.jsp</result> > </action> > </package> > </struts> > > testAction.java > > package org.amrita; > > import com.opensymphony.xwork2.ActionSupport; > > public class testAction extends ActionSupport > { > /** > * > */ > private static final long serialVersionUID = 1L; > > public String execute() > { > return SUCCESS; > } > } > > index.jsp > > <%@ page language="java" > contentType="text/html; charset=ISO-8859-1" > pageEncoding="ISO-8859-1"%> > <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 > Transitional//EN" > "http://www.w3.org/TR/html4/loose.dtd"> > <%@ taglib uri="/struts-tags" > prefix="s" %> > <html> > <head> > <meta http-equiv="Content-Type" > content="text/html; charset=ISO-8859-1"> > <title>Insert title here</title> > </head> > <body> > haiiiiiiiiiii > <s:form action="loadAmrita"> > <s:submit value="submit"/> > </s:form> > </body> > </html> > > success.jsp > > <%@ page language="java" > contentType="text/html; charset=ISO-8859-1" > pageEncoding="ISO-8859-1"%> > <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 > Transitional//EN" > "http://www.w3.org/TR/html4/loose.dtd"> > <html> > <head> > <meta http-equiv="Content-Type" > content="text/html; charset=ISO-8859-1"> > <title>Insert title here</title> > </head> > <body> > Success !!! > </body> > </html> > > > newton.dave wrote: > > > > AFAIK the mailing list doesn't pass through > attachments, although using > > one of the forums might. > > > > Asking people to "go through" your > application probably isn't the most > > effective approach--why not just post the relevant > configuration and > > deployment information? > > > > It's probably a simple configuration or deployment > issue. > > > > Dave > > > > Ratheesh Kumar K wrote: > >> Hello All, > >> I am a newbie to the Struts 2 framework. I started > with latest version of > >> Struts 2, i.e. Struts 2.1.6 and is strucked with > the following error. I > >> have gone through the entire forums and many other > mailing list, but was > >> not > >> able to get it corrected. The war file for the > project is attached, > >> please > >> go theough it and send me some solutions. Any > pointers and tricks are > >> appreciated. Please execute the war file and then > comment on it, because > >> I > >> experimented all the tricks explained in most of > the user forums. You can > >> download the war file from > http://www.fileqube.com/file/GgjLtuIij172959 > >> here or from > >> > http://www.adrive.com/public/74896d3331b8aae51eeb1bb90e63cde126bf3d709bc8e9c932956279a2bfa6c8.html > >> here > >> > >> Following are the development environment > configurations: > >> IDE: Eclipse Platform Version: 3.4.1 Build id: > M20080911-1700 [Ganymede] > >> Servelt Engine: Tomcat 6.0.18 > >> Struts version: 2.1.6 > >> Operating System : Windows XP > >> > >> Following is the error report: > >> > >> Feb 10, 2009 9:04:25 PM > >> > com.opensymphony.xwork2.util.logging.commons.CommonsLogger > warn > >> WARNING: Could not find action or result > >> There is no Action mapped for namespace / and > action name . - [unknown > >> location] > >> at > >> > com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:177) > >> at > >> > org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:61) > >> at > >> > org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39) > >> at > >> > com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:47) > >> at > >> > org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:458) > >> at > >> > org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77) > >> at > >> > org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:76) > >> at > >> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > >> at > >> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > >> at > >> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > >> at > >> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) > >> at > >> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) > >> at > >> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > >> at > >> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > >> at > >> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) > >> at > >> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) > >> at > >> > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) > >> at > >> > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) > >> at java.lang.Thread.run(Unknown Source) > >> > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > user-unsubscr...@struts.apache.org > > For additional commands, e-mail: > user-h...@struts.apache.org > > > > > > > > -- > View this message in context: > http://www.nabble.com/WARNING%3A-Could-not-find-action-or-result-There-is-no-Action-mapped-for-namespace---and-action-name-.----unknown-location--tp21957971p21969639.html > Sent from the Struts - User mailing list archive at > Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: > user-h...@struts.apache.org Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org