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
55
votes
1 answer

Function to remove accents in postgreSQL

Possible Duplicate: Does PostgreSQL support “accent insensitive” collations? I'm trying to remove the accents so when I make a SELECT it ignores them. Example: SELECT * FROM table WHERE table.id ILIKE 'Jose'; It returns: José Jose Jósé Jóse or…
chamini2
  • 2,820
  • 2
  • 24
  • 37
21
votes
1 answer

Cross-site request forgery prevention using struts token

I want to implement Cross-site request forgery prevention for my web application which is base on struts 1.x framework. I know that struts 2 framework provide token interceptor for this and I can implement similar functionality using filters. I am…
Niraj Sonawane
  • 10,225
  • 10
  • 75
  • 104
21
votes
3 answers

Are the docs for Struts 1 still available online?

I have needed to maintain a Struts 1 application. I know, EOL almost two years ago, no new releases in six years. Whatever, we have 100k lines of working code in a Struts 1 app, and it's not going away just because I have more modern…
Eric Wilson
  • 57,719
  • 77
  • 200
  • 270
20
votes
2 answers

Difference between jsp expression tags <% and <%=

I more or less know the difference between <%! and <%, but I can't seem to find the difference between <%= and <%. I'm trying to avoid a null value error by introducing some logic into my expression that currently uses <%= ... %>. I get an error…
rocklandcitizen
  • 979
  • 4
  • 17
  • 27
18
votes
5 answers

How can I put a placeholder in a struts textfield tag?

i got error because am using placeholder attribute in struts tags.... how can resolve the problem,pls help me. Thanks in Advance.
Kannan Arumugam
  • 1,119
  • 2
  • 18
  • 27
18
votes
1 answer

Struts 1.3 action forward parameter

I'm working on a little project which uses Struts 1.3 and I encountered the following problem. After some business logic takes place in an Action i want to forward the control to another Action which is mapped in struts-config.xml. Usually this is…
TGM
  • 1,659
  • 10
  • 30
  • 45
17
votes
2 answers

Whats the difference between Struts 1.x and Struts 2.x

I would like to know the difference between Struts 1.x and Struts 2.x
Ashvin Ranpariya
  • 661
  • 2
  • 13
  • 25
15
votes
3 answers

Java Struts 1: forward from action to action. Passing data through ActionForms

We've been trying to redirect from one action to another, hoping that data would be passed between corresponding ActionForm beans. The first action receives a request from the browser, prints a data field, and forwards it to another action, which…
Tom
  • 43,810
  • 29
  • 138
  • 169
13
votes
6 answers

struts.xml and struts-config.xml

What is the difference between struts.xml and struts-config.xml? Are both the same or is there any difference between them?
bharanitharan
  • 2,539
  • 5
  • 32
  • 30
12
votes
6 answers

How to extract decimal number from string using JavaScript

I want to extract decimal number 265.12 or 0.0 from alphanumeric string (say amount) having value $265.12+ or $265.12- or $0.0+ or $0.0- and use it apply struts logic tag in JSP. Not sure how to extract number maybe with help of JavaScript.
ank87
  • 131
  • 1
  • 1
  • 4
11
votes
4 answers

Migration from Struts 1.2 -> Struts2 vs Spring-MVC (primarily vis-a-vis Struts1.2 taglib support)

Primary Question: If my app is CURRENTLY using Struts 1.x - and I am considering migrating to EITHER Spring-MVC or Struts2 for the MVC-framework - is there anything about either one that would make it easier to migrate from Struts1.2? To clarify, I…
bogachkov
  • 113
  • 1
  • 1
  • 6
10
votes
6 answers

JasperReports: How to call the report in jsp page

I made one jasper report using iReport 3.7.4 version, now i have to use that or call that report in my java application where i am using servlets, jsp and struts framework, apache tomcat as server. I want steps regarding how to call the jasper…
krishna
  • 179
  • 1
  • 4
  • 13
9
votes
4 answers

Difference between Struts 1 and Struts 2?

I had been using struts 2, but for few reasons i am shifting (back) to Struts 1 . I would like to know major diffrences between them like about programatic availabilities and general flows.
Nils
  • 806
  • 1
  • 9
  • 24
9
votes
4 answers

Iterating over hashmap in JSP in struts application

I have a HashMap object that I am getting on a JSP page. HashMap gift_hm = new HashMap(); gift_hm.put(17,new Gift_product("doll",67)); Now I need to iterate this and display content on JSP. The…
Pedantic
  • 1,368
  • 10
  • 39
  • 70
9
votes
2 answers

request.getCharacterEncoding() returns NULL... why?

A coworker of mine created a basic contact-us type form, which is mangling accented characters (è, é, à, etc). We're using KonaKart a Java e-commerce platform on Struts 1. I've narrowed the issue down to the data coming in through the…
Jay
  • 901
  • 1
  • 8
  • 18
1
2 3
82 83