U
Ulf Meinhardt
Ok on a Java Server Page I can use a function in two ways:
Either I declare
<jsp:useBean id="myBean" scope="session" class="mypack.mysubpack.MyClass" />
or I declare
<%@ page import = "mypack.mysubpack.MyClass" %>
In each case I can call a function later by coding
MyClass.myFunction();
So what is the difference between the two variantes?
Why are Beans invented if we don't need them because we have the import statement ?
Ulf
Either I declare
<jsp:useBean id="myBean" scope="session" class="mypack.mysubpack.MyClass" />
or I declare
<%@ page import = "mypack.mysubpack.MyClass" %>
In each case I can call a function later by coding
MyClass.myFunction();
So what is the difference between the two variantes?
Why are Beans invented if we don't need them because we have the import statement ?
Ulf