dcsimg

Can I use a bean in a JSP that implements the Runnable interface or extends the Thread class?

Maxim Senin

Yes. According to JavaBeans specification, any Java clss can be a JavaBean as long as it has public scope, getter/setter methods for its properties and contains a public no-arg constructor.