This looks like a browser issue to me. Did you try Netscape or Mozilla? I have had similar a problems with Japanese content(UTF-8) in IE for mac where '???' where showing on some form elements. I never found a solution around other than switching SHIFT-JIS character encoding so if you find anything please let me know.
Thomas
On Sunday, Mar 2, 2003, at 12:29 Canada/Eastern, Sakis Chatzinikolaou wrote:
Hi all,
I have a problem with html:textarea.
This is how it goes.
I have an action Form with only one property landComments package untitled1;
import org.apache.struts.action.*; import javax.servlet.http.*;
public class Untitled1ActionForm extends ActionForm { private String landComments; public void setLandComments(String landComments) { this.landComments = landComments; } public String getLandComments() { return landComments; } public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest httpServletRequest) { return null; } public void reset(ActionMapping actionMapping, HttpServletRequest httpServletRequest) { } }
Nothing much.
I also have this Action which gets the ActionForm and calls a jsp to show
the string in the textarea
package untitled1;
import org.apache.struts.action.*; import javax.servlet.http.*;
import untitled1.Untitled1ActionForm; public class Untitled1Action extends Action { public ActionForward perform(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) { Untitled1ActionForm form = (Untitled1ActionForm) actionForm; String a = form.getLandComments();
System.out.println(a); return new ActionForward("/jsp2.jsp?test=" + a); } }
and last I have a jsp1.jsp and jsp2.jsp JSP1 <%@ page contentType="text/html; charset=iso-8859-7" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
<html> <body> <html:form action="/Untitled1Action.do" > <html:textarea name="untitled1ActionForm" property="landComments" cols="40" rows="4" > </html:textarea> <html:submit /> </html:form> </body> </html>
JPS2 <%@ page contentType="text/html; charset=iso-8859-7" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %> <html> <head>
</head> <body> <h1> <%= request.getParameter("test") %> </h1> </body> </html>
Now the problem :
The characters in the textarea display right in greek characters when I
writein the jsp1
When I click submit and go to the Action the landComments string has false
characters and finally I get ???in the jsp2
I use Struts 1.01, Windows 2000 SP4 and Apache Tomcat 4.1.18
Could anyone think of something ? Thanks in advance Sakis
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Thomas Gourgon
Tritus Consultant Group Inc. www.tritus.ca
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

