Hello members,
I am currently working on a project GWT +Struts2.
With the aim to invoke a bean (Struts Action) without going through
the PRC, I used requestBuilder.
In my bean I build an Excel file and I refer in a HttpServletResponse
object.
Everything goes well except that I haven't my attachment at the end of
treatment (in onResponseReceived, the method response.geText ()
returns me indeed the string that I contruite in my bean):
________
RequestBuilder builder = new RequestBuilder(RequestBuilder.POST, url);
try {
builder.setHeader("Content-Type", "application/x-www-form-
urlencoded");
Request request = builder.sendRequest(postData, new
RequestCallback() {
public void onError(Request request, Throwable
exception) {
...
}
public void onResponseReceived(Request request,
Response response) {
...
}
});
________
I don't know if this stems from the fact that in my bean I use a
javax.servlet.http.HttpServletResponse and in my callback I recovered
a com.google.gwt.http.client.Response.
someone have an idea?
thinks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"GWT-Ext Developer Forum" 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/gwt-ext?hl=en
-~----------~----~----~----~------~----~------~--~---