Forums Register Login

servlet and CGI?

+Pie Number of slices to send: Send
While doing a little research into processing forms, I ran into a new subject for me. CGI. For the most part, the articles say that using cgi scripts is the only way to process a form, but in one small little question and answer section, it said that servlets were an alternative to cgi. Does anyone know anything about this stuff? (Please tell me I don't have to learn cgi too!!)
Annette
+Pie Number of slices to send: Send
CGI (common gateway interface) are simply programs written in languages like Perl or C that can process data from an HTML form. That is exactly what servlets are used for. If you are using servlets then you don't need to use anything else.
+Pie Number of slices to send: Send
That is exactly what I wanted to hear!!!
I was afraid I was also going to have to learn perl in order to write these things. Thanks again!
annette
+Pie Number of slices to send: Send
Annette,
Just so you know. The e-mail address you provided doesn't work.
+Pie Number of slices to send: Send
Sorry! I just fixed it. It's new, and I haven't given it out that often.
+Pie Number of slices to send: Send
Not sure whether or not I should be starting a new thread, but...
I haven't been able to pass a value from an html form to my servlet. I've checked the error log, and it says that an exception was thrown from the servlet service function (uri=/servlet/DBInventory4).
What does this mean? What would cause an exception to be thrown here?
Annette
+Pie Number of slices to send: Send
Well, what is in your servlet service method?
+Pie Number of slices to send: Send
And what exception was it?
+Pie Number of slices to send: Send
It's all good now! Turns out I needed to have a doPost method instead of a doGet. But thanks anyway!!
+Pie Number of slices to send: Send
www.coreservlets.com
http://www.coolservlets.com/
www.servlets.com
www.jdom.org
www.enhydra.org

these sites have tons of info on servlets and jsp.
They will help you out !
+Pie Number of slices to send: Send
 

Originally posted by erich brant:
www.coreservlets.com
http://www.coolservlets.com/
www.servlets.com
www.jdom.org
www.enhydra.org

these sites have tons of info on servlets and jsp.
They will help you out !


Do you pee on your compost? Does this tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1095 times.
Similar Threads
why CGI is used?
IE and Netscape
The Davinci Code
My (thin) Perl experience
Why CGI on this page?
More...

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