- Friday, January 8, 2010, 1:05
- J2EE
- 159 views
This note demonstrates how to create and deploy an MDP, and how to control it, using both Spring’s inbuilt component management mechanisms, and JMX.
Scenario
We have a number of JMS listeners in our application. Having ported our hardware to a grid of virtual machines, we want the feature to switch-on and switch-off the listeners on the VMs, and re-allocate the listeners to VMs across the grid ...
Full story
- Tuesday, December 22, 2009, 13:00
- Struts 2, Tutorial
- 3,180 views
Lot of times I have been asked by users on this site to write tutorial about Struts 2 Framework. My previous tutorial on
Creating Struts Application in Eclipse is one of the most viewed article on this site.
So lets begin Part 1 of 7-parts series tutorials on Struts 2 Framework. In these tutorials we will discuss ...
Full story
- Thursday, October 1, 2009, 17:12
- J2EE
- 292 views
Yesterday while working on one of the old web application that was created in J2EE / JSP which is using JSTL for painting pages, I encountered a wired issue. As I was using JSTL in my JSPs, I had include required jars like standard.jar and jstl.jar with proper version in classpath of my project. Still I was getting this error whenever I tried running JSP:
According ...
Full story
- Thursday, February 12, 2009, 14:12
- J2EE, Tutorial
- 15,143 views
Following small piece of code comes handy whenever you are working for a J2EE web application in JSP/Servlet/Struts/JSF or any Servlet oriented web framework.
A lot of time we have to handle session errors in such applications and redirect user to particular error page. Generally user is redirected to the login page where she can giver her credential and log in the application again.
In ...
Full story
- Thursday, January 8, 2009, 17:31
- J2EE, Tutorial
- 33,035 views
Servlet Filters are the latest components that are added in Servlet 2.3 specifications. These filters are used basically for intercepting and modifying requests and response from server. Consider a scenario where you want to check session from the every users request and if it is valid then only you want to let the user access the page. You can acheive this by checking sessions on ...
Full story
- Tuesday, December 30, 2008, 16:48
- J2EE, Tutorial
- 7,879 views
A Custom tag is a user defined JSP language element. When a JSP page containing custom tag is translated into a Servlet, the tag is converted to operations on an object called tag handler. The Web container then invokes those operations when the JSP page's servlet is executed. It speeds up web application development because of code reuse feasibility. Custom tags can access all the ...
Full story
- Tuesday, December 16, 2008, 15:57
- Featured, J2EE, Spring, Struts, Tutorial
- 16,220 views
Let us see how to add Spring support (Spring IOC) to a Struts application using Eclipse IDE. I will use the hello world struts project that we created in
this tutorial as base reference and step by step we will add Spring support to it.
In this tutorial we will use Spring IOC (Inversion Of Control) mechanism. There will be a business delegate class ...
Full story
- Thursday, December 11, 2008, 15:38
- J2EE, Java, Tutorial
- 8,977 views
In this article we will explore the ways to implementation of LDAP (Lightweight Directory Access Protocol) authentication in Tomcat as well as JBoss server.
First let us see briefly what LDAP is.
Introduction to LDAP
Following is what Wikipedia has to say about LDAP:
The Lightweight Directory Access Protocol, or LDAP is an application protocol for querying and modifying directory services running over TCP/IP.
A directory is a set of ...
Full story