struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vishalj <Vish...@ivycomptech.com>
Subject How to pass NON-ASCII characters from one JSP to another JSP via ur <S:URL>
Date Mon, 31 Aug 2009 10:10:08 GMT

Hi all,
I use the following in my JSP code.
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
and the URL looks something like this,
<s:url id="testUrlId" value="JackpotDetails.action">
 <s:param name="gameSeqId" value="%{gameSeqId}" />
<s:param name="gameCurrencyCode" value="%{gameCurrencyCode}" />	
</s:url>
<s:a href="%{testUrlId}"><s:property value="frmtdPoolAmount" /> </s:a>

Here gamecurrency code contains the value £ . But when its sent from browser
via <s:a href> its £ again but when its displayed on next page(Jackpot
Action/JSP) it displayed as £.
What i was able to infer is that our Browser(IE/FIREFOX,CHROME..) while
sending over the network its appending   Â to £.

Can any one help on this.How to pass NON -ASCII characters .

PS:Same UTF-8 encoding is used on all JSPs.

-- 
View this message in context: http://www.nabble.com/How-to-pass-NON-ASCII-characters-from-one-JSP-to-another-JSP-via-ur-%3CS%3AURL%3E-tp25221060p25221060.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


Mime
View raw message