servlet is great:

http://65.99.194.156/servlets-examples/test?name=%E4%BD%A0%E5%A5%BD

http://65.99.194.156:8080/servlets-examples/test?name=%E4%BD%A0%E5%A5%BD

with code:

===========================
public class ServletTest extends HttpServlet {
    protected void doPost(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {

    }

    protected void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
        request.setCharacterEncoding("UTF-8");
        response.setCharacterEncoding("UTF-8");
        response.getWriter().write(request.getQueryString());
        response.getWriter().write(request.getParameter("name"));
    }
}
==========================

i am going to eat something....  so tired today......


On 3/17/06, Geert Bevin <[EMAIL PROTECTED]> wrote:
> Hi Hui,
>
> I'm sorry I can't help you with that, I don't use mod_jk.
>
> You might want to ask on their mailing list. You can also try writing
> a simple servlet (without RIFE) to see if the pathinfo in an URL like
> http://65.99.194.156:8080/nxnx/mix/%E4%BD%A0%E5%A5%B arrives
> correctly through mod_jk at the servlet.
>
> Sorry that I can't help more.
>
> Best regards,
>
> Geert
>
> On 17-mrt-06, at 10:50, hui wrote:
>
> > when using tomcat alone, everything is fine.
> > but when go to apache with mod_jk, there comes problem:
> >
> > look at:
> > (tomcat standalone)
> > http://65.99.194.156:8080/nxnx/mix/%E4%BD%A0%E5%A5%BD
> >
> > result: UTF-8%E4%BD%A0%E5%A5%BD你好...... <---this is correct what
> > I want.
> >
> > but:
> > (apache+mod_jk)
> > http://65.99.194.156/nxnx/mix/%E4%BD%A0%E5%A5%BD
> >
> > result: UTF-8     <---missed query string
> >
> > with the results above i use the code:
> > ===================================
> >  public void processElement() throws EngineException {
> >         setContentType("text/xml");
> >         String name;
> >         try {
> >             print(getRequestCharacterEncoding());
> >
> >             print(getInput("id"));
> >
> >             print(URLDecoder.decode(getInput("id").trim(), "UTF-8"));
> >
> >             name = URLDecoder.decode(getInput("id").trim(), "UTF-8");
> > ..........
> > ====================================
> >
> > I thought it was apache or mod_jk config problem at first, and googled
> > for a whole day,
> > but not working, then I tried:
> >
> > http://65.99.194.156/nxnx/W.jsp?%E4%BD%A0%E5%A5%BD
> >
> > http://65.99.194.156:8080/nxnx/W.jsp?%E4%BD%A0%E5%A5%BD
> >
> > the query is not missing!
> >
> > does anybody know where is the problem?
> >
> > thank you!
> >
> >
> > hui.
> > _______________________________________________
> > Rife-users mailing list
> > [email protected]
> > http://lists.uwyn.com/mailman/listinfo/rife-users
>
> --
> Geert Bevin             Uwyn bvba               GTalk: [EMAIL PROTECTED]
> "Use what you need"     Avenue de Scailmont 34  Skype: gbevin
> http://www.uwyn.com     7170 Manage, Belgium      AIM: geertbevin
> gbevin at uwyn dot com  Tel: +32 64 84 80 03   Mobile: +32 477 302 599
>
> PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
> Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net
>
>
> _______________________________________________
> Rife-users mailing list
> [email protected]
> http://lists.uwyn.com/mailman/listinfo/rife-users
>
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to