Monthly Archive: September 2013

JSP UseBean Tag – Java Server Pages

The jsp useBean action tag is used to locate or instantiate a bean class. If bean object of the Bean class is already created, it doesn’t create the bean depending on the scope. But if …

JSP Include Tag Example

JSP Include tag is used to include another resource in current JSP. Another resource can be either static or dynamic file. General syntex of JSP Include Tag look like this: Syntex: <jsp:include page="xyz" flush="true"/> Example: …

JSP Forward Vs Redirect

JSP Forward Vs Redirect: JSP Forward is faster than Redirect. Forward    Control can be forward to resources available within the server from where the call is made. This transfer of control is done by …

JSP Redirect Example

JSP Redirect: In JSP Redirect URL is changed and it is slower than JSP Forward. Page redirection is generally used when a document moves to a new location and we need to send the client …

JSP Forward Tag Example

Forward tag in JSP forwards request to another source. Another source can be anything like HTML file, Servlet or anothe JSP file. The forward action terminates the action of the current page and forwards the …

JSP include Directive

Include Directive in JSP is an instruction from JSP to JSP Engine about including static file at Translation Time. The include directive is used to includes a file during the translation phase. This directive tells …

Taglib Directive in JSP

The JavaServer Pages API allows you to define custom JSP tags that look like HTML or XML tags and a tag library is a set of user-defined tags that implement custom behavior. The taglib directive …