Skip to main content

Questions tagged [struts]

The Apache Struts web framework is a free open-source solution for creating Java web applications.

0 votes
1 answer
32 views

java.lang.ClassNotFoundException: javax.servlet.jsp.tagext.BodyTagSupport

I have the following code in a JSP file for the tags which is included in all of my JSP files at the top: <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%> &...
Tan's user avatar
  • 1,537
1 vote
1 answer
47 views

Spring Boot 3.1 + Apache Struts 7.0.0-M8 missing javax.servlet.http.HttpServletRequest

I have here an Application that uses Spring Boot 3.1 and Apache Struts 7.0.0-M8. I just can't get them to run as the Java classloader persistently tries to load the javax. HttpServletRequest instead ...
Readone Mohamed's user avatar
0 votes
1 answer
46 views

JSP page field Id problem after Struts upgrade from 2.5.26 to 2.5.30

After we upgraded Struts from 2.5.26 to 2.5.30 by replacing Struts core jar file, it looks like our JSP page field id generation performed by Struts is different than previous Struts. For example, we ...
HACPS's user avatar
  • 1
0 votes
0 answers
24 views

Separate Content-Disposition from HTTPServlet Response Writer

I asked the question earlier about Content-Disposition breaking JSP code. Although I didn't find an optimal solution, I did come to the conclusion of using a popup window to download the file. This ...
Anirudh Giran's user avatar
0 votes
1 answer
28 views

struts1 issue for java.lang.NoSuchMethodError: org.apache.struts.action.ActionForward.setContextRelative(Z)V

I am working on legacy application which still uses the struts basic jars and unfortunately we cant replace these jar though we can upgrade the jar versions. I am facing below error on JSP load... ...
Mangesh Kh's user avatar
-1 votes
1 answer
90 views

Migration from Struts 2.3.37 to Struts 2.5.33

Hi I want to migrate to struts 2.5.33 from struts 2.3.37 . Followed this page (https://cwiki.apache.org/confluence/display/WW/Struts+2.3+to+2.5+migration) and updated my project. Here is my struts ...
Office laptop's user avatar
0 votes
0 answers
44 views

Struts 6.3 <s:script> tag removes id attribute

We are using Struts version 6.3.0.2. A third party JavaScript that we are using, needs an id property to be set in the script declaration. The following code is used: <s:script async="true&...
Amit Walvekar's user avatar
1 vote
0 answers
72 views

window.opener.document.getElementById(<%=param%>).innerHTML= myvalue not working post struts 6.3.0.2 migration

While Migration struts 2 to 6.3.0.2 version the add document function is called with an onclick event.The window opens fine, but the element's innerHTML doesn't get added to parent page while clicking ...
Akash's user avatar
  • 19
1 vote
1 answer
76 views

SessionAware this.getSession().get("key") always giving null struts2

Using struts2, used SessionAware to keep userObject in session, I find out during the MainAction execution userObject setting properly in session, but while getting userObject in a differnt flow in ...
Bug's user avatar
  • 363
1 vote
1 answer
74 views

cancel button without any action method throws and exception

I am having an issue with the Struts (1.x) code that I'm currently looking at (which is 12 years old) when a cancel button is clicked. Here's the java code with action methods: public class ...
Tan's user avatar
  • 1,537
0 votes
0 answers
185 views

Struts 6.x migration issues with sitemesh

I am trying to migrate a working project from Struts-core 2.5.30 to 6.3.0.2 running on a JBoss EAP 7.4. Meanwhile i am using struts2-convention-plugin, struts2-oval-plugin, struts2-json-plugin, ...
Stephan's user avatar
  • 736
0 votes
1 answer
47 views

How to call an action method from JSP and pass a parameter in Struts 2

I have the following code in JSP that would call an action method and then pass a parameter value. <s:param name="lastname" value="outputData.Lastname"></s:param> <...
galdz's user avatar
  • 1
-1 votes
1 answer
345 views

Upgrading from Struts 2.5 to Struts 6 issue

This Ajax call is not working when upgraded to Struts 6.3.0.2. I have included JQuery plugin in pom.xml. I think the problem is sj:div. Any help on this is so much appreciated <%@ page contentType=&...
Kiran's user avatar
  • 366
0 votes
0 answers
74 views

How to set base-uri for the Struts 2 CSP Interceptor?

Version 6 of Struts introduced the Content Security Policy interceptor which is in the default stack. It has a nonce-based attribute which allows putting scripts and links via the Struts <s:script&...
Erica Kane's user avatar
  • 3,332
1 vote
1 answer
3k views

Struts 2 to Struts 6 Migration

Struts 2.5.34 to Struts 6.3 Migration We've our application currently in struts 2.5.3 version. As Apache announced EOL for this, we are upgrading to Struts 6 (6.3 to be exact) using official ...
Suleman Tanveer's user avatar

15 30 50 per page
1
2 3 4 5
241