This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes GWT and the fly likes Gwt RequestBuilder + Servlet issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "Gwt RequestBuilder + Servlet issue" Watch "Gwt RequestBuilder + Servlet issue" New topic
Author

Gwt RequestBuilder + Servlet issue

Praveen Ramachandran
Greenhorn

Joined: Jul 18, 2006
Posts: 16
HI,

I am using a RequestBuilder object from Gwt to send a innerHtml string from a panel to generate a PDF report in the servlet

SomeWhat like this:
RequestBuilder rb = new RequestBuilder("RequestBuilder.POST","URL");
rb.sendRequestData ("Some String");

So the servlet is some class which extends HttpServlet.

I am able to see that the Request is invoking the Servlet , but some how it is neither opening an inline window or any attachment.
And there are no exceptions caught at the console. Can you please suggest me how to go about it

Many thanks for the time

Thanks,
Praveen. R

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9990
    
    7

Try using Anchor to invoke the servlet


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Jait Thomas
Greenhorn

Joined: Feb 01, 2001
Posts: 13
RequestBuilder calls may not work if you want to display an attachment/open a document inline. Try anchor/window.open/window.location.assign.(For last one you will loose GWT state) Also make sure that the headers are correctly set in response.


Jait Thomas
SCJP 1.2, SCWCD, SCDJWS 1.4 & 5, SCBCD 5
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Gwt RequestBuilder + Servlet issue
 
Similar Threads
GWT in Action - Database Topics
Ex GWT
Open id authentication using gwt
Google Web Toolkit Applications book
GWT HTTP RequestBuilder