jsp page application javaBean

 <Jsp: useBean> Bean create an instance identifier for identifying the id attribute is used to specify a variable, the program will use the variable name of the Bean instance reference is created, the class attribute specifies a full name of the class. When the identification is performed, the program first looks to the id attribute value of Title instance within a specified range, by way of example class attribute value type, if there is, it will pass the new instance

<Jsp: setproperty> identification is commonly used with <javaBean> identification, it is invoked by: Bean Example <jsp useBean> identifier created in setXXX () methods of the parameter assigned to the request corresponding to the Bean properties. identification name specified in a property Bean instance alternatively as "*" or corresponding attributes Bean (preferably * when the value of all the parameters in the request with the request will be assigned to eleven parameters Bean with the same name property)

<Jsp: getproperty> attribute specified with the reading from the specified value of the property in Bean (Bean to use this property must contain getXXX () methods)

You can also use

<% = Example .getXXX ()%>

 

Guess you like

Origin www.cnblogs.com/ma360359954/p/10993691.html