This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I'm reading a database to get a Customer Name Char 40, Even though the Customer Name is 16 long , When I read it from the Database its 40 long. So I use the Code below to trim the traling spaces, I then Send it to an input Text box in my JSP which is a UPDATE form. If I then try to update this field , it wont let me unless I hit EOF first. Is there a way to fix this ? What am I missing ? Thanks
I will use the String Trim Function. I'm over 50 , I'm a Mainframe guy. So maybe EOF is a hold over but to be more clear on what I meant. If I do the keyboard combination of EOF ( end of file) which removes the invisible characters after the 1st 16 characters. Once I do the EOF I can key past the 16 characters etc. Also I work for a big shop, and were going against an existing os/390 DB2 database so changing a columns definition isn't that easy in my situation, Since there are a lot of backend programs that would need to be changed. Thanks for the help