An update to this, I've finally managed to get the latest CVS to build and
that change definitely didn't fix the problem. Is anyone looking at this or
shall I (try) ?

Matt.

-----Original Message-----
From: Matt Read [mailto:[EMAIL PROTECTED]]
Sent: 06 March 2002 19:29
To: [EMAIL PROTECTED]
Subject: Build errors

I've attached my original e-mail that went to the struts-user list. I'm
using resin-2.0.2 as the servlet container and the problem still existed in
the most recently nightly build although this may have been built before the
CVS update, I'm not sure what the timing of these things are.

Matt.

Wednesday, March 06, 2002, 4:18:47 AM, you wrote:

MR> I've encountered a possible bug in the use of formatKey in <bean:write>.
As
MR> always it's more likely to be my error but I'd appreciate it if anyone
could
MR> have a look. I'm running the latest nightly build of struts.

MR> Code snippets are below but to summarise, I'm using the <bean:write> tag
and
MR> formatKey attribute in my JSP to refer to 3 different format keys in my
MR> resource file. However all my values are being formatted using the
MR> format.dollars key if the resource file entries are as below. If I
remove
MR> format.dollars then I get the strings formatted as percentages, etc.
I.e.
MR> only one format string is ever used. All my properties return datatype
MR> "double" which I assume is something to do with the problem but I'm not
sure
MR> what. Why can't I format 4 different properties in 4 different ways
using 4
MR> different format keys?

MR> Thanks,
MR> Matt.

MR> In a JSP file I have this snippet:

MR> <logic:iterate id="item" name="player" property="portfolio">
MR>         <tr>
MR>                 <td><bean:write name="item" property="desc" /></td>
MR>                 <td><bean:write name="item" property="quantity" /></td>
MR>                 <td><bean:write name="item" property="value"
formatKey="format.dollars"
/>></td>
MR>                 <td><bean:write name="item" property="totalStrength"
MR> formatKey="format.int" /></td>
MR>                 <td><bean:write name="item" property="totalDefense"
formatKey="format.int"
/>></td>
MR>                 <td><bean:write name="item" property="change"
MR> formatKey="format.percentage" /></td>
MR>         </tr>
MR> </logic:iterate>

MR> In my ApplicationResource.properties file I have this snippet:

MR> format.int=0
MR> format.dollars=$0.00
MR> format.percentage=0.00%


MR> --
MR> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
MR> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

-----Original Message-----
From: Martin Cooper [mailto:[EMAIL PROTECTED]]
Sent: 06 March 2002 19:29
To: Struts Developers List
Cc: [EMAIL PROTECTED]
Subject: Re: cvs commit:
jakarta-struts/src/share/org/apache/struts/taglib/bean WriteTag.java


Interesting. This should not make a difference unless there is another bug
involved (either in the tag or the container). What were the symptoms
involved here, and which container was being used?

--
Martin Cooper


----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 06, 2002 1:11 AM
Subject: cvs commit: jakarta-struts/src/share/org/apache/struts/taglib/bean
WriteTag.java


> oalexeev    02/03/06 01:11:10
>
>   Modified:    src/share/org/apache/struts/taglib/bean WriteTag.java
>   Log:
>   Fix - formatKey class variable is not set to null in release() method.
>   Bug submitted by "Matt Read" <[EMAIL PROTECTED]>
>
>   Revision  Changes    Path
>   1.18      +5 -4
jakarta-struts/src/share/org/apache/struts/taglib/bean/WriteTag.java
>
>   Index: WriteTag.java
>   ===================================================================
>   RCS file:
/home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/bean/WriteTag.ja
va,v
>   retrieving revision 1.17
>   retrieving revision 1.18
>   diff -u -r1.17 -r1.18
>   --- WriteTag.java 17 Jan 2002 18:20:16 -0000 1.17
>   +++ WriteTag.java 6 Mar 2002 09:11:10 -0000 1.18
>   @@ -1,7 +1,7 @@
>    /*
>   - * $Header:
/home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/bean/WriteTag.ja
va,v 1.17 2002/01/17 18:20:16 oalexeev Exp $
>   - * $Revision: 1.17 $
>   - * $Date: 2002/01/17 18:20:16 $
>   + * $Header:
/home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/bean/WriteTag.ja
va,v 1.18 2002/03/06 09:11:10 oalexeev Exp $
>   + * $Revision: 1.18 $
>   + * $Date: 2002/03/06 09:11:10 $
>     *
>     * ====================================================================
>     *
>   @@ -89,7 +89,7 @@
>     * output stream, optionally filtering characters that are sensitive in
HTML.
>     *
>     * @author Craig R. McClanahan
>   - * @version $Revision: 1.17 $ $Date: 2002/01/17 18:20:16 $
>   + * @version $Revision: 1.18 $ $Date: 2002/03/06 09:11:10 $
>     */
>
>    public class WriteTag extends TagSupport {
>   @@ -430,6 +430,7 @@
>            property = null;
>            scope = null;
>            formatStr = null;
>   +        formatKey = null;
>            localeKey = null;
>            bundle = null;
>
>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


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


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

Reply via email to