Seems like I've seen issues where a form bean has a property of a numeric
type and this happens. It's because (as I recall) the form bean is
initialized to "0" (the number) and a String conversion occurs prior to
display.

Solution was to make sure any property being displayed was of type String
and that the form bean/action class initializes it to "" if that is what is
wanted in the output.

FWIW -
Kevin





Struts Newsgroup (@Basebeans.com) <struts on 05/28/2002 02:10:02 PM

Please respond to "Struts Users Mailing List"
      <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:    (bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:  Re: char value 0 appended to form values


Subject: Re: char value 0 appended to form values
From: "Rob Breeds" <[EMAIL PROTECTED]>
 ===
you mean the generated html?

Thanks for offer - before I do that, I'll try that myself... forgot I could
test that way :)

How do you step through source? Of Struts? I am capturing the invalid
character (char(0)) in the processPreProcess method of my subclassed
ActionServlet so I know this is not my application code.

Rob

"James Mitchell" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Have you stepped through the source code to pinpoint the class and line
> number?
>
> If you want to give me a snip of your html output, I can do a dry-run for
> you.
>
> James Mitchell
>
> > -----Original Message-----
> > From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
> > Sent: Tuesday, May 28, 2002 1:10 PM
> > To: [EMAIL PROTECTED]
> > Subject: char value 0 appended to form values
> >
> >
> > Subject: char value 0 appended to form values
> > From: "Rob Breeds" <[EMAIL PROTECTED]>
> >  ===
> > This is a long shot but I've noticed recently that my requests are
> > intermittently having an additional char (value 0) appended to
parameters.
> >
> > Even when I submit a form with an empty text field, the String
> > passed should
> > be empty or null, but what I am (sometimes) finding is that the String
has
> > length 1 because it is a char of value 0. This appears to be
> > being added by
> > Struts (1.02)
> >
> > Can anyone shed any light on this please?
> >
> > Thanks
> >
> > Rob
> >
> >
> >
> > --
> > 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]>







---------------------------------------------------------------------------
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---------------------------------------------------------------------------


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

Reply via email to