tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Curt Wilhelm <Curt.Wilh...@Sun.COM>
Subject input taglib
Date Wed, 14 Mar 2001 00:34:33 GMT
Hi,

I am using the input Taglib and it seems to work well when i'm using
JSP/HTML.

However, I have a problem when trying to use it with xslt attributes. 
I'm using the xalan processor.

Are there any plans to support xsl:attribute to set the select attribute
of the option tag.

When the default property is set I get an xlst error.  see below.

<input:select name="product" default="1"  options="<%= optionsMap %>"/> 

Taglib should output this.
<select name="fieldName" value="1">
	<option value="1">one</option>
		<xsl:attribute name="selected"/>
	<option value="2">two</option>
	<option value="3">three</option>
</select>


result to html client should be this.
<select name="fieldName" value="1">
	<option value="1" selected>one</option>
	<option value="2">two</option>
	<option value="3" selected>three</option>
</select>

---Error message to System.out.println------
org.xml.sax.SAXParseException: Attribute name "option" must be followed
by the '=' character.
        at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:969)
        at
org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocumentScanner.java:653)
        at
org.apache.xerces.framework.XMLDocumentScanner.abortMarkup(XMLDocumentScanner.java:691)
        at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1807)
        at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1233)
        at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:380)
        at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:861)
        at
com.forte.waimea.taglib.WebletTag.getProductionXSL(WebletTag.java:789)
        at
com.forte.waimea.taglib.WebletTag.doEndTag(WebletTag.java:480)
        at
_0002fEditIntegration_0002ejspEditIntegration_jsp_24._jspService(_0002fEditIntegration_0002ejspEditIntegration_jsp_24.java:776)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)
        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
        at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
        at org.apache.tomcat.core.Handler.service(Handler.java:286)
        at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
        at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
        at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
        at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
        at java.lang.Thread.run(Thread.java:484)


I'd appreciate any help!

-- 
Curt Wilhelm
Infrastructure Engineer, Forte For Java
tel: x69245 - 925-264-4278
email: curt.wilhelm@ebay.sun.com
alpha pager: curt.wilhelm@pager.ebay.sun.com

Mime
View raw message