Carl Tallis wrote:
Hi, all - I'm using JRun, and the 0.5 classes/tags work great, but I can't even get the later sample application to run:/newstrutsdemo/:Unfortunately, it appears that JRun has an implementation bug. The servlet container is supposed to do automatic type conversions when the data type of a custom tag property is something other than a String. In this particular case, the "locale" property accepts a boolean value. The set of required conversions are in Table 2-4 on page 65 of the JSP 1.1 specification. Originally, it was not clear (in the spec) that these conversions applied to custom tag attributes, as well as <jsp:setProperty/>, but this was cleared up in an errata to the spec that was published last April, at: http://java.sun.com/products/jsp/errata_1_1_a_042800.html As a workaround on JRun, you can add a String setter for each non-String property, but this is not a good long term solution, because such a tag will not work on any other servlet engine (because the Java reflection code will see two setter methods, and therefore decide that neither of them is appropriate -- so the property will be considered read only). Craig McClanahan
|
- Can't run nightly releases Carl Tallis
- Struts installation notes - example's setLocale o... Craig R. McClanahan
- Struts installation notes - example's setLoca... Peter Doyle