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]>