how to submit Unicode text in Struts/JSP?

2003-06-07 Thread Dimitar Georgievski
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: how to submit Unicode text in Struts/JSP?

2003-06-07 Thread Dan Tran
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 [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: how to submit Unicode text in Struts/JSP?

2003-06-07 Thread Dimitar Georgievski
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 [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
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 [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 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: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]