• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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

 
reply
    Bookmark Topic Watch Topic
  • New Topic