Here is my page register.jsp
<%@ taglib prefix="s" uri="/struts-tags" %> http://www.w3.org/TR/html4/loose.dtd"> <html><title>Basic Struts 2 Application - Welcome</title> <body> <h1>Welcome to Struts 2!</h1> <p> <s:url action="registerInput" var="registerInputLink" /> <p><a href="${registerInputLink}">Please register</a> for our prize drawing.</p> </body> </html> ________________________________ De : Chris Pratt <thechrispr...@gmail.com> À : Struts Users Mailing List <user@struts.apache.org> Envoyé le : Mer 20 avril 2011, 23h 34min 10s Objet : Re: Re : Struts 2 problem in In url tag variable Did you include the JSP taglib directive at the top of the page? (*Chris*) On Wed, Apr 20, 2011 at 2:26 PM, kiala davy <davy_ki...@yahoo.fr> wrote: > My file is register.jsp and i use Tomcat 5.5.30 > > > > > > > ________________________________ > De : Chris Pratt <thechrispr...@gmail.com> > À : Struts Users Mailing List <user@struts.apache.org> > Envoyé le : Mer 20 avril 2011, 23h 11min 21s > Objet : Re: Struts 2 problem in In url tag variable > > For most containers, that will have to be in a file that ends in .jsp to > work. What servlet container (and version) are you using? > (*Chris*) > > On Wed, Apr 20, 2011 at 2:07 PM, kiala davy <davy_ki...@yahoo.fr> wrote: > > > 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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >