*
The moose likes Servlets and the fly likes When do includes happen? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "When do includes happen?" Watch "When do includes happen?" New topic
Author

When do includes happen?

Kavita Ghia
Ranch Hand

Joined: Oct 10, 2000
Posts: 91
Hello friends,
I would like to know exactly how does the JSP engine translate an include file and when does it do that?
Thanks in advance.
Brett Knapik
Ranch Hand

Joined: Oct 15, 2000
Posts: 255
when you mean include do you man when importing a package or including another file into the html?
------------------
I wish there was a button on my monitor to turn up the intellegince.
Theres a button called 'brightness' but it doesn't work


"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
Kavita Ghia
Ranch Hand

Joined: Oct 10, 2000
Posts: 91
How can u include another file into an html file.And once it gets included at what point of time the JSP engine processes it.
Thanks.
Tony Alicea
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3222
    
    5
"How can you include another file into an html file"
I'm going to take the liberty of saying that you meant:
"How can you include another file into a JSP file?"
There are two ways of including a file in a JSP. One (the directive) will include the textual file into the including one at the time of compilation (<%@ include file="file.txt"%> )and the other (the action) will include the output of the included JSP in the including one.
One method takes place at page compilation time (like in C's preprocessor) and the other one (the action, <jsp:include page="page.jsp"> ) includes the executed output of the included page instead.


Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: When do includes happen?
 
Similar Threads
list
fluctuation
HttpSessionBindingListener
how to bind Hibernate SessionFactory to JNDI?
KISS and Keeping An Eye On A Socket