Forums Register Login

posting data not using a form

+Pie Number of slices to send: Send
Hi,
I want to post data to a cgi file, but instead of using a form my servlet will retrieve the information from a database!
Anybody have any ideas on how this can be done?

Thanks in advance.
+Pie Number of slices to send: Send
Dibs,
If I understood you correctly, then at loading a page, you want to pull some data from the database and then submit the form to some place.
This is nothing to do with servlets as far as I can see but here is how you can do this...
1. Pull out the data from database and place it into hidden form fields
2. At the end of the page have a javascript submit() command to submit the form to where ever.
HTH
+Pie Number of slices to send: Send
Hi,
The servlet will send some particular data from the database to the cgi program depending on what checkbox is clicked on a jsp page.
I'd like to do this without using javascript, is there any way?
Cheers.
+Pie Number of slices to send: Send
Hi What I could understand from ur message is u wnat to pass some values to a cgi frm a servlet right.........
If so
after retrieving values from database those variables can be put into session i mean Servlet Session i dont know exactly the syntax but when u can programmitically put into session variable and then retrieve in the cgi file be it a servlet using servlet context.......
Hope my answer is relative........
cheers,
rajalakshmi.
Whatever. Here's a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 791 times.
Similar Threads
How to insert form-data(.jsp) into MySql through Servlets
send values from 1 jsp to another
File upload doesn't work when additional form elements introduced
struts
EHCache not working
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 00:36:12.