When i changed form's action in JavaScript, and then useed a
button(html:button.) to submit the form.
in browser,[File not found] error 404 occured.Tomcat console reported that
[cannot find file path..]
if I change the button type from button to submit,it will be OK.
Anybody can tell me why?
Because Struts doesn't just write out what you put in as the action. It
looks up what you specify in your struts-config.xml file, and relates
that back to something that the server and Struts really needs.
If you really needed to do this (it would be better to have a
dispatching style action),
2 matches
Mail list logo