This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 60752
    
  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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
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.