Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I have question and 2 answer for this question below that, give comment about these two answer and Feel free to agree or disagree with

I have question and 2 answer for this question below that, give comment about these two answer and Feel free to agree or disagree with it (in 2 or 3 short paragaraph) and for each answer write seprated comment (NOT TOGHETHER) Be detailed in your postings. Please ensure that your postings are civil and constructive

Question: Which JSP directive do you prefer (compile time or run time) and why? Discuss.

Answer1: The decision to opt between a compile time directive versus a run time directive depends on the nature of the application in discussion.

A compile time directive is most likely the option of choice when the goal is to implement an application for which the code being compiled is unlikely to be changed often. This is the case because, since the code doesnt change often, it wont be needed to re-compiled the coded for every request the server receives related to it. This maneuver saves time during run time allowing the server to be quicker in responding to a client request.

On the other hand, a run time directive is most likely to be the option of choice when the goal is to implement an application for which the code being compiled is likely to be changed often. This is the case because, since the code changes often, it is preferable to recompile at run time assuring that the latest version of the code is being used to fulfill the request.

Answer2:

I prefer the compile time directive for most cases as there is a higher risk of a run-time exception when using the run-time directive. In addition, the run-time directive adds more overhead as the servlet will make a run-time call to get the included file each time the page is requested. Obviously, it boils down to requirements. In general, if the included files won't be changing then the compile time directive is more efficient.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Database Experts Guide To Database 2

Authors: Bruce L. Larson

1st Edition

0070232679, 978-0070232679

More Books

Students also viewed these Databases questions

Question

1. Discuss the four components of language.

Answered: 1 week ago