if you are using the tag <jsp:useBean id=.... /> , do you write the bean class as a normal java class or do you have to import java.bean.* and java.io.Serializable ? if so, why do you have to import java.io.Serializable?
thanks in advance
if who i am is what i have, and what i have is lost, then who am i?<br /> <br />SCJP 5.0<br />SCWCD 1.4<br />SCBCD preparing
posted 10 years ago
You can write your bean as a normal java class as long as it follows the Bean law ( Pg. 370 HFSJ )
You can consider marking your Java class as serializable in case you want your bean to get migrated along with session if an object of the bean is bound to the session