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
17
votes
6 answers

Stop browser from auto filling the form username and password fields

In the Chrome browser, I have saved the username and the password. Now, if I navigate to some other form and it contains the username and password for some other stuff, the one I saved is auto-populated here. How can I stop this?
Vijay-Coder
  • 171
  • 1
  • 1
  • 5
9
votes
1 answer

Migration from Struts 1 to Struts 2

I am planning to migrate to the Struts 2 with the Struts 1 code base. I am not getting any good source to proceed on this migration. Could you please help on this approach?
user3018534
  • 101
  • 1
  • 1
  • 2
7
votes
2 answers

jsp lang parameter is automatically stored in cookie in struts 1.1

My application is running struts 1.1 on tomcat 7.0.47. Whenever I request a jsp like this : http://localhost:8080/myTestPage.jsp?lang=fr The value lang=fr is automatically stored in cookies . Even if the jsp is not related to an action in the…
Mehdi
  • 1,340
  • 15
  • 23
7
votes
1 answer

Applying bootstrap styles to Struts 1.x html tags

I am working on some legacy Struts 1.x applications that use Struts html tags instead of standard html tags. I am trying to modernize the UI without making functional changes. For example: The input field is
Shantanu Paul
  • 706
  • 10
  • 26
7
votes
3 answers

Difference between core and core_rt jstl tag

When I use <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> for my struts 1.3.10 project, it throws following exception: org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in…
gjman2
  • 912
  • 17
  • 28
5
votes
2 answers

Prepopulate form in Struts1

I have a jsp as my view, which displays a form for adding a new user/ updating the user, if one is selected. I can't figure out how to prepopulate my form if a user is selected. I read about the solution using 2 actions, with the same form, one of…
joanna
  • 743
  • 3
  • 13
  • 27
5
votes
0 answers

how to test whether Struts 1.1 classLoader manipulation fix is working?

I'm using Struts 1.3.10 with Websphere 8. This is related to the recently identified class loader vulnerability in Struts 1 & 2 frameworks. I was trying to implement a fix recoginised by Apache org as correct. This is the fix that I applied in my…
kkk
  • 166
  • 2
  • 18
4
votes
2 answers

how can i implement login with twitter for my jsp/java web project

I have created my project in Struts1(Java framework) . I am using my custom login form for login/authentication purpose. But my Boss wants the user to login with there Twitter Account. just like in Stackoverflow. Same type of login i did for…
Dan
  • 2,086
  • 11
  • 71
  • 137
4
votes
2 answers

How .do extension is appended in the URL in struts?

I am new to struts and as far as i know that .do extension causes the tomcat to call the action servlet and action servlet has resource process object that invokes a particular action class But lets suppose we have a jsp page first.jsp <%@ taglib…
nr5
  • 4,228
  • 8
  • 42
  • 82
3
votes
2 answers

Struts : Redirect back to an empty form

I have a form that is submitted to a details page where I have a button. I put in place an action in my mapping file to link an action to that button which should send the user back to the form and empty it. I can redirect it correctly but the form…
Michael
  • 31
  • 2
2
votes
1 answer

Apache Struts 1.x non vulnerability version

We have a project that was developed using Struts-1.2.4 version. As this version has some security vulnerabilities, we are planning to adopt a new version in 1.x only(not Struts 2 as Struts 2 is a complete new stuff). What's the version in Struts…
Sunil
  • 59
  • 1
  • 5
2
votes
1 answer

Struts 1 to Struts2 JSP taglib conversion

So converting an application from Struts 1 to Struts 2 which so far has been going ok... I've done much Googling on this but I can't seem to find a definitive answer. We have JSPs that are written in JSTL and some struts taglibs which is causing the…
2
votes
2 answers

ms word file download issue in servlet from unix server to windows

While uploading doc file(example test.doc) to server(unix machine), I am using apache commons jar which gives me FormFile instance at server side which is having all the data in byte array form. When I write the same byte array to response output…
RockAndRoll
  • 2,247
  • 2
  • 16
  • 35
2
votes
1 answer

Running Struts 1 & Struts 2

I'm trying to get an application running using both Struts1 and Struts2. Reason being it's being migrated but there is a lot of Struts1 which we want to do bit by bit not big bang... I know this can be done Anyhow I cannot get my S2 filter to pick…
2
votes
1 answer

How do I do a Simple Redirect in Struts 2?

I have been searching web for hours, and I can't find answer to a simple question in Struts 2. Basically, I have the following action in Struts 1 which is a simple forward, and I want to reproduce the same in Struts 2:
Sam Blake
  • 29
  • 3
1
2 3
11 12