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
0 answers

Applying CSS to Struts in a JSP page

I'm trying to add css to my website but It just load half of the page and stop. Anyone have an idea about this problem? Thank you so much. It stopped loading right before the confirm textfield, the whole page was loaded correctly. Sorry if the code…
user8255190
2
votes
2 answers

Tomcat is opening too many jar files? Any Fix

Recently we deployed one struts application into production, after sometime if we try to find out the list of jar files opened, it showing two many jar files opened can anybody tell me why this happening? lsof | grep struts java 9762 …
Sandeep Manne
  • 6,030
  • 5
  • 39
  • 55
2
votes
1 answer

Struts2 + WAS 6.1 + Java EE

This "struts.xml":
SmoothCriminel
  • 367
  • 1
  • 7
  • 17
2
votes
2 answers

Why I can't run struts2.5.13 in jdk9 win10

I followed the official tutorial,http://struts.apache.org/getting-started/how-to-create-a-struts2-web-application.html. But always throw exception when i run webapp.I tried many times but I really don't know how to reslove it. Here is…
Smith Cruise
  • 404
  • 1
  • 4
  • 19
2
votes
6 answers

java.lang.ClassNotFoundException: org.springframework.beans.factory.access.BeanFactoryReference

After a long search and no answer to my case, here I am. Trying to deploy a "Struts 2 + Maven + Spring" WAR project into Wildfly 11, using Eclipse Oxigen's default to all. The stack is as it follows: 15:04:27,325 INFO …
JokerPW
  • 19
  • 1
  • 1
  • 4
2
votes
1 answer

How to send data from a JSP page to Action class?

I have two action classes,namely loginAction and EditUserAction class.The Login action class contains an arraylist of objects which is iterated in the JSP page,namely View User Page. This is me LoginAction.java { package posidex.Demo.UAM; import…
2
votes
1 answer

Struts 2.5 ParameterAware and HttpParametersAware

We are using struts 2.3.xx after upgrade to struts 2.5.12 we found that the ParameterAware is deprecated and we must use HttpParametersAware. Problem There is an action class which extends ParameterAware and change some parameters before action (It…
Alireza Fattahi
  • 42,517
  • 14
  • 123
  • 173
2
votes
1 answer

Struts 2.5 Unable to find taglib [s] for URI: [/struts-tags]

Trying to migrate Struts 2.1 5o 2.5 and Tomcat 6 to Tomcat 8. Struts tiles plug in 2.1 to 2.5. once deployed into Tomcat 8 JSP is not displaying and getting this error. **Type Exception Report Message ServletException including path…
2
votes
1 answer

Spring3 integration with Struts2

Trying to integrate Spring3.x with struts2-2.2.1 and have placed all the required Spring 3.x files in the…
Umesh Awasthi
  • 23,407
  • 37
  • 132
  • 204
2
votes
4 answers

Struts 2: return to calling page

I'm using Struts 2. I'd like to return from an Action to the page which invoked it. Say I'm in page x.jsp, I invoke Visual action to change CSS preferences in the session; I want to return to x.jsp rather than to a fixed page (i.e. home.jsp) Here's…
Manrico Corazzi
  • 11,299
  • 10
  • 48
  • 62
2
votes
1 answer

How to get data when using ES6 fetch in Struts2?

Action code: public class ContentAction extends ActionSupport { private String menuName; public String getMenuName() { return menuName; } public void setMenuName(String menuName) { this.menuName = menuName; } } js code: …
findsky
  • 21
  • 2
2
votes
2 answers

Strust 2.15 How to override TextProviderSupport to customize resource bundel mesages

In struts 2.3 , to override the TextProvider we used below Set bean in struts.xml: And make CustomTextProvider public…
Alireza Fattahi
  • 42,517
  • 14
  • 123
  • 173
2
votes
2 answers

Migrate from Struts 2.3.33 to Struts 2.5.12 LocalizedTextUtil is removed

We tried to migrate from Struts 2.33 to Struts 2.5.12. We used LocalizedTextUtil in our application directly. I found that the LocalizedTextUtil is removed from com.opensymphony.xwork2.util.LocalizedTextUtil. I tried to search but could not find…
Alireza Fattahi
  • 42,517
  • 14
  • 123
  • 173
2
votes
1 answer

Changing ParameterAware to HttpParametersAware

I'm upgrading my project from Struts 2.3.1 to 2.5.12. Since ParametersAware is deprecated in 2.5.12. I want to change ParametersAware to HttpParametersAware. But setParameter() method is entirely different in both. setParameters(HttpParameters…
Dhruv Singh
  • 2,185
  • 2
  • 11
  • 17
2
votes
2 answers

Can I use Struts2 validators from an action?

The problem is that I have a dynamic form. I build it according with some data. I'd like to use validators method form within the validate() method in the action to avoid rewriting that code. I tryed to write something like (new…
s.susini
  • 601
  • 1
  • 9
  • 18
1 2 3
99
100