The moose likes Cattle Drive and the fly likes Servlets 2 - reverse servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » This Site » Cattle Drive
Reply Bookmark "Servlets 2 - reverse servlet" Watch "Servlets 2 - reverse servlet" New topic
Author

Servlets 2 - reverse servlet

Brian Holsenbeck
Greenhorn

Joined: Jul 01, 2008
Posts: 8
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

Joined: Jul 01, 2008
Posts: 8
Hm. Well, it works when I do "doPost", but "doGet" doesn't work. Anyone have any idea why?
Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1172
I don't understand why you are using doGet....
Wouldn't doPost be better?
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9033
    
  10
If doPost works and doGet does not, I would suspect something in the url.


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Servlets 2 - reverse servlet
 
Similar Threads
Issue in web.xml mapping
web.xml servlet url-pattern mapping problem
doubt in forwarding
JSDK .... APPLET
confused with forwarding request