Monthly Archives: May 2014

Struts2 Tutorial Part 5 – Namespaces

In this session we will discuss about Struts2 namespaces.Struts2 namespaces are the Namespaces of the URL accessed. For example if a user types types a URL  http://www.learnerandtutor.com/struts2/actions/method.action  in that  /struts2/action  is namespace and  method.action  is the action name. While naming a namespace we … Continue reading

Posted in Struts2 | Tagged , | 1 Comment

Struts2 Tutorial Part 4 – Packages

In this tutorial session we will discuss about struts 2 packages.Struts 2 packages are like java packages where actions can be grouped together. See a sample package below.

We can provide four parameters with package declaration. name        –        Name … Continue reading

Posted in Struts2 | Tagged , | Leave a comment

Struts2 Tutorial Part 3 – Actions 2

In this tutorial session we will create a simple struts 2 application to understand the complete flow of an action. If you want to know the clear picture about Struts2 action see our action post 1 here. If you want … Continue reading

Posted in Struts2 | Tagged , , | Leave a comment

How to make apache server listen on particular port ?

Apache can be made to listen to a particular port/ip address using Listen directive. Syntax : Listen [IP_Address:]Port Examples : Listen 0.0.0.0:80 Listen 80 Listen 127.0.0.1:80 Listen 191.20.20.21:8000 Listen directive tells the server to listen for http request on the … Continue reading

Posted in Apache | Tagged , , | Leave a comment

Struts2 Tutorial Part 3 – Actions 1

In this tutorial session we will see the important key aspects of Struts2 Actions. If you want to get clear idea over struts 2 from the beginning please refer the below posts. Struts2 Introduction Struts2 HelloWorld Application In nutshell, Struts2 … Continue reading

Posted in Struts2 | Tagged , | Leave a comment

Custom URL in Struts2 for each User

In this tutorial we will see how to assign custom URL for each user logged in Struts2. For example like ‘www.gmail.com/rajesh’  for user rajesh and ‘www.gmail.com/kumar’  for user kumar. I assume that you already have a basic knowledge over struts … Continue reading

Posted in Struts2 | Tagged | 1 Comment