|
Ron, Perhaps you could write a small procedure that will replace any instance of an apostrophe in that field with a ' ... maybe you could do this before you concatenate it into the string... String newStreet = new String(); newStreet = replaceApostrophe(street); out.println("<a href=\"javascript:customerSearch('ListCustomers?civicno=" + sn.getCivic(p) + "&unit=&street=" + newStreet + "');\"><font size=\"1\"><img src=\"indent.gif\" border=\"0\"\"> " + sn.getCivic(p) + " " + name + "</font></a><br>"); Shane Cessna iSeries Programmer iSeries WAS Administrator North American Lighting, Inc. (618) 662-4483 x2776 shane_cessna@xxxxxxx RPower@xxxxxxxxxx Sent by: java400-l-bounces@xxxxxxxxxxxx 06/01/2005 05:42 AM Please respond to Java Programming on and around the iSeries / AS400 <java400-l@xxxxxxxxxxxx> To Java Programming on and around the iSeries / AS400 <java400-l@xxxxxxxxxxxx> cc Subject Re: One last bit of help Yeah that's the problem. Any way I can fix that though? I have to have that apostrophe there.... Ron Power Programmer Information Services City Of St. John's, NL P.O. Box 908 St. John's, NL A1C 5M2 Tel: 709-576-8132 Email: rpower@xxxxxxxxxx Website: http://www.stjohns.ca/ ___________________________________________________________________________ Success is going from failure to failure without a loss of enthusiasm. - Sir Winston Churchill Shane_Cessna@xxxxxxx Sent by: java400-l-bounces@xxxxxxxxxxxx 01/06/2005 10:29 AM Please respond to Java Programming on and around the iSeries / AS400 <java400-l@xxxxxxxxxxxx> To Java Programming on and around the iSeries / AS400 <java400-l@xxxxxxxxxxxx> cc Subject Re: One last bit of help Ron, It could be the apostrophe in the field value...I think it's wanting to end the string after BELL... Shane Cessna iSeries Programmer iSeries WAS Administrator North American Lighting, Inc. (618) 662-4483 x2776 shane_cessna@xxxxxxx RPower@xxxxxxxxxx Sent by: java400-l-bounces@xxxxxxxxxxxx 06/01/2005 05:29 AM Please respond to Java Programming on and around the iSeries / AS400 <java400-l@xxxxxxxxxxxx> To "Java Programming on and around the iSeries / AS400" <java400-l@xxxxxxxxxxxx> cc Subject One last bit of help I'm almost done my first REAL Java project. Here's my next question. Got the following line of code: out.println("<a href=\"javascript:customerSearch('ListCustomers?civicno=" + sn.getCivic(p) + "&unit=&street=" + street + "');\"><font size=\"1\"><img src=\"indent.gif\" border=\"0\"\"> " + sn.getCivic(p) + " " + name + "</font></a><br>"); Works great, except when street is "BELL'S TURN" and my link wants to truncate itself and it can't find the ending ")". Any ideas? Ron Power Programmer Information Services City Of St. John's, NL P.O. Box 908 St. John's, NL A1C 5M2 Tel: 709-576-8132 Email: rpower@xxxxxxxxxx Website: http://www.stjohns.ca/ ___________________________________________________________________________ Success is going from failure to failure without a loss of enthusiasm. - Sir Winston Churchill
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.