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
1
vote
1 answer

session scope in struts-config.xml

I want to know how to use Session in the Struts... There is a tag in the "action" element which says "scope=". Is there anything to do with this in the session management. Plese explain me with the following example. Suppose my first screen is…
Manu
  • 3,179
  • 23
  • 57
  • 69
1
vote
0 answers

Disabling a web service after deploying it in JBoss

I have two wars, sar and ejb packaged in an ear. One of war has rest web service in it. I'm deploying this ear in JBoss 6 AS. Is there way with which I can disable the web service deployed in it.
1
vote
1 answer

org.xml.sax.SAXParseException; Invalid byte 1 of 1-byte UTF-8 sequence

I got error when trying this code The error log on the line docBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); Code: public static Object simpleDeserFromXml(InputStream in) { DocumentBuilder docBuilder; try { …
1
vote
0 answers

How to download excel file (created from my DB data) using Struts 1.1

I'm looking for a good example which explains how to download files from the server side of a web app created with Struts 1.1 and JSP; I tried to follow some tips like this: Best download file with struts 1.1…
1
vote
1 answer

Is it possible to use an Action without a FormBean (Struts 1)?

I'm learning struts 1, yes, the old one. Is it possible to use an Action (Dispatch Action for example) without a FormBean? I know that is possible to use a FowardAction, but I want to use a DispatchAction because I need to use a Controller, but I…
danilo
  • 7,680
  • 7
  • 43
  • 46
1
vote
1 answer

Passing an ArrayList from Struts1.3 action to appropriate JSP

I use Struts V1.3 for a project. Here is my Action Class which I want to send an arrayList through request.settAttribute in execute function. public class ProductAction extends Action { private List productList; @Override public ActionForward…
Amir Amiri
  • 441
  • 1
  • 8
  • 14
1
vote
0 answers

java.sql.SQLException: Data truncated JSP and Struts1

I am inserting data to about 20 MySQL database tables using user input on JSP page. Some of the tables are inserted four rows of data. I am getting "java.sql.SQLException: Data truncated for column" even though the data are not longer than that…
Ace
  • 13
  • 4
1
vote
0 answers

How can I log out other tabs if user logs into a different account?

I want to prevent the user from logging into different accounts from the same browser Example, if the user is logged into account A then opens a new tab and logs into account B, then I want to log account A out Is this possible using spring 2? EDIT:…
124697
  • 22,097
  • 68
  • 188
  • 315
1
vote
2 answers

Setting tabindex on Struts tag

I need to set a tabindex attribute on a html