Expression Language

Expression Language (EL):

The Expression Language (EL) streamlines the openness of information put away in the Java Bean segment, and different items like demand, session, application and so forth. There are numerous understood items, administrators and save words in EL. It is the recently included component in JSP innovation variant 2.0.

Syntax :

${ expression }

 Implicit Objects in Expression Language (EL):

Implicit Objects

Example:
index.jsp

<form action=”process.jsp”>

Enter Name:<input type=”text” name=”name” /><br/><br/>

<input type=”submit” value=”go”/>

</form>

process.jsp

Welcome, ${ param.name }

Operators in EL:

Operators in EL

 

Reserve Words in EL:

Reserve wordsMVC in JSP :

MVC remains for Model View and Controller. It is an outline design that isolates the business rationale, introduction rational and information. Controller goes about as an interface among View and Model. Controller captures all the approaching solicitations. Display speaks to the condition of the application i.e. information. It can likewise have business rationale. View speaks to the presentation i.e. UI(User Interface).

Advantage of MVC (Model 2) Architecture

  • Route Control is unified
  • The custom labels make the likelihood to reuse a similar business rationale over and over.MVC Architecture
    JSTL (JSP Standard Tag Library):
    JSTL looks like a group of tags to make easy the JSP development.
    Advantage of JSTL
    • Code reusability
    • Fast development
    • No need to use scriptlet tag 

      JSTL Tags:JSTL

      Custom Tags in JSP:

      Custom labels are client characterized labels. They dispose of the likelihood of scriptlet tag and isolates the business rationale from the JSP page. A similar business rationale can be utilized ordinarily by the utilization of custom tag.

       Advantages:

      Eliminates the need of scriptlet tag: The custom labels wipes out the need of scriptlet label which is viewed as awful programming  approach in JSP.
      Separation of business logic from JSP: The custom labels isolate the business rationale from the JSP page with the goal that it might be anything but difficult to keep up.
      Re-usability: The custom labels make the likelihood to reuse a similar business rationale over and over.

    Syntax :

    There are two ways to use the custom tag.

    <prefix:tagname attr1=value1….attrn=valuen />

    <prefix:tagname attr1=value1….attrn=valuen >

    body code

    </prefix:tagname>

    JSP Custom Tag API:Custom TagJspTag interface

    The JspTag is the root interface for every one of the interfaces and classes utilized as a part of custom tag. It is a marker interface.

    Tag interface

    The Tag interface is the sub interface of JspTag interface. It gives strategies to perform activity toward the   begin and end of the tag.Field Name with Tag Interface

    Methods of Tag interface:

    Methods of Tag Interface

    Iteration Tag interface:
    The IterationTag interface is the sub interface of the Tag interface. It gives an extra strategy to reexamine the body.

    Field of IterationTag interface :

    There is just a single field characterized in the IterationTag interface.

    public static int EVAL_BODY_AGAIN it reconsiders the body content.

    Method of Tag interface:

    it is summoned by the JSP page execution protest after the assessment of the body. In the event that this strategy returns EVAL_BODY_INCLUDE, body substance will be reexamined, on the off chance that it returns SKIP_BODY, no more body content will be assessed.

    TagSupport class :

    The TagSupport class actualizes the IterationTag interface. It goes about as the base class for new Tag Handlers. It gives some extra techniques moreover.

    Attributes in JSP Custom Tag:

    There can be characterized an excessive number of properties for any custom tag. To characterize the characteristic, you have to perform two assignments. Characterize the property in the TagHandler class with the characteristic name and characterize the setter strategy .characterize the trait component inside the label component in the TLD document.

    <m:cube number=”4″></m:cube>

Drop Us A Query

Trending Courses
  • Python and Django Online Training
  • Python is a dynamic interrupted language which is used in wide varieties of applications. It is very interactive object oriented and high-level programming language.

  • Tableau Online Training
  • Tableau is a Software company that caters interactive data visualization products that provide Business Intelligence services. The company’s Head Quarters is in Seattle, USA.

  • MicroStrategy Online Training
  • Micro Strategy is one of the few independent and publicly trading Business Intelligence software provider in the market. The firm is operational in 27 Countries around the globe.

  • PEGA (PRPC) 7.2 Certification Online Training
  • Pega Systems Inc. is a Cambridge, Massachusetts based Software Company. It is known for developing software for Customer Relationship Management (CRM) and Business process Management (BPM).

  • Workday Online Training
  • Workday specialises in providing Human Capital Management, Financial Management and payroll in online domain.It is a major web based ERP software vendor.

  • Power BI Online Training
  • Power BI is business analytics service by Microsoft. With Power BI, end users can develop reports and dashboards without depending on IT staff or Database Administrator.


100% Secure Payments. All major credit & debit cards accepted.