tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bala Gurram" <bgur...@emis-intl.com>
Subject RE: input taglib
Date Thu, 15 Mar 2001 18:12:46 GMT
Hi ,
iam using below stuff it is working fine iam applying the style sheet
also,but you should modify some strut optiontag  class ,i modified  to give
selected="true" not simply selected .if it is only selected xslt processor
willgive problem. i attached the file you can go through.


-bala.



 <html:select property="year" size="1">
                        <option value="">[year] </option>
                        <option value="0">1981 </option>
                        <option value="1">1982 </option>
                        <option value="2">1983 </option>
                        <option value="3">1984 </option>
                        <option value="4">1985 </option>
                        <option value="5">1986 </option>
                        <option value="6">1987 </option>
                        <option value="7">1988 </option>
                        <option value="8">1989 </option>
                        <option value="9">1990 </option>
                        <option value="10">1991 </option>
                        <option value="11">1992 </option>
                </html:select>

-----Original Message-----
From: Curt Wilhelm [mailto:Curt.Wilhelm@Sun.COM]
Sent: Tuesday, March 13, 2001 7:35 PM
To: taglibs-user@jakarta.apache.org
Subject: input taglib


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(XMLDocume
ntScanner.java:653)
        at
org.apache.xerces.framework.XMLDocumentScanner.abortMarkup(XMLDocumentScanne
r.java:691)
        at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanne
r.java:1807)
        at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
LDocumentScanner.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(_0002fEditI
ntegration_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.ja
va: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:79
7)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.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