Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

HTTP status 400 - Invalid path /xxx/action was requested  RSS feed

 
michel knight
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am a new hire in a small company,today,i use struts to do my first struts project.it is a simple project.in my jsp page, i make a button what has a "onclick" event. in clickfunction(f) i write:

f.action="xxxAction.do";
f.submit();

but i got a 400 -Invalid path /xxx/xxxAction was requested;
but my action path is "/xxxAction";
i dont understand why,dose someone tell me what mistake i make?
i am sorry about my poor english ^_^!
thanks
 
Johnson Abraham
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make it

f.action="/xxxAction.do";
f.submit();


Johnson Abraham
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!