0

Try to run an example: Click here

Go to RadioButton.html. It works fine.

But when I confirm the dish, I get "The requested resource is not available (404)" in Apache Tomcat 7. The page redirects me to localhost:8080/content/RadioButton?dish=Russian (page RadioButton.html is located in folder content, but servlet RadioButton is located in src folder) instead of localhost:8080/RadioButton?dish=Russian All the problem I see in form method="get" action="RadioButton".

Volo Shima
  • 3
  • 1
  • 4
  • You have to correct your `action="demo_form.asp"`-part. It's pointing to the wrong location. Maybe it's `action="src/demo_form.asp"` ? – maja Jan 31 '14 at 18:45
  • what is your root url? – java seeker Jan 31 '14 at 18:45
  • Here is my project: http://pixs.ru/showimage/1png_4135055_10694411.png – Volo Shima Jan 31 '14 at 18:49
  • which ide you are using? eclipse? – java seeker Jan 31 '14 at 18:55
  • maja, action="src/RadioButton" redirects me to localhost:8080/content/src/RadioButton?dish=Italian – Volo Shima Jan 31 '14 at 18:55
  • can you show your folder hieredchy – java seeker Jan 31 '14 at 18:55
  • java seeker, I use IntelliJ IDEA. – Volo Shima Jan 31 '14 at 18:56
  • java seeker, if you mean my project, then it is here http://pixs.ru/showimage/1png_4135055_10694411.png, if you mean OS, then C:\Users\zer0\IdeaProjects\geek\FileManager. FileManager contains folders "src", "web". "src" contains *.java files, "web" contains folders "content" (with RadioButton.html), "WEB-INF" and file index.jsp. All compiled classes located in C:\Users\zer0\IdeaProjects\geek\out\artifacts\FileManager_war_exploded\WEB-INF\classes and C:\Users\zer0\IdeaProjects\geek\out\production\FileManager – Volo Shima Jan 31 '14 at 19:07
  • Thanks for the valuable inputs. I had to change the location of RadioButtom.html to web directory where index.jsp is located and it worked for me. – Volo Shima Jan 31 '14 at 19:24

0 Answers0