Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Gwt RequestBuilder + Servlet issue

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
Bartender
Posts: 11445
18
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try using Anchor to invoke the servlet
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Die Fledermaus does not fear such a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!