Not really related to what I said, but like I said, I misread anyway. Dave On Jan 5, 2012 9:10 AM, "Mahesh" <mag...@gmail.com> wrote:
> Hi, > > The version of software being used for running the tutorial is below. > > Tomcat 6.0.33 > Java "1.6.0_26" > Struts 2.3.1.1 > on Linux > > -- > Mahesh > > On 5 January 2012 16:33, Mahesh <mag...@gmail.com> wrote: > > Hi, > > > > This is about the topic URL tags in struts2 tutorial available in the > > below link. > > > > http://struts.apache.org/2.x/docs/using-struts-2-tags.html > > > > > > Problem is this: > > > > <s:url action="hello" var="helloLink"> > > <s:param name="userName">Bruce Phillips</s:param> > > </s:url> > > > > ------------------------------------------------------------------------ > > <p><a href="${helloLink}">Hello Bruce Phillips</a></p> > > ------------------------------------------------------------------------ > > > > I get the below exception when I use the above and click on the link > > in my index.jsp. > > > > There is no Action mapped for namespace [/] and action name > > [${helloLink}] associated with context path [/simle-webapp]. - > > [unknown location] > > at > com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:185) > > at > org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:63) > > at > org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39) > > at > com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58) > > at > org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:500) > > at > org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77) > > at > org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91) > > 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:127) > > 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:291) > > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) > > at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) > > at > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) > > at java.lang.Thread.run(Thread.java:662) > > > > > > Solution is to modify the above line as the below line. > > > > ------------------------------------------------------------------------ > > <p><s:a href="%{helloLink}">Hello Bruce Phillips</s:a></p> > > ------------------------------------------------------------------------ > > This solved the problem. > > > > If I am wrong then please let help me understand this. > > Might help other newbies like me. > > > > Thanking you, > > > > -- > > Mahesh > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >