Questions tagged [struts2]

Apache Struts 2 is an extensible framework based on servlets and implements model–view–controller (MVC) pattern in its architecture for creating enterprise-ready Java web applications.

Apache Struts 2 is an extensible framework based on servlets and implements (MVC) pattern in its architecture for creating enterprise-ready Java web applications. The framework is designed to streamline the full development cycle, from building, to deploying, to maintaining applications over time.

It uses and extends the Java Servlet API to encourage developers to adopt a model–view–controller (MVC) architecture.

Apache Struts 2 was originally known as WebWork 2. After working independently for several years, the WebWork and Struts communities joined forces to create Struts2. This new version of Struts is simpler to use and closer to how Struts was always meant to be.

Features of Struts2

  • Simple POJO-based actions
  • Simplified testability
  • Thread safe AJAX support
  • Template support
  • Support for different result types
  • Easy to extend with plugins


References

Related tags :

11368 questions
2
votes
1 answer

Disbale autocompletion for s:password and s:textfield in Struts2

Currently we are migrating our Struts1 application to Struts2. While changing JSP tags to Struts2, we have in Struts1 for html:text there is attribute autocomplete=\"off" Which disable auto fill for text box. But when I am trying to add same for…
Aniket
  • 2,204
  • 5
  • 34
  • 51
2
votes
1 answer

Why multiple packages are not working in Struts 2?

This is my struts.xml:
Balaji_V
  • 63
  • 6
2
votes
1 answer

Why URL rewriting is not working in Struts 2

I have configured Tuckey URL Rewriting. I have included dependency in pom.xml: org.tuckey urlrewritefilter 4.0.4
xrcwrn
  • 5,339
  • 17
  • 68
  • 129
2
votes
1 answer

404 happen when using redirect result type in Struts2 (to redirect from one jsp to another)

I am a very beginner of Struts2 and is following the tutorial provide by tutorialspoint. Currently I am testing the code provided: Struts 2 - Redirect Action. However, when I click the "Say Hello" button, I get 404 error. There are two question I…
Tel lui
  • 139
  • 1
  • 2
  • 13
2
votes
1 answer

struts2 error com.opensymphony.xwork2.util.finder.DefaultClassFinder

I am using struts2 for a project. Users can request to download files from a web page and this request will be processed on background. In order to make it work, I have to create a dispatcher which needs to pass in a servletContext object.…
user3369592
  • 1,367
  • 5
  • 21
  • 43
2
votes
2 answers

How to retain the dynamically generated form fields when the page reloads in struts2?

I am developing a web page in struts2,where the page will be having a default row of some input fields along with "add","delete" and "submit" button.When user click on "add" button a new row of input fields should be generated and when clicked on…
user591714
  • 61
  • 1
  • 5
2
votes
1 answer

NoSuchMethodError for JSONWriter.setDateFormatter after upgrade Struts from 2.3.7 to 2.3.33

I upgraded Struts from 2.3.7 to 2.3.33 (using Maven). While with version 2.3.7 my web application was working without any issues, after the upgrade to 2.3.33, I receive the following exception when trying to access a web page that contains an Ajax…
assuna
  • 135
  • 1
  • 1
  • 8
2
votes
1 answer

Get/set multiple struts2 checkboxes to/from list

I´m currently developing a Struts2 app where a user will make one of three choices, and based on the choice a number of different predefined checkboxes will be presented. Some of the checkboxes will appear regardless of the choice made, while others…
Daniel
  • 2,050
  • 7
  • 31
  • 55
2
votes
2 answers

Map a list of strings to an ArrayList defined in the action class - Struts2

www.abcd.com/user/getuserstats.htm?userId=123123 In this api, the userId gets set to a field named userId in the Action class mapped to this action. Now,for this www.abcd.com/user/getuserstats.htm?listOfUsers=123123,456456,789789,42568,58963 I…
Aquarius
  • 421
  • 5
  • 11
2
votes
0 answers

Why does the @InterceptorRef not work in List upload Files

When I use a own @InterceptorRef Annotation for my List then the List is empty. I'm confused because the Default Interceptor works and then the list has for example the two selected Pictures. As a precaution, I only tried it with the first…
user9093464
2
votes
1 answer

struts2 default interceptor stack configuration

I want to configure a parameter for the exception interceptor to log exceptions. So I created a package in struts.xml and copied the default-stack from struts-default.xml. However it doesn't log exceptions and seems to still use the…
user1
  • 21
  • 1
  • 2
2
votes
6 answers

Displaytag alternatives

I'm building an application using Struts 2 + Spring 3 + Hibernate 3. I was wondering if any of you knows of any alternative to the "displaytag" library to draw and manage tables. Not that I dislike it so much, but I read this comment and made me…
Pere Villega
  • 16,429
  • 5
  • 63
  • 100
2
votes
0 answers

Assigning a form and params to struts 2 action in s:a tag

I am currently working on a project of migrating an application in struts 1 to struts 2. I have few problems which I couldn't find the solution yet. 1.In struts 1 we can assign a form to each action in strus-config XML. But in struts 2 I don't see…
Siva591
  • 21
  • 2
2
votes
3 answers

Stripes for Java Web Dev, is it worth learning ? Is it easier ? how it compared to Struts?

I am tired of Java web, and started to learn Ruby on Rails because of that, but I just found this Framework and it looks promessing... But I am not in the mood to study more Java, so I would like to know if this one is worth my time ( that would…
Cristiano Fontes
  • 4,920
  • 6
  • 43
  • 76
2
votes
1 answer

Is in struts1 equals to in Struts 2

I am trying to migrate Struts 1 tags to Struts 2. Is there any cheat sheet available to do it?(I don't see any for migrating tags.) Need to know the equivalent tags in struts2 Especially : in struts1 equals to in struts2…
rolling stone
  • 543
  • 1
  • 8
  • 26
1 2 3
99
100