Category Archives: Struts2

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

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

Dynamic Drop Down List with Struts2 UI tag without AJAX, jQuery

In this tutorial session we will create simple application to load the drop down list options dynamically from the server side. Also we will use only struts 2 UI tag, not ajax or jquery. In our previous example we used … Continue reading

Posted in Struts2 | Tagged , , , , | 2 Comments