• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 278
  • Last Modified:

use javascript to read in xml file and pass contents to java method.

Hello,

I would like to find out how to read in an xml file using javascript and then call a Java method passing the xml file contents as a String to that method.  I'm using JSF (richfaces).  Thanks!
0
cgray1223
Asked:
cgray1223
  • 2
1 Solution
 
leakim971PluritechnicianCommented:
Hello cgray1223,

Why not get the file directly with JSF ?

Regards
0
 
cgray1223Author Commented:
Hi Leakim971,

I'm needing to retrieve it on the client side since it's generated from a plugin...
0
 
leakim971PluritechnicianCommented:
So I suppose the xml file is on the hard drive.

What about using an <input type="file" .... > in a form ?
http://www.w3schools.com/jsref/dom_obj_fileupload.asp
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now