This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlet and CGI?

 
Annette L'Heureux
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • 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
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
paul wheaton
Trailboss
Pie
Posts: 21335
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, what is in your servlet service method?
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And what exception was it?
 
Annette L'Heureux
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • 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!!
 
erich brant
Ranch Hand
Posts: 246
  • Mark post as helpful
  • send pies
  • 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 !
 
honda_black
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • 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 !

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic