JSP 1.1 proposes an extended JSP flag method named "flag library ". These libraries allow other logos similar to jsp: include or jsp: forward, but they are not prefixed with jsp: and some features are also attached.
To introduce the flag library, we will use the Blazix flag library as an example in this tutorial. This flag library can only be used on the Blazix server. You can download it for free.
Each logstore has its own logstore special documentation. To use the flag library, you can use "taglib" directive to indicate where the "description" of the library is located. For the Blazix flag library, direve VE is as follows:
<% @ Taglib prefix = "blx" uri = "/blx. tld" %>
In the above sentence, "uri" indicates the description of the Flag library. The prefix of the Flag library is different. This command means that we can use blx: to use the flag in the library. The blx: getProperty flag is provided for the blx flag library. This flag allows users to edit form data. Now, in the GetName. jsp file, we add a jsp: useBean and place the form in blx: getProperty:
<% @ Taglib prefix = "blx" uri = "/blx. tld" %>
<Jsp: useBean id = "user" class = "UserData" scope = "session"/>
<HTML>
<BODY>
<Blx: getProperty name = "user" property = "*">
<Form method = post action = "SaveName. jsp">
Whats your name? <Input type = text name = username SIZE = 20> <BR>
Whats your e-mail address? <Input type = text name = email SIZE = 20> <BR>
Whats your age? <Input type = text name = age SIZE = 4>
<P> <input type = SUBMIT>
</FORM>
</Blx: getProperty>
</BODY>
</HTML>
From the code above, we can find that blx: getProperty does not end with/>, but ends. This statement enters all input fields of the form into blx: getProperty so that they can be correctly modified by the flag library.
Create a connection from GetName. jsp to NextPage. jsp. You will find that bean data is automatically displayed in the input area. Now you can edit the data.