woody schrieb:
> The stachtrace looks like this:
> javax.servlet.ServletException: Content-Length must be specified
> at com.google.gwt.user.server.rpc.RPCServletUtils.readContentAsUtf8
> (RPCServletUtils.java:131)
> at com.google.gwt.user.server.rpc.RemoteServiceServlet.readContent
> (RemoteServiceServlet.java:335)
> at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
> (RemoteServiceServlet.java:77)
It looks like there is the RemoteServiceServlet being called by
the RequestBuilder. That can't work you have to call the original
servlet or do that inside a RemoteServiceServlet and pass the data
through. BTW:
response.setContentType("application/ms-excel");
response.setContentLength(8100);
PrintWriter out = response.getWriter();
String htmlString = new String("<HTML>" +
"<TABLE cellspacing=1 cellpadding=1 border=1> " +
This is not an Excel-format.
> I just ask myself if I I did choose the wrong way. Is it possible to
> call simple servlets from GWT? I always read about RPC and
> XMLHttpRequest.
My favorite way is define an Iframe on the base-page of the
GWT-application that I access inside the java-class and set
the source of the iframe using DOM. That way you can call
the servlet directly and the browser should behave the same
way like you're used to in the good old JSP-times.
Regards, Lothar
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---