You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dimitar Georgievski <di...@websyn.com> on 2003/06/07 20:41:07 UTC
how to submit Unicode text in Struts/JSP?
hi,
I'm trying to submit Unicode encoded to a search engine through a web client
developed is Struts.
Each JSP page of the Web client sets the page encoding using the following
HTML statement:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
After the submission, in the Action servlet, I compare the request with what
I would expect to receive as a submission:
It goes like this:
String request2 = new String("\u017Eivot");
if (request2.equals(_request)){
System.out.println("request OK");
}
They are not the same and I don't know why. When request2 is submitted
directly to the search engine there is result received back.
How to submit successfully Unicode text to the server?
I'm using
J2SE 1.4.1
JBoss 3.0.4
Tomcat 4.1.x
thanks,
dimitar
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: how to submit Unicode text in Struts/JSP?
Posted by Dimitar Georgievski <di...@websyn.com>.
Dan,
that solved the problem. I wasn't aware the application needs a filter to
set the content type.
thanks a lot,
dimitar
----- Original Message -----
From: "Dan Tran" <da...@hotmail.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Saturday, June 07, 2003 2:45 PM
Subject: Re: how to submit Unicode text in Struts/JSP?
> http://www.anassina.com/struts/i18n/i18n.html
>
> I heard Struts 1.2 may incorporate this in the future.
>
> -Dan
>
> ----- Original Message -----
> From: "Dimitar Georgievski" <di...@websyn.com>
> To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> Sent: Saturday, June 07, 2003 11:41 AM
> Subject: how to submit Unicode text in Struts/JSP?
>
>
> > hi,
> >
> > I'm trying to submit Unicode encoded to a search engine through a web
> client
> > developed is Struts.
> >
> > Each JSP page of the Web client sets the page encoding using the
following
> > HTML statement:
> > <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
> >
> > After the submission, in the Action servlet, I compare the request with
> what
> > I would expect to receive as a submission:
> >
> > It goes like this:
> >
> > String request2 = new String("\u017Eivot");
> >
> > if (request2.equals(_request)){
> > System.out.println("request OK");
> > }
> >
> > They are not the same and I don't know why. When request2 is submitted
> > directly to the search engine there is result received back.
> >
> > How to submit successfully Unicode text to the server?
> >
> > I'm using
> > J2SE 1.4.1
> > JBoss 3.0.4
> > Tomcat 4.1.x
> >
> > thanks,
> >
> > dimitar
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: how to submit Unicode text in Struts/JSP?
Posted by Dan Tran <da...@hotmail.com>.
http://www.anassina.com/struts/i18n/i18n.html
I heard Struts 1.2 may incorporate this in the future.
-Dan
----- Original Message -----
From: "Dimitar Georgievski" <di...@websyn.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Saturday, June 07, 2003 11:41 AM
Subject: how to submit Unicode text in Struts/JSP?
> hi,
>
> I'm trying to submit Unicode encoded to a search engine through a web
client
> developed is Struts.
>
> Each JSP page of the Web client sets the page encoding using the following
> HTML statement:
> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
>
> After the submission, in the Action servlet, I compare the request with
what
> I would expect to receive as a submission:
>
> It goes like this:
>
> String request2 = new String("\u017Eivot");
>
> if (request2.equals(_request)){
> System.out.println("request OK");
> }
>
> They are not the same and I don't know why. When request2 is submitted
> directly to the search engine there is result received back.
>
> How to submit successfully Unicode text to the server?
>
> I'm using
> J2SE 1.4.1
> JBoss 3.0.4
> Tomcat 4.1.x
>
> thanks,
>
> dimitar
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org