Ok, that works. E.g.
attributesText='<%= "maxlength=50 size=50" + bean.getAttributes("fieldName") %>'

And actually that is more or less the issue I had with <input:select> as well. 
WebLogic JSP compiler cannot handle: 
attributesText="<%= bean.getAttributes("fieldName") %>"

However this works with WLS:
attributesText='<%= bean.getAttributes("fieldName") %>'

I do not know if this is a bug in WLS but anyhow it works differently in Tomcat.

Thanks!
Martti


-----Alkuperäinen viesti-----
Lähettäjä: Kris Schneider [mailto:[EMAIL PROTECTED] 
Lähetetty: 20. helmikuuta 2004 14:47
Vastaanottaja: Tag Libraries Users List
Aihe: Re: Problem with <input:select> tag


But that's what JSP.2.13.1 addresses. You have to do something like:

attributesText='<%= "disabled " + bean.getAttributes() %>'

Quoting Kauppinen Martti <[EMAIL PROTECTED]>:

> All those you listed work:
> attributesText=""
> attributesText="disabled"
> attributesText='<%= "" %>'
> attributesText='<%= "disabled" %>'
> 
> even this works
> attributesText="<%= "disabled" %>"
> 
> and in addition the following works as well: attributesText="<%= 
> bean.getAttributes() %>"
> 
> But when I have both string constant AND scriplet in attributesText it 
> does not work.
> 
> -----Alkuperäinen viesti-----
> Lähettäjä: Kris Schneider [mailto:[EMAIL PROTECTED]
> Lähetetty: 20. helmikuuta 2004 14:26
> Vastaanottaja: Tag Libraries Users List
> Aihe: Re: Problem with <input:select> tag
> 
> 
> Do any of the following work:
> 
> attributesText=""
> attributesText="disabled"
> attributesText='<%= "" %>'
> attributesText='<%= "disabled" %>'
> 
> Quoting Kauppinen Martti <[EMAIL PROTECTED]>:
> 
> > It returns either an empty string (""), "disabled" or "readonly" (in
> > java.lang.String variable). So I do not think this is in violation of 
> > section JSP 2.13.1.
> > 
> > Actually the first issue I mentioned with <input:select> is more
> > important for me since I am not using <input:text> currently in my 
> > JSPs.
> > 
> > br
> > Martti
> > 
> > 
> > -----Alkuperäinen viesti-----
> > Lähettäjä: Kris Schneider [mailto:[EMAIL PROTECTED]
> > Lähetetty: 20. helmikuuta 2004 14:05
> > Vastaanottaja: Tag Libraries Users List
> > Aihe: Re: Problem with <input:select> tag
> > 
> > 
> > What does bean.getAttributes() output? Does it contain any embedded
> > quote characters? The reason this:
> > 
> > attributesText="maxlength=50 size=50 <%= bean.getAttributes() %>"
> > 
> > doesn't work is outlined in the JSP 1.2 Spec. Here's a snippet from
> > secton JSP.2.13.1 Request Time Attribute Values:
> > 
> > The expression must appear by itself (multiple expressions, and 
> > mixing
> > of expressions and string constants are not permitted).
> > 
> > Quoting Kauppinen Martti <[EMAIL PROTECTED]>:
> > 
> > > Hi,
> > > 
> > > I am using Jakarta taglibs-input in JSP files for select listboxes 
> > > (<input:select> tag). My pages worked fine in Tomcat 4.1 but when 
> > > I tried them on WebLogic 8.1sp2, the <input:select> was not 
> > > parsed. However otherwise the pages compiled ok.
> > > 
> > > I traced the problem to the "attributesText" attribute of the 
> > > <input:select> tag. When that is removed, the tag is parsed. I.e. 
> > > <input:select name="seller" bean="bean" options="<%= 
> > > bean.getSellers()%>" attributesText="<%= bean.getAttributes() 
> > > %>"/> is not parsed, but <input:select name="seller" bean="bean" 
> > > options="<%= bean.getSellers()%>" /> is parsed.
> > >  
> > > To me this seems to be a bug in WLS8.1 JSP compiler. However 
> > > earlier
> > > I
> > > tried:
> > > <input:text name="productName" attributesText="maxlength=50 size=50 
> > > <%=
> > > bean.getAttributes() %>" />
> > > This does not work in Tomcat (<%= bean.getAttributes()%> is not
> parsed).
> > > This leads me to suggest that this problem is related to the order 
> > > in which tag-libs and scriplets are parsed.
> > > 
> > > Do you have any clue on what is the problem?
> > > 
> > > best regards
> > > Martti Kauppinen
> > > SysOpen
> > 
> > --
> > Kris Schneider <mailto:[EMAIL PROTECTED]>
> > D.O.Tech       <http://www.dotech.com/>
> 
> --
> Kris Schneider <mailto:[EMAIL PROTECTED]>
> D.O.Tech       <http://www.dotech.com/>

-- 
Kris Schneider <mailto:[EMAIL PROTECTED]>
D.O.Tech       <http://www.dotech.com/>

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


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

Reply via email to