Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 6742 invoked from network); 3 Apr 2006 14:37:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Apr 2006 14:37:02 -0000 Received: (qmail 95695 invoked by uid 500); 3 Apr 2006 14:36:45 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 95656 invoked by uid 500); 3 Apr 2006 14:36:45 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 95618 invoked by uid 99); 3 Apr 2006 14:36:45 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Apr 2006 07:36:45 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of darryl@netbauds.net designates 62.232.161.102 as permitted sender) Received: from [62.232.161.102] (HELO mail-1.netbauds.net) (62.232.161.102) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Apr 2006 07:36:43 -0700 Received: from host81-154-236-100.range81-154.btcentralplus.com ([81.154.236.100]:52868 "EHLO [172.16.32.4]" smtp-auth: "darryl" TLS-CIPHER: "DHE-RSA-AES256-SHA keybits 256/256 version TLSv1/SSLv3" TLS-PEER-CN1: ) by mail-1.netbauds.net with ESMTPSA id S131757AbWDCOgR (ORCPT ); Mon, 3 Apr 2006 15:36:17 +0100 Message-ID: <443132E0.1060309@netbauds.net> Date: Mon, 03 Apr 2006 15:36:16 +0100 From: "Darryl L. Miles" User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-GB; rv:1.8) Gecko/20051219 SeaMonkey/1.0b MIME-Version: 1.0 To: Tomcat Users List Subject: JSP 2.x *.tag files problem Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N My question is about the use of *.tag files, to have the container (TC) automatically build tag libraries from my test.tag file. But some aspects don't work as I would naturally expect and I don't know if this is my lack of understanding or a genuine bug. When I use <%@ attribute name="vvAbcDefGhi" required="false" ... %> I have no problem. Now when I start to alter the name="" value so that it uses the values: vvAbcDefGhi (no problem here) vvabcdefghi (no problem here) vAbcDefGhi (does not work for me, I would expect this to be ok) AbcDefGhi (does not work for me, I'm less sure if this is ok but can't see any reason why it isn't allowed providing the name does not clash with another defined attribute called abcDefGhi) When I say it does not work for me I can an error about being unable to find the setter function of the generated tag library. There is a function in org/apache/jasper/compiler/Generator.java which seems to do the business #generateTagHandlerAttributes(TagInfo tagInfo) converts it into code. I have tested the methods #toGetterMethod(String) and #toSetterMethodName(String) with my tag attribute names above and I get expected case conversion. Here is a cut and paste of the parts I think are relevant. WEB-INF/tags/test.tag: <%@ tag language="java" pageEncoding="UTF-8" body-content="scriptless" %> <%@ attribute name="vvAbcDefGhi" required="false" rtexprvalue="true" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> ...SNIP... My HTML is here ${vvAbcDefGhi} ...SNIP... test.jsp: <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> <%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %> ...SNIP... ...SNIP... -- Darryl L. Miles --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org