Thanks a lot James!!! Your third option is fairly good. My system is already working. Next future you can see the results in www.tudistrito.com, a spanish company for Yellows Pages. Nowadays the site is running under a private presentation system, with servlets.
For your information, this problem don't appear in a Apache/Resin/WebLogic architecture, that is, you can put JSP inside the XTags. Thanks a lot again!!! ----- Original Message ----- From: "James Strachan" <[EMAIL PROTECTED]> To: "Tag Libraries Users List" <[EMAIL PROTECTED]> Cc: "Óscar" <[EMAIL PROTECTED]> Sent: Monday, November 26, 2001 12:28 PM Subject: Re: problems with JSP inside XTAGS > Hi Daniel > > Firstly what is the value of 'cont'? Is it a number? So that the XPath > expression you are trying to evaluate is something like > > /root/States/Locality[2]/code > > (Remember XPath indexes start at 1). > If 'cont' is a page level scope you can access it directly with an XPath > expression as follows > > <xt:valueOf select='/root/States/Locality[$cont]/code'/> > > If you wish to be explicit that cont must be a page level scoped attribute > you could do... > > <xt:valueOf select='/root/States/Locality[$page:cont]/code'/> > > Otherwise if you are having problems creating dynamic XPath expressions, you > can always use scriplet code... > > <% String xpath = "/root/States/Locality[" + cont + "]/code"; %> > <xt:valueOf select="<%= xpath %>"/> > > Though the use of XPath variables is preferred. > > James > ----- Original Message ----- > From: "Daniel" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Cc: "Óscar" <[EMAIL PROTECTED]> > Sent: Monday, November 26, 2001 11:16 AM > Subject: problems with JSP inside XTAGS > > > > Hello everybody!!! I have a great problem. > > > > I have installed the XTags library, with Tomcat 4.0, and the problem is > that > > I can't put JSP sentences inside the > > XTags. For example: > > > > <xt:valueOf select='/root/States/Locality[<%= cont%>]/code'/> > > > > This makes that no result will be displayed on the screen. If anybody have > > the response for this problem, > > please, Help me!!! > > > > > > -- > > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > > > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>