Ampersands being replaced with semi colons
I have a data entry screen which allows the user to type in a company
name. If the user types in a name like A&A, the first println shows
A;A. The second println shows A&A again. Is this a feature? The
following code is under the update button for the page:
public void handleBtUpdateRequest(RequestContext requestContext)
throws ServletException, IOException
{
System.out.println("Web Event: "+getClass().getName()
+".BtUpdate");
Button field = getBtUpdate();
field.mapSourceTargetNVPs();
String strCompanyName = getCompanies_company().getValue
().toString().trim();
System.out.println("strCompanyName=" + strCompanyName);
/// WHY, WHY, WHY?
strCompanyName = Utils.replace(strCompanyName, ";", "&");
System.out.println("strCompanyName=" + strCompanyName);
Please look into this.
Thanks,
John Gertsch
Hunter Douglas, Inc.
[991 byte] By [
Guest] at [2007-11-25 9:30:25]

John,
look in the kas.log file; if you don't have SP2 I would recommend moving to
it ASAP.
matt
SP2
iPlanet Administrative Server
Version 6.0 SP2, Build 20010131
SP1b
-
iPlanet Administrative Server
Version 6.0
> --Original Message--
> From: <a href="/group/SunONE-JATO/post?protectID=045233214185035072184061031219062187136 058163234043109182038048211051209020212152159127177">john.gertsch@h...</a& gt;
> [mailto:<a href="/group/SunONE-JATO/post?protectID=045233214185035072184061031219062187136 058163234043109182038048211051209020212152159127177">john.gertsch@h...</a& gt;]
> Sent: Monday, March 26, 2001 10:35 AM
> Subject: [iPlanet-JATO] Re: Ampersands being replaced with semi colons
>
>
> Matt:
>
> I looked in the kxs window and it says version 6.0.
>
>
> John
> In <a href="/group/SunONE-JATO/post?protectID=210083235237078198050118178206047166136 158139046209">iPlanet-JATO@y...</a>, "Matthew Stevens" <<a href="/group/SunONE-JATO/post?protectID=029166114165042198028082000056130080177 026031196184130152150">matthew.stevens@E...</a>>
> wrote:
> > As Mike pointed out by verifying your issue on iAS 6.0SP2, you may
> want to
> > check that your running the latest version. There have been more
> than a few
> > bugs in the past year on character encoding and data manipulation
> in the Web
> > Connector - I think that ampersands and semicolons were at issue.
> What
> > version are you running?
> >
> > matt
> >
> > > --Original Message--
> > > From: <a href="/group/SunONE-JATO/post?protectID=045233214185035072184061031219062187136 058139046209">john.gertsch@h...</a>
> > > [mailto:<a href="/group/SunONE-JATO/post?protectID=045233214185035072184061031219062187136 058139046209">john.gertsch@h...</a>]
> > > Sent: Friday, March 23, 2001 4:57 PM
> > > Subject: [iPlanet-JATO] Re: Ampersands being replaced with semi
> colons
> > >
> > >
> > > Matt:
> > >
> > > Yes, I am using iPlanet Application Server.
> > >
> > > John
> > >
> > > In <a href="/group/SunONE-JATO/post?protectID=210083235237078198050118178206047166136 158139046209">iPlanet-JATO@y...</a>, "Matthew Stevens" <<a href="/group/SunONE-JATO/post?protectID=029166114165042198028082000056130080177 026031196184130152150">matthew.stevens@E...</a>>
> > > wrote:
> > > > John,
> > > >
> > > > Are you using iAS?
> > > >
> > > > matt
> > > >
> > > > > --Original Message--
> > > > > From: <a href="/group/SunONE-JATO/post?protectID=045233214185035072184061031219062187136 058139046209">john.gertsch@h...</a>
> > > > > [mailto:<a href="/group/SunONE-JATO/post?protectID=045233214185035072184061031219062187136 058139046209">john.gertsch@h...</a>]
> > > > > Sent: Friday, March 23, 2001 11:00 AM
> > > > > Subject: [iPlanet-JATO] Ampersands being replaced with semi
> colons
> > > > >
> > > > >
> > > > > I have a data entry screen which allows the user to type in a
> > > company
> > > > > name. If the user types in a name like A&A, the first println
> > > shows
> > > > > A;A. The second println shows A&A again. Is this a feature?
> The
> > > > > following code is under the update button for the page:
> > > > >
> > > > > public void handleBtUpdateRequest(RequestContext
> > > requestContext)
> > > > > throws ServletException, IOException
> > > > > {
> > > > > System.out.println("Web Event: "+getClass().getName()
> > > > > +".BtUpdate");
> > > > > Button field = getBtUpdate();
> > > > > field.mapSourceTargetNVPs();
> > > > > String strCompanyName = getCompanies_company
> ().getValue
> > > > > ().toString().trim();
> > > > > System.out.println("strCompanyName=" +
> strCompanyName);
> > > > > /// WHY, WHY, WHY?
> > > > > strCompanyName = Utils.replace
> (strCompanyName, ";", "&");
> > > > > System.out.println("strCompanyName=" +
> strCompanyName);
> > > > >
> > > > > Please look into this.
> > > > > Thanks,
> > > > > John Gertsch
> > > > > Hunter Douglas, Inc.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > <a href="/group/SunONE-JATO/post?protectID=210083235237078198050118178206047166215 146166214017110250006230056039126077176105140127082088124241215002153">iPlane t-JATO-unsubscribe@egroups.com</a>
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > >
> > >
> > >
> > > <a href="/group/SunONE-JATO/post?protectID=210083235237078198050118178206047166215 146166214017110250006230056039126077176105140127082088124241215002153">iPlane t-JATO-unsubscribe@egroups.com</a>
> > >
> > >
> > >
> > >
> > >
> > >
>
>
>
> <a href="/group/SunONE-JATO/post?protectID=210083235237078198050118178206047166215 146166214017110250006230056039126077176105140127082088124241215002153">iPlane t-JATO-unsubscribe@egroups.com</a>
>
>
>
>
>
>
Guest at 2007-7-1 16:37:04 >
