look- said:
I have been digging around trying to find out how you specify the
package for JSP code. I can't seem to find any tag. You would think
there would be one since Servlets come in packages. Have I just
overlooked it or do they all live in the default package?
You can do that if you precompile to a servlet and then add it to the
servlet. The point of JSP is to make such things as packages
transparent, so few users will want to do such a thing anyway.
I believe the server (weblogic, tomcat, etc) usually makes a package for
you - it is NOT the default package, IIUC.
There IS the "extends" attribute of the page directive, but it is
recommended to use it with 'extreme caution'.
----------------------------
<%@page extends="package.class" %>
This indicates the superclass of servlet that will be generated. Use
this with extreme caution, since the server may be using a custom
superclass already.
----------------------------
--
--
~kaeli~
I can't sleep.
The clowns might eat me.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace