| Author |
how to use XML here?
|
Yell Srik
Ranch Hand
Joined: Mar 10, 2004
Posts: 61
|
|
Hi, i need ur help in the following scenario: i am developing a GIS application. the application development can be divided into two parts: the client part and the server part. on the client part, i will be developing a GUI using HTML/JavaScript that allows the user to select, from a specified list, a map, data about the map (files in text format) and other options like colors to be shown on the map etc. on the server end, i will be using JSP/Servlets that perform the required processing to display the results to the user. now i need to use XML in this scenario for data exchange ie a XML should be generated. this XML file should contain the selections made by the user via GUI on the client. this XML file is to be transmitted to a server, then the server side programs should interpret this XML file, determine the data specified by the user and do necessary processing. i need ur help in designing this XML file. how can such a XML file be generated? should it be done on the client-end or the server-end? any guidelines to be followed? thanks in advance
|
 |
Lasse Koskela
author
Sheriff
Joined: Jan 23, 2002
Posts: 11945
|
|
Do you have to use XML for communicating with the server? In my opinion, an easier way to implement the application you describe would be to pass all the information to the server as standard HTTP POST parameters. Then, if you really need the information in XML at the server-side, you can construct the XML from those parameters before continuing processing.
|
Author of Test Driven (Manning Publications, 2007) [Blog] [HowToAskQuestionsOnJavaRanch]
|
 |
Yell Srik
Ranch Hand
Joined: Mar 10, 2004
Posts: 61
|
|
hi, yes, i have to use XML for communication with the server. a suggestion given by one of my colleagues was: to generate the XML file that contains the user selections and transmit it over to the server via HTTP.(he told me that it is possible to create a XML file that automatically changes whenever the user makes different selections using the GUI). i am not sure whether this is possible. waiting to hear ur comments on this.
|
 |
Lasse Koskela
author
Sheriff
Joined: Jan 23, 2002
Posts: 11945
|
|
Since you need to create the XML on the client-side and you use JavaScript for it, I'll move this thread into the HTML/JavaScript forum (you'll probably get better answers there). You might want to post a separate question in here or in the Servlets forum regarding only the server-side stuff -- how to parse the XML etc.
|
 |
 |
|
|
subject: how to use XML here?
|
|
|