Help coderanch get a
new server
by contributing to the fundraiser
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Reading and Writing a File from RPC Servlet

 
Ranch Hand
Posts: 339
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Good night. Drive safely. Here's a tiny ad for the road:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic