I just noticed that tag attributes sometimes are "buffered". So if I set
the attribute to the same value in several calls to the tag, the
attribute isn't actually set again.

Assume:
<html:textfield id="one" size="5" hidden="true">
<html:textfield id="one" size="5" hidden="true">
<html:textfield id="one" size="5" >
<html:textfield id="two" size="5" >

In this case the id is set only once for "one", the size is set for
every tag (?) and hidden is set once. (I have both printed debug info
and read the source of the JSP servlet to conclude this).

This gives me a big problem if the attributes (such as hidden here) is
not a required attribute. In that case I want a default value, but WHERE
DO I SET THAT?

For my example above, assume I want my "hidden" attribute default to
"false" (which seems logical...).
So, I thought I'd reset the value of the attribute (hidden = false)
inside the doStartTag or doEndTag methods. BUT since the attribute is
only set once, row 2 above will not be hidden. If I don't change the
attribute, all the rows will have hidden set to true.

Is it supposed to be like this?
Is it a bug in Resin (2.0.1)?
How on earth do I solve this???


  Mattias Jiderhamn
  Expert Systems
  [EMAIL PROTECTED]
�

==========================================================================To 
unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to