I want to remove scriptlet from JSP page below.
But How I can instantiate DepartmentDTO using EL and JSTL?
thanks all
Originally posted by Bear Bibeault:
If the class has a nullary constructor, you could instantiate an instance using <jsp:useBean>. But it's much more common for object instances to be created in the page controller for the JSP.
[ May 28, 2007: Message edited by: Bear Bibeault ]
Originally posted by Anthony Karta:
- How I can call getList() using <jsp:useBean>?
- What is "page controller"? I don't use Struts.
should I implements Listener and save Department object in attribute.
Originally posted by Bear Bibeault:
I have no idea what you mean by this, but don't make things needlessly complicated.
Originally posted by Bear Bibeault:
There really isn't any concept of a "first page". Are you talking about the "welcome page" that is displayed when no specific page is specified in the URL? In modern servlet containers, that can be a servlet.