• 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
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Reading and Writing a File from RPC Servlet

 
Ranch Hand
Posts: 339
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good day everybody,

I have this particular need, where I need to have a file (xml) within my GWT app. I have some data in this xml I must read, change, and then write (update)
The file must be delivered or included within the Gwt App. Can anybody please tell me where can I place this file, so I can read/write it using java's file APi from an RPC Servlet.

Here's a brief description of how my App's directory structure looks
like:

GwtApp
|__ src
| |__org
| | |__jose
| | |__client
| | |__server
| | |__shared
| |
| |__META-INF
|
|__ war
|__gwtapp
|__WEB-INF

For my current needs, where would you suggest placing the file ?

Thank you very much in advance,

Have a nice day,

Jose
 
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jose,

Load the servlet using a Request Builder passing the servlet path in a String object.

Parse the xml and read each node using a Bean for every node.....


Rakesh

 
Don't mess with me you fool! I'm cooking with gas! Here, read this tiny ad:
Enterprise-grade Excel API for Java
https://products.aspose.com/cells/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!