• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Servlets - 4A: ActionServlet not forwarding request

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
Posts: 1847
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.

Posts: 23216
IntelliJ IDE Firefox Browser 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.

    Bookmark Topic Watch Topic
  • New Topic