Click to See Complete Forum and Search --> : extracting data using servlets


fip04
05-24-2004, 05:31 AM
Hi,
i need a small clarification regarding servlets:
using a HTML/JS form, my output is a new window named mywin with the following contents:

<details>
<desc>C:\Project\abc.svg</desc>
<notes>C:\Project\data.txt</notes>
</details>

now i want to use a servlet to extract the contents of the window (mywin)
can u help me by giving a sample servlet code that extracts the data as above?
thanks in advance..

Khalid Ali
05-24-2004, 09:51 AM
to retrieve any data on the server side you will need to put data in form elements whether hidden fields or any other form element.
To extract data from html elements is not possible,you will have to use HTTP request object to send data to server where servlet can see it.

fip04
05-25-2004, 12:43 AM
Hi,
thank u for the prompt reply. but i am afraid i need some more clarification from u.
can u give me the sample code to use HTTP request object to send data to the server. since the output of my form submission is a window with xml tags, i am not able to proceed.
thanks in advance.