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)

Source: Internet
Author: User

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&amp;&amp;! &quot;&quot;. Equals (Command.trim ()) ">and COMMAND = #{command}</if>      <offTest= "description!=null&amp;&amp;! &quot;&quot;. 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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.