JavaBeat

  • Home
  • Java
    • Java 7
    • Java 8
    • Java EE
    • Servlets
  • Spring Framework
    • Spring Tutorials
    • Spring 4 Tutorials
    • Spring Boot
  • JSF Tutorials
  • Most Popular
    • Binary Search Tree Traversal
    • Spring Batch Tutorial
    • AngularJS + Spring MVC
    • Spring Data JPA Tutorial
    • Packaging and Deploying Node.js
  • About Us
    • Join Us (JBC)
  • Privacy

Struts 2 Action Tag Example

December 14, 2013 by Krishna Srinivasan Leave a Comment

Struts 2 action tag is helpful for executing an action and inserting the result in a particular location of the web page. There are two options with action tag, if the value for the executeResult is set to “true”, then the result is displayed to the page as it is defined in that target view. […]

Filed Under: Struts Tagged With: Struts 2 Tutorials

Difference Between FilterDispatcher and StrutsPrepareAndExecuteFilter in Struts 2

December 13, 2013 by Krishna Srinivasan Leave a Comment

If you are working on the Struts 2 applications, you would have noticed that while configuring the Struts 2 filter in your web.xml deployment descriptor, there is two different classes are used. One is org.apache.struts2.dispatcher.FilterDispatcher and another one is org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter. The simple answer is, org.apache.struts2.dispatcher.FilterDispatcher – Used in the early development of Struts 2 and […]

Filed Under: Struts Tagged With: Struts 2 Tutorials

Struts 2 Control Tags

December 13, 2013 by Krishna Srinivasan Leave a Comment

Struts 2 provides list of conditional or control tags which is very useful for controlling the flow of an application. The following are the list of important tags listed under conditional tags. If and else Iterator Merge Append Generator 1. The if and else tags This tag is useful for executing the simple if or […]

Filed Under: Struts Tagged With: Struts 2 Tutorials

Struts 2 Generator Tag Example

December 13, 2013 by Krishna Srinivasan Leave a Comment

Struts 2 generator tag takes inline array or list of values and pass to the s:iterator to loop through the list of values. 1. Create Struts 2 Action Create  action class. 2. Generator Tag Example Write JSP with generator tag to display the list of values. 3. Struts.xml configurations Write struts.xml configuration file. 4. Run […]

Filed Under: Struts Tagged With: Struts 2 Tutorials

Struts 2 Merge Tag Example

December 13, 2013 by Krishna Srinivasan Leave a Comment

Struts 2 merge tag is useful for merging the two lists into one object. This is very helpful when you have two different list of objects and then you need to merge them and use it in your JSP page. Merge tag has nested param element to take the multiple list objects in each line. […]

Filed Under: Struts Tagged With: Struts 2 Tutorials

Struts 2 Iterator Tag Example

December 13, 2013 by Krishna Srinivasan Leave a Comment

Struts 2 iterator tag is useful for iterating a value which of type java.util.Collections or java.util.Iterator. This example demonstrates with a simple iteration block which is taking the users list and displaying the list of users in the list. 1. Create Data Bean Create a UserDetails.java bean to hold the user details. 2. Create Struts […]

Filed Under: Struts Tagged With: Struts 2 Tutorials

Struts 2 If, Else Tag Example

December 13, 2013 by Krishna Srinivasan Leave a Comment

This tag is useful for executing the simple if or else condition by taking the values from a variable. It is very similar to the one used in every language. You can use single else block or the multiple else block by using the else if condition. Let’s see an example to show the use of […]

Filed Under: Struts Tagged With: Struts 2 Tutorials

Struts 2 Configuration Files Path

December 13, 2013 by Krishna Srinivasan Leave a Comment

If you are a first time developer who start working on the Struts 2 application, you would have got the below exception and no clue how to fix this problem. This error is thrown because your struts 2 application not able to read your configuration file struts.xml. In any other frameworks we keep the configuration […]

Filed Under: Struts Tagged With: Struts 2 Tutorials

Struts 2 Exception Configuration

December 13, 2013 by Krishna Srinivasan Leave a Comment

Struts 2 simplifies the way we handle the exceptions. In the earlier version of Struts application, handling exceptions needs lot of work. In Struts 2, You can configure the exception type in the configuration file for the each action mapping and redirect to the custom error page. Here I have modified our hello world example […]

Filed Under: Struts Tagged With: Struts 2 Tutorials

Struts 2 Hello World Example

December 13, 2013 by Krishna Srinivasan Leave a Comment

This tutorials explains how to create a simple struts 2 hello world example and deploy in your server. We are manually creating the required files and running the struts 2 application. Struts 2 Components Action: Create Action class to write your business logic and work as controller. Action classes are used for interaction from the […]

Filed Under: Struts Tagged With: Struts 2 Tutorials

  • « Previous Page
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 8
  • Next Page »

Follow Us

  • Facebook
  • Pinterest
JavaBeat

FEATURED TUTORIALS

Servlet Life Cycle: Explanation

Servlet Life Cycle: Explanation

What is new in Java 6.0 Collections API?

The Java 6.0 Compiler API

The Java 6.0 Compiler API

Copyright © by JavaBeat · All rights reserved

This website uses cookies to ensure you get the best experience on our website. Learn more.