hi all:

i have a jsp i'm using to post form data to a servlet to write into the
database.  problem is that i get extra spaces appended to the end of each
form element.  this causes strange results here and there, e.g. when i
encode a url from one of these strings i get something like
'...jsp?name=allied+van++++++++++'

in my servlet i am assigning the form values like this:

orgName = req.getParameter("company_name").trim();

i've added the .trim(), thinking it would solve this problem--but it
doesn't.

what should i do?  TIA,

bradley mclain
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to