Questions tagged [struts-1]

The Apache Struts web framework is a free open-source solution for creating Java web applications. The Struts framework is designed to help developers create web applications that utilize a MVC architecture.

The Apache Struts web framework is a free open-source solution for creating Java web applications. The Struts framework is designed to help developers create web applications that utilize a MVC architecture. Struts 1.x has reached End Of Life status as of 2013-04-05 (see announcement).

The framework provides three key components:

  • A "request" handler provided by the application developer that is mapped to a standard URI.
  • A "response" handler that transfers control to another resource which completes the response.
  • A tag library that helps developers create interactive form-based applications with server pages.

The Apache Struts Project offers two major versions of the Struts framework. Struts 1 is recognized as the most popular web application framework for Java. The 1.x framework is mature, well-documented, and widely supported. Struts 1 is the best choice for teams who value proven solutions to common problems.

Struts 2 was originally known as WebWork 2. After working independently for several years, the WebWork and Struts communities joined forces to create Struts 2. The 2.x framework is the best choice for teams who value elegant solutions to difficult problems.

1232 questions
-1
votes
1 answer

struts tiles 1.3 on tomcat 9 jdk 1.8 [Error] No action config found for the specified url

I have an application running struts and struts-tiles 1.3 on a JBoss 5.1 Server with 1.6 JDK without problems. once I migrated to a Tomcat 9 server with 1.8 JDK I start getting an ERROR : GRAVE: "Servlet.service()" pour la servlet [action] a lancé…
aminweb007
  • 23
  • 6
-1
votes
1 answer

ThreadLocale value getting mixed up in Servlet Filter

I am working on a messy Struts 1 application that makes use of a custom context class to store values throughout the application. Basically it is only used to store session scope variables. I guess the reason that this custom class is used is so…
secondbreakfast
  • 4,194
  • 5
  • 47
  • 101
-1
votes
1 answer

hdiv org.hdiv.filter.ValidatorFilter cannot be cast to javax.servlet.Filter

I'm trying integrate hdiv 2.0.4 with old struts 1.3.8 to maintain old system in security issues. but, when I integrated I got that - hdiv validator in web.xml cannot be cast to servlet filter. Any suggestions for this? SEVERE: Exception starting…
maman
  • 1
-1
votes
1 answer

HTTP Status 500 - An exception occurred processing JSP page

Hi i'm creating a simple form and displaying their value in another jsp page using maven struts 1.3 dependencies but i m getting the following error HTTP Status 500 - An exception occurred processing JSP page /success.jsp at line 13 type Exception…
-1
votes
1 answer

How to use a filter in a Struts1 application?

I have a Struts1 application and am unsuccessfully trying to get a filter to work in order to add headers/etc to the response after the action has completed, but am not able to get it to work. By the time the struts action is completed and control…
Eric B.
  • 23,425
  • 50
  • 169
  • 316
-1
votes
1 answer

Adding css class in Struts 1.3 Forms and other Html input fields

How to add css class in Struts 1.3 forms and Html input fields? I can't use struts 2 framework.I have to use only older version in my project.
Gokul Prabhu
  • 112
  • 1
  • 3
  • 7
-1
votes
2 answers

Not able to invoke javascript function in html:text

I am using struts 1. I have a textbox like this Its throwing an error while compiling Attribute onBlur invalid for tag text according to TLD How can I…
RockAndRoll
  • 2,247
  • 2
  • 16
  • 35
-1
votes
1 answer

Fix org.apache.commons.fileupload.Fileupload.Setsizemax Error

I am getting the following error while trying to upload a file java.lang.Nosuchmethoderror Org.apache.commons.fileupload.Fileupload.Setsizemax Does anybody have a solution regarding this?
-1
votes
1 answer

How to Submit a Struts 1.1 Form using Jquery?

The Title summarizes my question, in essence how does one submit a struts 1.x form (html:form) using jquery. The form for struts to not have an "id" attribute making this perplexing. Thank-you kindly
Sergio
  • 95
  • 9
-1
votes
1 answer

Migrating DynaActionForm to Struts2

While migrating from Struts1 to Struts2, I have encountered DynaActionForm. Please provide code snippet as example which will help convert to Struts2. Tried lot of google search but no luck!
Test
  • 91
  • 11
-1
votes
2 answers

Dropdown based on another dropdown in jsp Struts

I'm very new to Ajax. Currently I'm working on a new project. For that project one of the requirements is, populating a second dropdown based on the input from the first dropdown. I'm using Struts to do that. I don't want the page to be refreshed,…
-1
votes
1 answer

In struts-config.xml, an action has an "attribute" attribute in it. What's it do?

In our web app's struts-config.xml file, there are a bunch of s defined, and they have both a name and an attribute attribute on most of them, with the form name in both. For example:
Mar
  • 7,765
  • 9
  • 48
  • 82
-1
votes
1 answer

Post form via ajax, Struts ActionForm is empty

I'm converting a JSP to use ajax to post to the action but the ActionForm is blank when the request comes through. I am not sure what is going on as this should be working fine from what I've read. If I remove the ajax the page submits just…
Half_Duplex
  • 5,102
  • 5
  • 42
  • 58
-1
votes
1 answer

Struts 1.2 - Display and Update ArrayList Item

I want to iterate ArrayList element and Update the list element then save it. My Form Bean: MyTestCodeForm.java - it have two members id and ArrayList. String id; ArrayList listBook; getters and setters of id property getters and setters…
-1
votes
3 answers

how to populate a text box onlick of a link placed beside the text box?

I'm trying to populate a textbox onlick of a hyperlink. Following are the steps that would better explain the scenario : 1. On click of a hyperlink a new window(small) is opened which has a number that is generated from database. There is an OK…