The hidden attribute of the input tag, four commonly used jstl tag libraries

Source: Internet
Author: User

Application and function of the hidden attribute of input tag

Definition: transmits state information about client/server interactions.

Transmits state information about client/server interaction.

Explain:

This element is not displayed in the page and is sent when the form is submitted with the value of the Values property.

--hidden fields, not displayed on the page, but can be passed to the next page, or can be obtained by the JavaScript function on this page.

The implied domain is primarily used to pass dynamic parameters when the form is submitted.

four Common tag libraries :

<c:set <c:if <c:foreach <c:out

Where the If label cannot have an else statement and must have the test property

%%%%%%%%%%%%%%%%%%%%%%%%

Pass parameters between pages, and one is to use the Getgarameter () method to get the Name property value of the front page input tag

In the servlet:
int count;//Assume it's the value you want to pass.
Request.setattribute ("Countname", count);

In the JSP:
<% int count= (int) requestsetattribute ("Countname");%>
Then put the resulting value in the appropriate position








The hidden attribute of the input tag, four commonly used jstl tag libraries

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.