JavaBeat

  • Home
  • Java
    • Java 7
    • Java 8
    • Java EE
    • Servlets
  • Spring Framework
    • Spring Tutorials
    • Spring 4 Tutorials
    • Spring Boot
  • JSF Tutorials
  • Most Popular
    • Binary Search Tree Traversal
    • Spring Batch Tutorial
    • AngularJS + Spring MVC
    • Spring Data JPA Tutorial
    • Packaging and Deploying Node.js
  • About Us
    • Join Us (JBC)
  • Privacy

What is load on startup element in web.xml file

February 21, 2013 by Krishna Srinivasan Leave a Comment

specify the order in which we want to initialize various Servlets. Like first initialize Servlet1 then Servlet2 and so on. This is accomplished by specifying a numeric value for the  <load-on-startup> tag. <load-on-startup> tag specifies that the servlet should be loaded automatically when the web application is started. The value is a single positive integer, […]

Filed Under: Java EE Tagged With: JSP, Servlets

Accessing Portlet-specific Objects in JSP Pages

April 30, 2011 by Krishna Srinivasan Leave a Comment

This article is based on Portlets in Action, to be published June 2011. I t is being reproduced here by permission from Manning Publications. Manning publishes MEAP (Manning Early Access Program,) ebooks and pbooks. MEAPs are sold exclusively through Manning.com. All print book purchases include an ebook free of charge. When mobile formats become available […]

Filed Under: Java EE Tagged With: JSP, Portlets

Dynamic Attributes in Tag File in JSP 2.0

February 26, 2009 by Krishna Srinivasan Leave a Comment

As we know that we can develop custom tag library as a simple tag file in JSP 2.0 and these tag files can accept attributes from the invoking JSP page. But one drawback of this approach is that we need to declare all the attributes in the tag file. JSP 2.0 provides a feature called […]

Filed Under: Java EE Tagged With: JSP, JSP 2.0

Variable Directive in JSP 2.0 Custom Tags

February 25, 2009 by Krishna Srinivasan Leave a Comment

This tips explains how to use the variable directive in the custom tags in JSP 2.0. There is time when JSP page needs to access the variable declared inside the Tag files. In the previous version we have to extend the tag library to declare the variables and need the special handling for those variables. […]

Filed Under: Java EE Tagged With: JSP, JSP 2.0

Custom Tags in JSP 2.0

February 25, 2009 by Krishna Srinivasan Leave a Comment

Tag Files in JSP 2.0 This tips explains about what are the advantages in the Custom Tags in JSP 2.0. It also compares it with the previous JSP versions. also read: Java EE Tutorials Servlets Interview Questions New Features in Servlets 3.0 Asynchronous Servlets in Servlets 3 Lets look into the tips for more detail. […]

Filed Under: Java EE Tagged With: JSP, JSP 2.0

Custom Tag Libraries and Tag Files in JSP 2.0

February 25, 2009 by Krishna Srinivasan Leave a Comment

With previous versions of JSP developing custom tag libraries was possible only by writing Java classes. As a result knowledge of Java was a must. JSP 2.0 introduces a new way of developing custom tag library using plain JSP. This enables JSP developers, who dont know Java, to develop custom tag libraries as Tag files. […]

Filed Under: Java EE Tagged With: JSP, JSP 2.0

Error Pages in JSP 2.0

February 24, 2009 by Krishna Srinivasan Leave a Comment

We can configure error pages in jsp and servlets to direct the control to a custom error page, showing a friendly error message to the user when an exception is thrown in the page. But tracking or logging the exception information is not very easy in JSP 1.2. also read: Java EE Tutorials Servlets Interview […]

Filed Under: Java EE Tagged With: JSP, JSP 2.0

Ternary Operator in JSP 2.0 Expression Language(EL)

February 23, 2009 by Krishna Srinivasan Leave a Comment

A very common need in a JSP page is to include a piece of template text only if a certain condition is true. With JSP 1.2 and JSTL 1.1, this is typically done using a block, but that’s a very verbose solution. also read: Java EE Tutorials Servlets Interview Questions New Features in Servlets 3.0 […]

Filed Under: Java EE Tagged With: JSP, JSP 2.0

Follow Us

  • Facebook
  • Pinterest
JavaBeat

FEATURED TUTORIALS

Servlet Life Cycle: Explanation

Servlet Life Cycle: Explanation

What is new in Java 6.0 Collections API?

The Java 6.0 Compiler API

The Java 6.0 Compiler API

Copyright © by JavaBeat · All rights reserved

This website uses cookies to ensure you get the best experience on our website. Learn more.