Archive for the ‘J2EE’ Category

Page 3 of 3123

Tutorial: Creating JavaServer Faces JSF application in Eclipse

Tutorial: Creating JavaServer Faces JSF application in Eclipse
Let us see how to create a simple application using JavaServer Faces or JSF framework in Eclipse IDE. First let us see what are the tools required to create our hello world JSF application. JDK 1.5 above (download) Tomcat 5.x above or any other container (Glassfish, JBoss, Websphere, Weblogic etc) (download) Eclipse 3.2.x above (download) Sun Reference Implementation of JSF: (download). Following are the list ... Full story

Tutorial: HTTP Session handling using Servlet Filters

Tutorial: HTTP Session handling using Servlet Filters
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

Java Servlet Filter tutorial example using Eclipse & Tomcat

Java Servlet Filter tutorial example using Eclipse & Tomcat
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

Tutorial: Create JSP custom tag library

Tutorial: Create JSP custom tag library
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
Tags: , ,

Tutorial:Struts Spring framework example in Eclipse.

Tutorial:Struts Spring framework example in Eclipse.
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

Implement LDAP authentication in Tomcat & JBoss server for Java app

Implement LDAP authentication in Tomcat & JBoss server for Java app
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

Parsing RSS-XML using JSTL tag library

Parsing RSS-XML using JSTL tag library
RSS, or Really Simple Syndication, is a method of sharing and broadcasting content such as news from a website. Using XML, items such as news articles can be automatically downloaded into a News Reader or published onto another website. There are two ways of using RSS; to share your data with others or to harvest others' data for your site. First version of RSS called RDF ... Full story

Unable to access JBoss server from other machines

Recently, I was running one of the application on JBoss server. Now I was able to access it using http://localhost:8080/myapp. But I was not able to access the application if I try to use my machine name or IP address instead of localhost in JBoss server. I am using JBoss 4.2.3 version. I searched the internet and found this solution. JBoss version 4.2.0.GA always bound to the ... Full story
Tags:
Page 3 of 3123
Copyright © 2010 ViralPatel.net. All rights reserved.