This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Correct name in action for Servlet-2

 
Daniel Loranz
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did not notice this anywhere in the forum - sorry if I'm reposting. Hope this is helps someone else.

For Servlet-2 be sure to notice that the html snippet for creating the form needs to have the action statement changed from ...

action='/servlet/ReverseServlet'

to ...

action='/servlet/Reverse'

Going with the convention from earlier assignments, the assignment title implies that the java class be called Reverse.class (not ReverseServlet.class).
 
Marilyn de Queiroz
Sheriff
Posts: 9063
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not seeing that. Where did you find that (in context)?

I see:

You will need to create a web page that contains the following HTML fragment:
<form method='post' action='/servlet/ReverseServlet'>
Text: <input type='text' name='text' size='50'>


<input type='submit' value='submit'>
</form>

Instructor's solution:
reverse.html: 15 lines
ReverseServlet: 35 lines

Maybe I'm not understanding what you're saying.
 
Daniel Loranz
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just see the discrepancy now.

On http://www.javaranch.com/java-college.jsp
Assignment 2 is listed as Servlets-2 (ReverseServlet) in which case, the action attribute in the form tag is correct.

While on http://www.javaranch.com/drive/servlet/index.jsp
Assignment 2 is listed as Servlets-2 (Reverse), in which case the action attribute needs to be changed.

Thanks.
- Dan
 
Marilyn de Queiroz
Sheriff
Posts: 9063
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Dan.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic