N
nicky
Hello,
I have problem about bean which I call from jsp tag.
I meet it can't show result in format thai language
how I resolve this problem?
this is mybean............
public class String_bean{
private String message =
"สวัสดีค่ะ =
this is thai language";
public String getMessage(){
return(message);
}
public void setMessage(String message){
this.message = message;
}
}
my jsp tag..............
<html>
<body>
<%@page errorPage = "error.jsp" %>
<jsp:useBean id = "bean1" class ="mybean.String_bean" />
<jsp : getProperty name = "bean1" property = "message" / >
<br><br>
<%String bean = bean1.getMessage();%>
<%=new String(bean.getBytes("ISO8859_1"),"windows-874") %>
</body>
</html>
my result in browser..............
?????????
Please tell me,
Thank you.
Nicky
I have problem about bean which I call from jsp tag.
I meet it can't show result in format thai language
how I resolve this problem?
this is mybean............
public class String_bean{
private String message =
"สวัสดีค่ะ =
this is thai language";
public String getMessage(){
return(message);
}
public void setMessage(String message){
this.message = message;
}
}
my jsp tag..............
<html>
<body>
<%@page errorPage = "error.jsp" %>
<jsp:useBean id = "bean1" class ="mybean.String_bean" />
<jsp : getProperty name = "bean1" property = "message" / >
<br><br>
<%String bean = bean1.getMessage();%>
<%=new String(bean.getBytes("ISO8859_1"),"windows-874") %>
</body>
</html>
my result in browser..............
?????????
Please tell me,
Thank you.
Nicky