• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cafe4java doubt

 
Jerret Halter
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was taking the mock exame @ cafe4java and when I came to question #4 I really did not the reason behind the answer. Here is the question

Which of the following events/ code will invoke the GET (doGet) method of a servlet?
A)
<form action="/servlet/Cafe4Java" method="GET">
..
..
</form>
B)
<form action="/servlet/Cafe4Java">
..
..
<form>
C)
<a href="www.Cafe4Java.com/servlet/Cafe4Java">Cafe4Java
D)
<form action="/servlet/Cafe4Java" method="doGet">
..
..
</form>

The answer was: A,B, and C. I thought w/out the form ending correctly with </form> and the <href> tag not correctly ending in </a> that the only answer would have been A.
 
Lalitha Vydyula
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Remember, you are not being tested on your HTML knowledge.
 
Jerret Halter
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah that is what I was assuming, but you know what they say about assuming
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic