Questions tagged [struts1]

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.

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 offered two major versions of the Struts framework. Struts 1 has reached end of life, and Struts 2 is still under active development. Struts 1 was extremely popular in it's time, and has had significant influence on more modern frameworks such as Struts 2 and SpringMVC.

Struts 1 had its last release in December 2008.

Official EOL announcement for Struts1: https://struts.apache.org/struts1eol-announcement.html

178 questions
2
votes
3 answers

Exception creating bean of class

I'm a newbie to struts, have to learn them for work, im using struts 1.3 and I'm trying to make a simple age check app, it doesnt have any business logic as of yet I simply want it to forward to the correct pages I'll figure out the rest later,but…
DerekReilly1990
  • 49
  • 2
  • 10
2
votes
2 answers

Security: implementing a solution against CSRF attacks in struts 1

I need to implement a solution to prevent CSRF attacks in an application based on struts 1 framework. On the web, people suggest these kind of solutions: Struts saveToken(request) and isTokenValid(request, true) Libraries such as HDIV and OWASP…
kkung
  • 715
  • 4
  • 10
  • 18
2
votes
0 answers

setFile method not called using FormFile[] while uploading multiple documents in Struts 1 and Tomcat 8

We are facing issues while using the following snippet with struts 1 and Tomcat 8 but in struts 1 with Tomcat 6 it's working fine. ActionForm code: public class FileUploadForm extends ActionForm private FormFile file; public void setFile(int…
sji
  • 21
  • 1
2
votes
1 answer

Upgrading from struts1.0 to struts2.3.16.1

We have a running JSP project using Struts 1.0. Its a pretty big project. We want to upgrade the project in Struts 2.3.16.1. As I am new in struts framework I am not sure who much changes will be needed for this upgrade. Will it be a good idea to…
2
votes
3 answers

How to create new excel document in java

Here I am using poi-jar to export data from database to excel it working fine . But here I want change instead of creating manual path. I wanted make that as to download automatically with out creating any manual path like this: OutputStream file =…
user2930535
  • 25
  • 1
  • 1
  • 7
2
votes
1 answer

with optgroup in Struts2

I am working on a task of migrating existing Struts1 application to Struts2. I am stuck in the problem. Within an I need to categories the options with . The following code would do this in Struts1. How can I achieve this with…
Kashif Nazar
  • 20,775
  • 5
  • 29
  • 46
2
votes
1 answer

JSTL fmt not working

Below is my codes, everything works fine but the fmt not. web.xml /WEB-INF/tags/jstl-fmt.tld /WEB-INF/tags/fmt.tld
gjman2
  • 912
  • 17
  • 28
2
votes
4 answers

Struts 1 or Struts 2 . Which one is advisable for web application development?

I am little bit confused to choose Struts 1 or Struts 2 for my new web application development assignment. Could any one suggest me which framework should I use for development from architecture point of view? What are the points I should take care…
Amit
  • 91
  • 11
2
votes
3 answers

How to avoid duplicate when a user click the “refresh” button of his browser?

My action is inserting data from form into the database. Now my problem is every time, user hits "refresh" button of browser, the action class is called with existing data and fresh new entry with the same database is made. Is there any way to get…
chakri
  • 629
  • 3
  • 11
  • 21
2
votes
1 answer

Struts2 / Struts1 action calls

i work on an application that uses Struts2 and Struts1. Now i want to implement authentication for different actions. I'd like to use an interceptor to check to which namespace an action belongs. I wrapped all Struts1 action with Struts2 action. So…
IonTichy
  • 425
  • 4
  • 9
2
votes
2 answers

Struts 2 missing reset method?

I am migrating a project from struts 1.3 to struts 2.0. Now I have read through various resources available on web but could not find a struts 1.3 reset() form method alternative in struts 2.0. My action class extends ActionSupport and implements…
Sushant Gupta
  • 1,487
  • 2
  • 16
  • 23
2
votes
2 answers

How create an executable file or an set up file of an Java web application

I would like to know how to create an set up file or an executable file of a java web application in which I have used Struts and jsp for development in net beans 7.1.2 IDE. So please Help me.
2
votes
1 answer

Struts - Cannot find bean in any scope

I'm using eclipse to implement with the native Struts and hybernate support an application to display a series of links in a page. I'm getting the error: javax.servlet.jsp.JspException: Cannot find bean: "ListeActeur" in scope: "session" I've…
toutou
  • 61
  • 2
  • 6
  • 12
1
vote
1 answer

In legacy application: Implementing new module using struts as controller

As of now my Java EE application controller is build using Http Serlvets for 8 modules And there is a new module to be added, can I build this new module container using struts1? What I believe is, this is possible, as these modules are using the…
lowLatency
  • 5,534
  • 12
  • 44
  • 70
1
vote
0 answers

Struts Action class execute() method…return null

Struts Action class execute() method…return null I am working on "Struts 1 Plugin". We have a Struts1 application and we want to use Action,ActionForm of Struts1 application to into Struts 2 Application. In Struts 1 Plugin, all Action class is…
Indokely
  • 11
  • 1
  • 4
1
2
3
11 12