For the jsp: Use <jsp useBean> of

JavaBeans are java in a common class. The original design for the GUI java by dragging components can create a Button, which requires Button class has a no-argument constructor method for reflecting created. In order to facilitate adjustment of the background color Button, higher width attribute requires a unified set and get property setting properties, i.e. specification getXxx () and setXxx (). This allows obtaining the reflection properties of the Button, then set by a corresponding get and set methods. And after completion of the GUI design, we need to be able to open the original design in the case of restarting the IDE, so it needs to be able to live serialization. For security, we need to private property. Button to be able to click on an event occurs, it is also able to bind events. Properties, methods, events, so that became the first generation of JavaBean, as a component exists, to facilitate reuse. By calling the different components can be quickly assembled a new product. Of course, this is a visual JavaBean, Benpian not talking about another type of visual JavaBean in jsp in. Jsp in the JavaBean, have the following requirements, and to distinguish between different visualization, and does not require serialized JavaBean of events.

1, is a public class

2, a non-default constructor parameters

3, through a series of set property getter or setter methods

 

Guess you like

Origin www.cnblogs.com/ant-xu/p/11349918.html
jsp