This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes japanese not working in JRUN Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "japanese not working in JRUN " Watch "japanese not working in JRUN " New topic
Author

japanese not working in JRUN

mathew john
Greenhorn

Joined: Dec 14, 2004
Posts: 19
hi ,

i am using weblogic 8.1sp3 . i am just trying to output japanese text to the browser.The code is as below for Japanse.jsp

<%@ include file='TestDEIncludeCharset.jsp'%>
<%@ page import="java.util.*"%>
<%@ page import="java.io.*"%>

<%
String japanese = "����������o���o����";
out.println("japanse Text ------------------------>"+ japanese);
%>

<html>
<head>
<title>Japanse Text</title>
<meta http-equiv="Content-Type" content="text/html; charset="Shift_JIS">
</head>
<body>
������

<form name="form1" method="post" >
<input type="button" name="Submit2" value="����" >
</form>
</body>
</html>

And the code For TestDEIncludeCharset.jsp is as below.
<%@ page language = "java" contentType="text/html;charset=Shift_JIS" %>
<%
request.setCharacterEncoding("Shift_JIS");

%>

Now it works Well with Weblogic but in JRUN4.0 japanese text is not displaying properly on the browser. Now if i copy the 2 lines of code in
TestDEIncludeCharset.jsp and paste it in place of the include it works in JRUN . but i dont want to do this .

can somebody tell me why this is happening in JRUN . and can somebody give me a wrk around for this

Thank you
 
 
subject: japanese not working in JRUN
 
Similar Threads
Need help with a servlet problem
EL Not working
retrive serialize files data ERROR
japanese problem in Tomcat
JSP Form help?