You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dravid <su...@gmail.com> on 2009/02/25 21:43:04 UTC
value truncated
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.
--
View this message in context: http://www.nabble.com/value-truncated-tp22211336p22211336.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: value truncated
Posted by Jim Kiley <jh...@summa-tech.com>.
My uncle had his value truncated back in the war. He doesn't like to talk
about it much.
Oh your actual question. Have you tried escaping the quote marks? Using \"
instead of just " ?
jk
On Thu, Feb 26, 2009 at 3:47 PM, Dravid <su...@gmail.com> wrote:
>
> Any thoughts
>
> thanks in advance
>
>
> --
> View this message in context:
> http://www.nabble.com/value-truncated-tp22211336p22233327.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
--
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com
Re: value truncated
Posted by Dravid <su...@gmail.com>.
Any thoughts
thanks in advance
--
View this message in context: http://www.nabble.com/value-truncated-tp22211336p22233327.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: value truncated
Posted by Adam Lister <al...@MIT.EDU>.
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