I have a class which would create a bean and the bean has few get and set methods(for example setId, and getId, now im including this java file in a jsp page, now my question is how to forward the values returned by the bean to the jsp file ?
Kindly help.
This should be something you have in your servlet:
=======================================
In your jsp you could use EL:
=======================================
Or the older style with use:Bean:
Now you can access the properties of the bean:
or:
=======================================
Normally it is very rare that the second part is used. Most people use EL these days. But i just included it, to cover everything