Advertisment

Accessing bean components from JSP

author-image
CIOL Bureau
Updated On
New Update

When you add a bean to a JSP, you can either create a new bean or use an existing one. The JSP engine determines whether it needs to create a new bean for you based on the bean's id. While adding a bean to a page, you must at least give the bean an id (which is just a name) and the bean's class. The JSP engine first searches for an existing bean with the same id. If it doesn't find an existing bean, the JSP engine creates a new instance of the class you specified.

Click here for more...!

tech-news