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

Problems catching the root with interceptor in struts2

I have an intercetpor that checks if the user is logged in before serving the requested action. I have tried setting this as default for all action. For all addresses except one this works like a charm. When I go to my root URL…
Skadlig
  • 1,569
  • 1
  • 14
  • 16
2
votes
3 answers

Error while using Iterator in struts 2

I am having an iterator and I am trying to dynamically name the ids " …
Vinoth Kumar C M
  • 10,378
  • 28
  • 89
  • 130
2
votes
1 answer

Struts 2 Include Tag

I have two JSP files in the same folder on a java webapp. Let's call them index.jsp and myInclude.jsp. I want to include myInclude.jsp inside index.jsp. The webapp is not being served in the ROOT uri, but out of a separate webapp (such as…
David
  • 299
  • 2
  • 6
  • 16
2
votes
1 answer

Package is accessible from more than one module in JDK 11 Module system

We are making use of Zulu JDK 11 and we are facing issue The package com.sample.test is accessible from more than one module: test1.module, test2.sample. Below is the git url for sample project and screenshot for your…
Kiran
  • 167
  • 2
  • 15
2
votes
1 answer

Tests Struts2 struts.xml with simple junit

I just want a basic Junit that that will test loading the configuration file struts.xml and making sure all the classes can be found and such. I'm using the struts junit 2.2.1 plugin.
Andy
  • 8,841
  • 8
  • 45
  • 68
2
votes
0 answers

Need to update Struts 2.3.24.1 to Struts latest version i.e. 2.5.20

I have an application which is implemented in Struts 2.3.24.1, Now I need to update it in latest version of Struts 2.5.20. I upgrade the dependency and start getting errors. Error : There is no Action mapped for namespace [/] and action name…
2
votes
3 answers

Passing a value to a custom tag

I have a custom tag that I'm trying to pass a String to. It was giving me a NullPointerException. After making some edits suggested below, I am getting ${note} instead of the processed output I had intended. Can anyone help me with this? Here is…
user636859
2
votes
1 answer

Is there anything better than Tiles for Struts2?

I'm new to the Struts 2 world. I just figured out how to use the Convention plugin and I must say it's quite nice. However, all of my JSP files of course have the complete head, title, etc. I want to build a reusable template and plug in various…
cbmeeks
  • 11,248
  • 22
  • 85
  • 136
2
votes
3 answers

Struts2 How to create a table by iterating a list such that each row has a radio button?

I am trying to create a table to display some data using iterator over my list from action class. Each row has the properties of each object in the list.
Vasu
  • 4,862
  • 8
  • 42
  • 48
2
votes
2 answers

Jar conflict in Maven and Tomcat?

I'm having some trouble with jar loading. I deployed a Struts2 web application on Tomcat, and it resulted in error: SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in…
Hoàng Long
  • 10,746
  • 20
  • 75
  • 124
2
votes
3 answers

Property value in struts2

How to set propety value in I tried but it didn't work. Please help
Lohit
  • 891
  • 5
  • 14
  • 26
2
votes
1 answer

java.lang.NoSuchMethodError: org.hibernate.engine.spi.SessionFactoryImplementor.getProperties()Ljava/util/Map

Please help to resolve my problem, I am getting below error when I try to run my program on Apache Tomcat. I am using hibernate Core (5.2.9.Final) and Hibernate commons Annotations (5.0.1.Final) in struts2. Logs information are below: INFO: Server…
Amit Jha
  • 23
  • 1
  • 8
2
votes
3 answers

How to integrate google map in struts2 application

I need to integrate the google map inside my struts2 application. How can i do this ? Thanks
Anshul
  • 635
  • 2
  • 11
  • 27
2
votes
2 answers

Populate 2nd dropdown based on 1st dropdown selection using jQuery, ajax, struts2

Edit Is there any other way I can fill the 2nd drop down as per 1st drop down selection jquery ajax. Please post any link if anyone has one. I have update the second dropdown based on the first dropdown selection. I am using jQuery and Struts2. I…
changeme
  • 640
  • 2
  • 12
  • 36
2
votes
1 answer

Setting parameter variables using UrlRewrite in Struts 2

I'm using Tuckey UrlRewrite in combination with a Struts2 application. I'm trying to convert following URL: /promotions/abcdef-987 to /dopromotions/detail passing variable id as 987. My rewrite rule is as follows:
Bart Vangeneugden
  • 3,436
  • 4
  • 33
  • 52