Try to put the following directive on the top of your JSP page <%@ page isELIgnored="false" %>
Ilya Kazakevich, Developer JetBrains Inc http://www.jetbrains.com "Develop with pleasure!" -----Original Message----- From: kiala davy [mailto:davy_ki...@yahoo.fr] Sent: Thursday, April 21, 2011 1:50 AM To: Struts Users Mailing List Subject: Re : Struts 2 problem in In url tag variable Could you give me a code example please ? ________________________________ De : Ilya Kazakevich <ilya.kazakev...@jetbrains.com> À : Struts Users Mailing List <user@struts.apache.org> Envoyé le : Mer 20 avril 2011, 23h 43min 13s Objet : RE: Struts 2 problem in In url tag variable AFAIK EL is not enabled by default in JSP 2.0 which is used in tomcat 5. Set ELIgnored="false" in your page attribute Ilya Kazakevich, Developer JetBrains Inc http://www.jetbrains.com "Develop with pleasure!" -----Original Message----- From: kiala davy [mailto:davy_ki...@yahoo.fr] Sent: Thursday, April 21, 2011 1:39 AM To: Struts Users Mailing List Subject: Re : Struts 2 problem in In url tag variable Thanks for your answer. registerInputLink does not contain the registerInput action. Here is my output when i click on the link. Struts Problem Report Struts has detected an unhandled exception: Messages: * There is no Action mapped for namespace / and action name ${registerInputLink}. ________________________________ Stacktraces There is no Action mapped for namespace / and action name ${registerInputLink}. - [unknown location] com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:1 78) org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:61) org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsAct ionProxyFactory.java:39) com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultA ctionProxyFactory.java:47) org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:475) org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.jav a:395) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:215) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:188) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:213) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:172) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127 ) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117 ) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :108) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879) org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC onnection(Http11BaseProtocol.java:665) org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav a:528) org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo rkerThread.java:81) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:689) java.lang.Thread.run(Unknown Source) ________________________________ De : Ilya Kazakevich <ilya.kazakev...@jetbrains.com> À : Struts Users Mailing List <user@struts.apache.org> Envoyé le : Mer 20 avril 2011, 23h 14min 30s Objet : RE: Struts 2 problem in In url tag variable Hi, registerInputLinkhere is EL variable of type java.lang.String. It contains URL of the registerInput action What is output of this code? Do you have this action set in your struts.xml? Ilya Kazakevich, Developer JetBrains Inc http://www.jetbrains.com "Develop with pleasure!" ________________________________ From: kiala davy [mailto:davy_ki...@yahoo.fr] Sent: Thursday, April 21, 2011 1:08 AM To: user@struts.apache.org Subject: Struts 2 problem in In url tag variable Hi, I am a newbie in Struts 2.2.1.1. So i am learning to use Struts. I am facing a problem in the example on the following link http://struts.apache.org/2.2.1/docs/message-resource-files.html. The following code does not work: <s:url action="registerInput"var="registerInputLink"/><p> <a href="${registerInputLink}">Please register</a>for our prize drawing.</p> ${registerInputLink} is not considered as a variable but as a String ? It does not contain registerInput ? Thanks for your help --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org