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 ...
Let us see how to create a JAR file using Java's jar command as well as using Eclipse IDE. The JAR file format is based on the popular ZIP file format. Usually these file are used for archiving and distribution the files and implementing various libraries, components and plug-ins in java applications. Compiler and JVMs (Java Virtual Machine) can understand and implement these formats for ...
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 LDAPFollowing 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 ...
Usually AJAX requests are send through GET method. This is because there are few parameters that one send while sending a request through AJAX and also it is relatively easy to create and send a GET method request. Following code is used generally to create a GET request through AJAX.function getXMLHttpRequestObject() { var xmlhttp; /*@cc_on @if (@_jscript_version >= 5) try ...
Note: If you looking for tutorial "Create Struts2 Application in Eclipse"
Click here. In this tutorial we will create a hello world Struts application in Eclipse editor. First let us see what are the tools required to create our hello world Struts application.JDK 1.5 above (
download) Tomcat 5.x above or any other container (Glassfish, JBoss, Websphere, Weblogic etc) (
download) Eclipse 3.2.x ...
Lot of time we have requirement to update two tables simultaneously. Say for example, we have two tables CUSTOMER_DETAILS and CUSTOMER_ADDRESS. While adding a row in CUSTOMER_DETAILS, few details like address is first written in CUSTOMER_ADDRESS and its reference is added in CUSTOMER_DETAILS table. Now if ADD_ID is a primary key in CUSTOMER_ADDRESS table and if it is an auto increment field than how to ...
You must have seen orkut style status update box where in the details can be modified by clicking on it. Once user click the details, details gets populated inside a textbox and an update button. Once update button is clicked, the data gets updated in database.Similar status update box is available in wordpress ...
ZIP files offer a packaging mechanism, allowing multiple files to be bundled together as one. Thus, when you need to download a group of files from the web, you can package them into one ZIP file for easier transport as a single file. The bundling can include additional information like directory hierarchy, thus preserving necessary paths for an application or series of resources once unbundled.This ...
Problem Statement: We require to achieve internationalization using Struts 1.xWe have a layout setup for our application as header footer and content and few other tiles.. There is a select box in the header JSP wherein the user is allowed to select a locale – English, or Spanish Based on the selection, the labels/data in the content tile should change to the corresponding locale. Ie., the labels in the ...