*
The moose likes Servlets and the fly likes servlet and CGI? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet and CGI?" Watch "servlet and CGI?" New topic
Author

servlet and CGI?

Annette L'Heureux
Ranch Hand

Joined: Dec 07, 2000
Posts: 135
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
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
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.


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Annette L'Heureux
Ranch Hand

Joined: Dec 07, 2000
Posts: 135
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
paul wheaton
Trailboss

Joined: Dec 14, 1998
Posts: 20491
    ∞

Annette,
Just so you know. The e-mail address you provided doesn't work.


permaculture Wood Burning Stoves 2.0 - 4-DVD set
Annette L'Heureux
Ranch Hand

Joined: Dec 07, 2000
Posts: 135
Sorry! I just fixed it. It's new, and I haven't given it out that often.
Annette L'Heureux
Ranch Hand

Joined: Dec 07, 2000
Posts: 135
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
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
Well, what is in your servlet service method?
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
And what exception was it?


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Annette L'Heureux
Ranch Hand

Joined: Dec 07, 2000
Posts: 135
It's all good now! Turns out I needed to have a doPost method instead of a doGet. But thanks anyway!!
erich brant
Ranch Hand

Joined: Sep 27, 2000
Posts: 246
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 !

http://
honda_black
Greenhorn

Joined: Dec 26, 2000
Posts: 3
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 !

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: servlet and CGI?
 
Similar Threads
My (thin) Perl experience
why CGI is used?
Why CGI on this page?
The Davinci Code
IE and Netscape