Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 82906 invoked from network); 26 Feb 2009 21:18:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Feb 2009 21:18:46 -0000 Received: (qmail 87285 invoked by uid 500); 26 Feb 2009 21:18:36 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 87254 invoked by uid 500); 26 Feb 2009 21:18:36 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 87243 invoked by uid 99); 26 Feb 2009 21:18:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Feb 2009 13:18:36 -0800 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of alister@mit.edu designates 18.7.7.80 as permitted sender) Received: from [18.7.7.80] (HELO biscayne-one-station.mit.edu) (18.7.7.80) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Feb 2009 21:18:27 +0000 Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by biscayne-one-station.mit.edu (8.13.6/8.9.2) with ESMTP id n1QLI55N022083 for ; Thu, 26 Feb 2009 16:18:05 -0500 (EST) Received: from [18.18.0.103] (FSS-215C.MIT.EDU [18.18.0.103]) (authenticated bits=0) (User authenticated as alister@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id n1QLI4gq012393 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 26 Feb 2009 16:18:04 -0500 (EST) Message-ID: <49A7070C.9070004@mit.edu> Date: Thu, 26 Feb 2009 16:18:04 -0500 From: Adam Lister User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: value truncated References: <22211336.post@talk.nabble.com> In-Reply-To: <22211336.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.42 X-Spam-Score: 0.00 X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Flag: NO This might not help you, but the simplest answer might be to avoid doing escaping, replacing, etc... and just make the value of your options be whatever unique identifier you have for that record in the db. Then when the user posts this value, you can look it up again in your action. If you don't have a unique identifier like that, use the index, re-retrieve the list, and grab the item at the correct index. Dravid wrote: > Hi All, > > I have a jsp page where I am using html:select options.When the user > selects a option I am calling a > JavaScript onchange to submit the form. > My problem is I have a list with double quotes values which I am retrieving > from database. > eg: Account = "N" .I could not able to retrieve the the value as it is in > action class.It's get truncating to > "Account =" not giving the "N" value.I want the value to be retrieved as it > is. > Please some one help me to solve this. > any help is highly appriciated. > thanks in advance. > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org