Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

BasicServlet.HTML

 
REH Henderson
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I ran this particular program and I still not sure what I am suppose to get
as a response.

<HMTL>
<HEAD>
<TITLE>
BasicServlet
</TITLE>
</HEAD>
<BODY>


<FORM
ACTION=http://localhost:8080/servlet/BasicServlet
METHOD=POST>

<BR><BR>
press Submit Query to launch servlet BasicServlet
<BR><BR>
<INPUT TYPE=submit>
<INPUT TYPE=reset>
</FORM>

</BODY>
</HTML>

I am suppose to get "Your request method was get".I am?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are using Tomcat, the URL
ACTION=http://localhost:8080/servlet/BasicServlet

indicates you are using a old reference that predates a change in default settings for Tomcat installations. See this Ranch FAQ on the invoker servlet.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic