I might be wrong anyway, misread the post on my phone; not sure a var can
be read through plain JSP EL like that-don't recall.

Sorry for the confusion.

Dave
 On Jan 5, 2012 8:28 AM, "Dave Newton" <davelnew...@gmail.com> wrote:

> Looks like your container isn't evaluating JSP EL. Make sure your web.xml
> is your servlet spec 2.5+.
>
> Dave
>  On Jan 5, 2012 6:04 AM, "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
>>
>>

Reply via email to