• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

"Page can't be found" error after hit "submit"

 
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I created a simple struts app. I let the <forward> element to point back to the beginning "submit.jsp" page. However I keep seeing "404 page not found error". I got the submit.jsp page and after I select things on it and hit submit, I saw the URL changed to "/submitForm.do?name=-...&.." but the error is 404 page not found.
 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is the exact problem I'm having with a test a struts implementation in WSAD.

I have posted something previously. If I get a solution before you, I will post it to yours, as well.

Lulu
 
Ranch Hand
Posts: 354
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
W-ASS-A-D...time to upgrade to the 2GB installation

can't solve a vague problem description. need to know what you have in your
a. struts-config.xml
b. action class
c. your jsp (how you're calling the submit)

if you are using WSAD, run it in debug mode. inspect the request object to see what forward is it looking for. you can step through until you get to the actual forwarding URL.
 
Elle Atechsy
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was able to fix form submission 404 error. Since my web context path suffix is /oos, I defined my forward paths including the context: /oos/testStrutsThankYou.jsp and /oos/testStrutsError.jsp.

Today, I changed them to just /testStrutsThankYou.jsp and /testStrutsError.jsp, and it worked.

Hopefully, this helps.
 
reply
    Bookmark Topic Watch Topic
  • New Topic