This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlets - 4A: ActionServlet not forwarding request

 
jone jacob
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, I've been trying this thing out for a couple days now all to no avail.

I believe I am not too far off from the solution but I am missing something very simple. Could someone please take a look and let me know what I am missing?

The problem: I have implemented the VideoServlet as an ActionServlet but even the simplest of actions will not forward to the proper jsp. I am trying to simply have a 'ListHandler' with a key of "list" that should go to 'listvideos.jsp'. The URL on my index.html is: a href='/Video?action=list'. However when I click on this it goes to http://localhost:8080/Video/?action=list , which is not a valid URL.

EDIT/JD : Deleted functional code.

Any information would be appreciated.
Thank you,

- J Jacob
 
Janeice DelVecchio
Saloon Keeper
Posts: 1809
12
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jone,

Please don't post code for the assignments in this forum. I have edited your post to remove your code.

The reasoning for this is to not give secrets/hints/answers away to other students on the drive. Please ask questions of your nitpicker for questions on the code itself, or you can give pseudocode in the forums here.

 
paul wheaton
Trailboss
Pie
Posts: 21736
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to read the question and I'm having trouble understanding the question.

The action key stuff should never go to a jsp, but always to a handler. Then the handler will forward to a jsp.


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic