Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In below there is question and answer, What I need is I want comment about the a

ID: 3588570 • Letter: I

Question

In below there is question and answer, What I need is I want comment about the answer( feel free to agree or disagree with answer), and 2nd thing is give your own answer for the question(something diffrent than answer)

QUESTION:
What are some of the pros and cons of Java Expression Language? Discuss.

ANSWER:
When discussing the pros and cons of using Java Expression Language (EL), it is important to compare and contrast it with other alternatives, such as standard JSP tags. They both are relatively simple compared to Java programming in that they aren’t object-oriented in nature. The developer doesn’t have to create an instance of a class in order to access certain variables and methods. JSP tags work well for designers that have experience working with HTML and JSP tags.   Like JSP tags, EI is also relatively easy to learn and use for front-end developers that know how to use HTML and CSS. The getProperty functionality in EI is straight forward and useful while the getProperty functionality in standard JSP is limited. This is because the developer can only use it to obtain primitive types for the most part. EI developers can’t use standard JSP tags too well such as arrays, collections, and hash maps. Other advantages of EI is that it lets you access nested properties while standard JSP don’t. In general, it provides more advanced and complex functionality relative to other alternatives. Because of the many advantages, It’s no surprise why EL has become such a popular method for pulling information that was entered in order to process it and then display the results.

Explanation / Answer

Solution :-

The given answer is quite good and describes some benefits of the expression language compared to the standard jsp tags.

The EL (expression language) is a programming language independent from jsp. EL is used with jsp to embedd the java functionality to a html page. You can create your custom tags with EL. The EL is far simpler to understand than Java and looks very similar to JavaScript.

The major use of EL is to make easy process of accessing data from implicit objects that are stored as attributes of a web application. Thr EL can be used in place of scriptlet. EL is simpler and easy to understand compared to java and atandard jsp tags. To embedd the java functionality to a jsp page EL is a better alternate instead of other.

So these are some benefits of the EL. Now we discuss some drawbacks of the EL which are not mentioned in the given answer.

The EL is a better option to use with jspnto embedd java functionality to jsp pages, but it has limited functionality copared to java. It is mainly used for accessing values from collections. Therefore, it's scope is limited compare to java. It means there is not all functionality available with EL which are available in java language. So EL used for only specific tasks when need to embedd java code to jsp pages.

EL is not directly compiled into Java bytecode, so it's performance will be a little slower than direct Java code.

So these are some drawbacks of the EL language.

You can add the above discussed points to your answer while your answer is quite good and describing the benefits of the Expression language.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote