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

Struts 1.0 migration to Spring boot

I have tried to migrate from struts 1 to spring boot. Is it possible migrate with set of steps. Do we have any tools to migrate?
2
votes
2 answers

Is Migration from Struts to Spring wholesale change?

I have a Struts 1 application and I am exploring different options for upgrading the system. One option is Spring MVC or Spring Boot. If I were to choose either framework to migrate the application to, can I do so transitionally (piece by piece) or…
user2623044
  • 87
  • 1
  • 9
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
0 answers

How to open a pdf and respective print dialogbox on a single action (button click) without showing pdf on web screen?

I need to print a pdf on my action. On a single button click I want to generate a pdf without showing it on web screen and simultaneously pop up print dialogue box to print that pdf. Currently, this scenario is perfectly working on my local…
2
votes
0 answers

parseRequest() in Filter returns ActionForm as blank

I've added a filter in my Struts 1.2 application which is triggered before the request is taken to the ActionForm. I've got a multipart/form-data in my jsp so I use apache.commons.FileUpload to parse the request and get my specific request parameter…
Asmat K
  • 121
  • 1
  • 10
2
votes
0 answers

Detecting the annotations of an Action inside of a servlet filter

I would like to use a servlet filter of type javax.servlet.Filter to check if the calling Action class contains a particular annotation. So something like @CustomAnnotation public class MyAction extends Action { // action stuff } public class…
secondbreakfast
  • 4,194
  • 5
  • 47
  • 101
2
votes
1 answer

HTTP method POST is not supported by this URL on JBOSS

We have to setup MS azure active directory authentication for one of our legacy application which is on Struts-1, will run on JBOSS EAP-7. The basic setup is like this. We have a welcome file called index.html as below. …
pranav
  • 421
  • 1
  • 11
  • 27
2
votes
1 answer

How to call struts action from plain javascript file

This query is related to struts 1.3. Let's say I have one action called 'getName.do' which is mapped to 'GetName.java' action class. In the dmexecute method of this action class, I am setting one result say String result = Hello;. My query is how…
Deepak Agrawal
  • 290
  • 1
  • 5
  • 14
2
votes
0 answers

Spring boot for legacy Struts application

I have come across couple of discussions here about Spring Boot setup for Struts application but did not get a valid yes or no. I know we can migrate the struts to spring and then use it with Spring boot but considering the timelines and application…
MKP
  • 67
  • 5
2
votes
2 answers

How can I do a lot of WS calls in separate threads and increment a single result variable?

Thread beginner here. I need in a Struts action to retrieve some data by calling a webservice many times with a different request each time, and wait for every request to be completed so I can display the result. So basically I'm doing it like this…
Rob
  • 4,123
  • 3
  • 33
  • 53
2
votes
3 answers

How to assign bean value to html:text in jsp

What are the other…
Code Hungry
  • 3,930
  • 22
  • 67
  • 95
2
votes
1 answer

BeanUtils.populate throwing NullPointerException in struts after migrating to Tomcat7

I am migrating a Struts 1 application from Tomcat 6 to Tomcat 7. most of the application is working fine but at a point while a form submit the following error is occurring. javax.servlet.ServletException: BeanUtils.populate …
Deepak Mani
  • 125
  • 11
2
votes
1 answer

Form Based Authentication with Tomcat

I need to do form based authentication in Struts 1.3.10 + Tomcat As per my understanding once login credentials are submitted, container would cross-check credentials with tomcat-users.xml and based on that forward to success page or error…
needreebas
  • 71
  • 2
  • 9
2
votes
0 answers

how to pass value from child page to parent page in showmodelgialoge with java script in to struts 1.2

when click boo button, open showmodeldialoge and check some row in showmodeldialoge when press foo button can not get value from child page and pass to parent page parent page code: function explain() { //newwin =…
roland duff
  • 91
  • 1
  • 1
  • 7
2
votes
1 answer

Why does using spring 3.0 and struts yield: HTTP Status 404 - Servlet action is not available

Using Spring and Struts together gives no error message in the console, but only a: HTTP Status 404 - Servlet action is not available in the Browser. The logs give no clue whatsoever.
hansfbaier
  • 611
  • 5
  • 13