Archive for the ‘Learning Center’ category

Struts Tutorial – Eclipse Server Setup Video

August 23rd, 2008

This video helps you configure your server » Read more: Struts Tutorial – Eclipse Server Setup Video

Struts Tutorial – How to setup a workspace For Struts

August 23rd, 2008

Create a workspace with the following folder structure .
FolderStructure.JPG

(Click on the image to see enlarged image.

The image also lists the Jars needed to run struts)

Struts Tutorial – Sample Action Class

August 23rd, 2008

package com;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

» Read more: Struts Tutorial – Sample Action Class

Struts Tutorial – Sample JSP

August 23rd, 2008

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN”>
<html>
<head>

</head>

<body>
<p>This is my first struts example </p>
</body>
</html>

Struts Tutorial – Sample struts-config.xml

August 23rd, 2008

<?xml version=”1.0″ encoding=”ISO-8859-1″ ?>

<!DOCTYPE struts-config PUBLIC
“-//Apache Software Foundation//DTD Struts Configuration 1.2//EN”
“http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd”>

<struts-config>

» Read more: Struts Tutorial – Sample struts-config.xml

Struts Tutorial – Sample Web.xml

August 23rd, 2008

Copy the contents below and save it in web.xml

<?xml version=”1.0″ encoding=”UTF-8″?>
<web-app id=”WebApp_ID” version=”2.4″
xmlns=”http://java.sun.com/xml/ns/j2ee”
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”
xsi:schemaLocation=”http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd”>

» Read more: Struts Tutorial – Sample Web.xml

Struts Tutorial

August 23rd, 2008

What this tutorial will do is help you get started with a simple example of forwarding a request to a jsp.This is a practical tutorial so lets gets started .

1. Make sure you have an Application Server Installed on your system . For this demo I am using Tomcat 5.5.

2. Download Eclipse or any other IDE (This step is optional and would help in case you would like to follow the Video tutorial of Struts which would be posted in a few days. ). I am using Eclipse.

3. Sample Web.xml

4.Sample struts-config.xml

5. Sample Java Class (Action Class)

6. How to Configure your Server – Video

In case you have any other queries , please feel free to leave a comment and we would love to help you out .

How to insert subtitles in a movie in seconds

August 15th, 2008

Often we see some movies having the dialogues printed at the bottom of the movie .Did you know that you could also watch your favorite videos with Subtitles, that too within seconds . Here’s how you can do it .

You need to download VobSub and install it in your system .

» Read more: How to insert subtitles in a movie in seconds

Best website to download movie subtitles

August 15th, 2008

Subtitles are easily available online which can be plugged into your movies file. This way you can hear and see the dialogs of the movie. Here are some of my favorite sites which can be used to download a movie subtitle .

» Read more: Best website to download movie subtitles

iBatis Tutorial Part 2 – SQLMapConfig.xml Basics

August 13th, 2008

This is where you need to provide all configurations for iBatis. Create an XML file with name SqlMapConfig.xml » Read more: iBatis Tutorial Part 2 – SQLMapConfig.xml Basics