• Post Reply Bookmark Topic Watch Topic
  • New Topic

servlet like a CGI

 
trinity
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we write a servlet, that should work as the CGI does? How?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
t aaa,
Welcome to the ranch. Please check out the Naming Policy and change your name accordingly. Thank you

About your question, yes you can make a servlet behave like a CGI. Servlets could be considered as being some kind of CGI. They handle requests.
 
trinity
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have any example for the same?

Thanks in advance
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you tell us what you mean by "work as the CGI"? How are servlets different from CGIs? (Apart from the fact they the servlet container runs in-process with the web container, or is at least memory-resident.)
 
trinity
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the same context. (i.e process V/S threads)
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"trinity"

Thanks for changing your display name, but it is still not valid.

Your display name must be your first name, a space, then your last name, and fictitious names are not allowed.

thanks,
Dave.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why dont you go read a servlet tutorial such as this one at Sun.

Once you understand how servlets work you will be able to formulate your question better - or find that it has been answered.

Bill
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by trinity:
In the same context. (i.e process V/S threads)


What are "V/S threads"?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!