File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Java Beans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Java Beans" Watch "Java Beans" New topic

Java Beans

bruno martins

Joined: Oct 28, 2003
Posts: 8
Hi, i have a problem error
org.apache.jasper.JasperException: CounterBean
my code:
<%@ page import="com.bruno.CounterBean" %>
<jsp:useBean id="session_counter" class="CounterBean" scope="session" />
<jsp:useBean id="app_counter" class="CounterBean" scope="application" />
synchronized(page) {
Number of accesses within this session:
<jsp:getProperty name="session_counter" property="count" />
Total number of accesses:
<% synchronized(page) { %>
<jsp:getProperty name="app_counter" property="count" />
<% } %>
package com.bruno;
public class CounterBean {
int count;
public int getCount() {
return count;
public void increaseCount() {
[ December 09, 2003: Message edited by: Bear Bibeault ]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63542

You need to specify the fully qualified class name of the bean. E.g.:

[ December 09, 2003: Message edited by: Bear Bibeault ]

[Asking smart questions] [About Bear] [Books by Bear]
jQuery in Action, 3rd edition
subject: Java Beans
It's not a secret anymore!