Where do you see that you can create code like the following?
First, you really don't want to be doing any
Java programming in the JSP page. The JSP page should be used just for display of information. The application processing should be done in a
servlet.
Second, If you want to import, you can use the import attribute of the page directive, as in:
But please see the first point above.