This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlets 2 - reverse servlet

 
Brian Holsenbeck
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Working ahead a little while my java 4b is being nitpicked. I have orion installed, and my initial web page shows up - however, I'm trying to get it to show a servlet that just prints "test". When I press "submit", it says "Page cannot be displayed" - the URL is http://localhost/servlet/com.javaranch.drive.ReverseServlet.

When I press return on the address line (still containing the above), it brings up the text "test".

Anybody got any ideas?
 
Brian Holsenbeck
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hm. Well, it works when I do "doPost", but "doGet" doesn't work. Anyone have any idea why?
 
Carol Murphy
village idiot
Bartender
Posts: 1203
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't understand why you are using doGet....
Wouldn't doPost be better?
 
Marilyn de Queiroz
Sheriff
Posts: 9068
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If doPost works and doGet does not, I would suspect something in the url.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic