Site background Development The same URL restricts different method
Source: Internet
Author: User
A few days ago to develop the call service management, the use of forms submitted to do, at that time feel simple no summary, but now think it is a summary of it. Enter the form submission page, first brush the page, is to return to the front end a model, the front end with <c:foreach><c:choose><c:when><c:otherwise> control display content, For example, the status is 1, the display is enabled, this is made with <c:choose><c:when><c:otherwise> these tags, and other words directly displayed on the ${xxx.xx} is good, To the page there is a add call type, click to enter some parameters, click to save the Word and enter this page is the same URL, then I was a bit B, so how to save it. The result looked at seniors before written code, originally the same URL with different method methods to limit some of the can, brush the page is the Get method, the form submitted is the Post method, so that both can brush the page can also save the content of the form submission ~.
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.