When batch delete, single delete, single add all can
At this point, the conditional query will error.
Suddenly found that when jumping a single added page, there is no need to pass any parameters, because we jump to a new page, should be like, a single delete, the use of hyperlinks, and a single delete also need to pass a parameter.
And when the new page is added, there is no need to pass parameters after the servlet is executed, so the page is redirected.
I think the reason is that when we submit the form with JS, we modify the direction of the form action, so we need to change it back when we continue the operation. This is important!!!
Then that is, when I finished the JS batch delete, this time to modify the form of the submission address, after the submit jump will appear error.
And because the page, the re-listing, is to jump to a listservlet processing, and then he jumps to the JSP page, this time is actually no form of the delivery, so there will be no error.
So when I rerun the project, it should be conditionally queried.
Wrong, re-run the project can not be conditional query, still
The reason has been resolved,
<SelectID= "Querymessagelist"ParameterType= "Com.imooc.bean.Message"Resultmap= "Messageresult">SELECT id,command,description,content from MESSAGE WHERE 1=1<!--Why </where> do not need or can this place must not have <where> tag can't be sure wrong - <ifTest= "command!=null&&! "". Equals (Command.trim ()) ">and COMMAND = #{command}</if> <offTest= "description!=null&&! "". Equals (Description.trim ()) ">and DESCRIPTION like '% ' #{description} '% '</if>
No need or can this place must not have <where> tag can not be sure wrong, do not know why there is a where tag, do not know the role of this tag. But it's the fault.
Then, does the discussion above affect the submission address of the form?
Try again, do not have the above reasons, I think should modify the form's submission address should be specific to the button, or local modification. No other form submission addresses and other buttons will be affected!!!
Finally completed a self-written, add tag method, and compatible with other methods.
Change it tomorrow, hyperlink submission, or merge JS file
There are new problems, so I found some of the previous problems (about changing the form address, should not be changed back to the problem)