Hi Boris - post your code and I'll try it in my container.

Clive

-----Original Message-----
From: Borislav Iordanov [mailto:[EMAIL PROTECTED]]
Sent: 07 March 2002 18:43
To: Tag Libraries Users List
Subject: Re: id attribute


Hi,

Tanks Clive!

Actually, I was talking about the _value_ of the id attribute, the name is
of
course statically defined in the TLD.  However, code similar to your example
didn't work for me under Tomcat 3.2.1. The string value of the id is kept
with
the <%=" and "%>, i.e. it is not evaluated at all (and the attribute is
declared
with <rtexprvalue>true</rtexprvalue> in the TLD). I guess I'll have to
investigate more the issue with various containers. But ideally I would like
to
know what the JSP standart says about this, neither 1.1. nor 1.2 is explicit
enough.

Boris

"van Hilten, Clive" wrote:

> Actually, on reading my reply again, I think we are talking about
different
> things altogether - I see that you are trying to have the attribute
_name_,
> not its _value_, determined at runtime - no idea about this, sorry.
>
> Clive
>
> -----Original Message-----
> From: van Hilten, Clive [mailto:[EMAIL PROTECTED]]
> Sent: 07 March 2002 09:24
> To: 'Tag Libraries Users List'
> Subject: RE: id attribute
>
> Here is an example of something I have along the lines you suggest. It is
a
> JSP that generates WML code to be viewed in a WML browser on a mobile
> device. The JSP container I am using is Tomcat 3.2 on Windows 2000
> Professional. It compiles just fine. The custom tag library I am using is
> the Openwave Usability Interface (OUI).
>
> HTH
>
> Clive
>
>
============================================================================
> =
>
> <%@ taglib uri="/WEB-INF/tld/oui.tld" prefix="oui" %>
> <%@ page language="java"%>
> <jsp:useBean id="trading" scope="request" class="ariel.TradingBean" />
>
> <oui:wml>
>
> <oui:head>
> <oui:meta forua="true" http_equiv="Cache-Control" content="no-cache,
> must-revalidate"/>
> </oui:head>
>
> <%
> String strId = request.getParameter("id");
> String strCodeUpper = request.getParameter("code");
> String strCodeLower = request.getParameter("code").toLowerCase();
> %>
>
> <oui:card id= "<%=strCodeUpper%>" title="<%=strCodeUpper%>"
> newcontext="true">
>         <oui:p align="center">
> <oui:img src='<%=strCodeLower+".wbmp"%>' alt='<%=strCodeUpper+" chart"%>'
/>
>         <oui:primary_path short_label="Shares">
>                 <oui:go href ='<%="../atrading/trading.jsp?id=" +
strId%>'/>
>         </oui:primary_path>
>         </oui:p>
> </oui:card>
>
> </oui:wml>
>
> -----Original Message-----
> From: Borislav Iordanov [mailto:[EMAIL PROTECTED]]
> Sent: 06 March 2002 19:07
> To: [EMAIL PROTECTED]
> Subject: id attribute
>
> Hi all,
>
> Does anybody know what a JSP container is supposed to do when an 'id'
> attribute of a custom tag is specified through a run-time expression
> value? For example:
>
> in mytaglib.tld
>
> <tag>
>    <name>mytag</name>
>     ....
>    <attribute>
>         <name>id</name>
>         <rtexprevalue>true</rtexprvalue>
>    </attribute>
> </tag>
>
> and then in a JSP:
>
> <mylib:mytag id='<%= someFunction() %>'/>
>
> I know the intent of the 'id' attribute is to be specified at
> translation time, but if no scripting variable is created why not have
> an id that takes one its value dynamically?
>
> Thanks in advance,
> Boris
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to