Solved

static and dynamic include of jsp.

Posted on 2013-01-25
4
316 Views
Last Modified: 2013-02-10
I have not understood clearly difference between static and dynamic include of jsp. Which one to use where and how.
 please advise.
Any links resources, sample code, ideas highly appreciated. Thanks in advance
0
Comment
Question by:gudii9
  • 2
4 Comments
 
LVL 27

Accepted Solution

by:
rrz earned 250 total points
ID: 38820669
0
 
LVL 7

Author Comment

by:gudii9
ID: 38820943
I have gone through links. I am still not clear on what they are mentioning. For example following paragraph is not clear

One common issue with include directive (if it's used to include another JSP) is that the main JSP (which calls this directive to include another JSP) doesn't get re-compiled in the case when the included JSP changes but not the main JSP. Reason being, a JSP is re-compiled only if the contents of the JSP changes. Now in this case, the main JSP (after inclusion) remains the same. Once the include directive has been processed during the translation phase, the main JSP is unaware that part of its contents have come from another file. The entire translated file is treated as a single unit. Any changes to the main JSP will initiate the translation phase and then compilation phase again and hence the specified is included again. So, any modification in the included JSP will not get reflected unless the main JSP is also changed.
0
 
LVL 27

Expert Comment

by:rrz
ID: 38821198
Does the paragraph on "JSP Processing"  in the middle of the following page
http://oreilly.com/catalog/jserverpages2/chapter/ch03.html 
help explain to you?
0
 
LVL 16

Assisted Solution

by:Valeri
Valeri earned 250 total points
ID: 38826594
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Application launch issue with Apache Tomcat 5 44
ForLoop Example 3 48
map related example 6 48
Is Applet the way to go for my drag and drop system? 8 13
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question