Hello,

 

Thanks for your information I think the struts.properties file is Struts2 
feature. Is there any other way to set this property in sturts.

 

Regards, s

 

 

 

________________________________

From: Gareth Davies [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 29, 2008 12:52 PM
To: Nayyer Kamran
Subject: FW: Ampersand sign problem

 

FYI



________________________________

From: [EMAIL PROTECTED]
To: user@struts.apache.org
Subject: RE: RE: Re: Ampersand sign problem
Date: Fri, 29 Aug 2008 11:50:02 +0000

Try using this in your struts.properties file:
 
struts.i18n.encoding=ISO-8859-1 
 
cheers
 
G
 

________________________________

From: Nayyer Kamran [mailto:[EMAIL PROTECTED]
Sent: Fri 8/29/2008 12:24
To: Laurie Harper
Cc: user@struts.apache.org
Subject: RE: Re: Ampersand sign problem



Hello,

Thanks for your answer. You are right that's what happening. On submission 
input text sterling sign "Ј" escaped to the "ISO-8859-1" "£" and when try 
to display it again in the same html:text box it escape it again. So how can I 
avoid it what should I do. UTF8 work fine but it put some other constraint like 
database encoding.

I attached the code: JSP, action class, form class, and Struts config.


I did not find any attribute "escape" in struts user guide can you give me some 
example. I am using struts 1.2.9.

Thanks for your help.

Regards,


-----Original Message-----
From: Laurie Harper [mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ]
Sent: Thursday, August 28, 2008 7:35 PM
To: user@struts.apache.org
Subject: Re: Ampersand sign problem

Can you post a code sample of what you are doing? html:text will only
escape its output once, so perhaps you are passing it a string that has
already been converted into the character entity form (&#163;)?

You could try escape="false", but I'd suggest understanding what's going
on first so you're confident that you aren't opening up
cross-site-scripting or other Javascript injection vulnerabilities by
doing so.

L.

Nayyer Kamran wrote:
> Hello,
>
> 
>
> I am trying to use "ISO-8859-1" char set in my web application. But when I 
> try to display "?" sign using html:text field it displays "&#163;". If I look 
> at the HTML source there I see that "&" is escaped by the character entity 
> "&amp;" so now instead of "&#163;" the value is "&amp;#163;" .  Where as if I 
> use simple input field to display this value it work fine.
>
> 
>
> I believe this is because html:text tag escaping "&" sign.  How I can avoid 
> this multiple escaping.
>
> 
>
> I am using jbossAS 4.0.5, Struts 1.2.9.
>
> 
>
> Any help will be appreciated.
>
> 
>
> Regards,
>
> 
>
> 
>
> 
>
> 
>
>
> *******************************************************************************
> This email and any files transmitted with it are intended solely for the use 
> of the individual or entity to whom they are addressed, and may contain 
> confidential and/or proprietary information. Therefore, any dissemination, 
> distribution or copy of this email or such attached files, or the information 
> contained herein and therein, should be appropriately restricted.
> 
> If you have received this email in error please notify the sender immediately 
> by return email and kindly delete this message and all attachments..
> *******************************************************************************
>
>
>



- ------
ML {UFI} 

 

________________________________

Make a mini you on Windows Live Messenger! Try it Now! 
<http://clk.atdmt.com/UKM/go/107571437/direct/01/>  

________________________________

Make a mini you on Windows Live Messenger! Try it Now! 
<http://clk.atdmt.com/UKM/go/107571437/direct/01/> 

Reply via email to