943,793 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 10167
  • Java RSS
Sep 12th, 2007
0

Reading a xml file from a web application.

Expand Post »
Hi,

i want to get an xml file from a web application. what are the procedures to access the file.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
sarath.koiloth is offline Offline
30 posts
since Sep 2006
Sep 12th, 2007
0

Re: Reading a xml file from a web application.

Just yeasterday I pointed another member toward this tutorial
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 873
Code tags enforcer
peter_budo is offline Offline
6,656 posts
since Dec 2004
Sep 12th, 2007
0

Re: Reading a xml file from a web application.

Thanks Peter for you reply.

I had created the user freindly xml editor.there are some drop-downs. To populate these drop downs, i need a xml file,which is placed in the server.How can i get that file.
Reputation Points: 10
Solved Threads: 0
Light Poster
sarath.koiloth is offline Offline
30 posts
since Sep 2006
Sep 12th, 2007
0

Re: Reading a xml file from a web application.

i need a xml file,which is placed in the server.
Can you explain more?
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 873
Code tags enforcer
peter_budo is offline Offline
6,656 posts
since Dec 2004
Sep 12th, 2007
0

Re: Reading a xml file from a web application.

There is one web application which is already running,I want to get the xml file from that application.I need to get the data from that xml.What is the procedure for getting that file..?
Reputation Points: 10
Solved Threads: 0
Light Poster
sarath.koiloth is offline Offline
30 posts
since Sep 2006
Sep 12th, 2007
0

Re: Reading a xml file from a web application.

hi,
There are lot of third party Java-XML parsers available.U can use that to get the data from the coresponding tag and build the drop down.
The other option is to use XSLT to build the editor controls for the XML editor.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
vivek_green is offline Offline
8 posts
since Aug 2007
Sep 12th, 2007
0

Re: Reading a xml file from a web application.

A properly configured application server won't let any application running in it directly access any file system resources that aren't on that application's context root (so inside its WEB-INF directory for a Java web application server, plus directories specifically specified in deployment descriptors) for security reasons.

Apart from that there's no difference whatsoever between file access from web applications and any other applications. be it XML files or anything else.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
Sep 21st, 2007
0

Re: Reading a xml file from a web application.

Thank you freinds
Reputation Points: 10
Solved Threads: 0
Light Poster
sarath.koiloth is offline Offline
30 posts
since Sep 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Java home work help (long post)
Next Thread in Java Forum Timeline: Java Dummie Needs Loop Help





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC