How can I access the same JavaBean instance from different JSP files?

John Zukowski

Assuming the JSP files are on the same server and using the same ServletContext, just use application scope for the bean component.

<jsp:useBean id="localName" class="Counter" scope="application" />
0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.