Meaningless Drivel is fun!*
The moose likes Cattle Drive and the fly likes Java package statement for JSP? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "Java package statement for JSP?" Watch "Java package statement for JSP?" New topic
Author

Java package statement for JSP?

Richard Broersma
Ranch Hand

Joined: Apr 28, 2009
Posts: 63

Since JSP files will eventually be translated to .java files which eventually will be compiled into java classes, it it possible to declare a JSP as part of a development package.


Basically, does JSP have an equivalent to the java "package" statement?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60782
    
  65

No. And where the JSP ends up is dependent upon the container.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Richard Broersma
Ranch Hand

Joined: Apr 28, 2009
Posts: 63

Okay, that make sense. But now I'm confused about one aspect of the Cattle-Drive Assignment Servlets-4a. I'll open up a new thread for that question.
 
jQuery in Action, 2nd edition
 
subject: Java package statement for JSP?
 
Similar Threads
Where to place the Bean package in J2EE server
JSPs and package statements
how to use java class in jsp or servlet
Retro import
Unable to import the java file into the JSP file.