• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

servlet and CGI?

 
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Annette L'Heureux
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Trailboss
Posts: 23773
IntelliJ IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Annette,
Just so you know. The e-mail address you provided doesn't work.
 
Annette L'Heureux
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry! I just fixed it. It's new, and I haven't given it out that often.
 
Annette L'Heureux
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 13974
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, what is in your servlet service method?
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And what exception was it?
 
Annette L'Heureux
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's all good now! Turns out I needed to have a doPost method instead of a doGet. But thanks anyway!!
 
Ranch Hand
Posts: 246
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 !
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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 !


 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic