This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Building Blockchain Apps and have Michael Yuan on-line!
See this thread for details.
Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization 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
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

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

 
Amateurs built google. Professionals built the titanic. We can't find the guy that built this 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!