Questions tagged [struts]

The Apache Struts web framework is a free open-source solution for creating Java web applications.

The Apache Struts web framework is a free open-source solution for creating Java web applications.

Struts frameworks with different version significantly changed their architecture that is not backward compatible.

Struts 1.x has reached End Of Life status as of 2013-04-05 (see announcement).

Struts 2.x is the current stable releases version.

Struts 3.x is in development phase.

Web applications differ from conventional websites in that web applications can create a dynamic response. Many websites deliver only static pages. A web application can interact with databases and business logic engines to customize a response.

Web applications based on JavaServer Pages sometimes commingle database code, page design code, and control flow code. In practice, we find that unless these concerns are separated, larger applications become difficult to maintain.

One way to separate concerns in a software application is to use a Model-View-Controller (MVC) architecture. The Model represents the business or database code, the View represents the page design code, and the Controller represents the navigational code. 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 framework's architecture and tags are buzzword compliant. Struts works well with conventional REST applications and with nouveau technologies like SOAP and AJAX.

The Apache Struts Project is the open source community that creates and maintains the Apache Struts framework. The project consists of a diverse group of volunteers who share common values regarding collaborative, community-based open source development. The Apache Struts Project is proud to share these values with our parent organization: The Apache Software Foundation.

The project is called "Struts" because the framework is meant to furnish the "invisible underpinnings" that support professional application development. Struts provides the glue that joins the various elements of the standard Java platform into a coherent whole. Our goal is to leverage existing standards by producing the missing pieces we need to create enterprise-grade applications that are easy to maintain over time.

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.

Official Website: http://struts.apache.org/ ( Struts 2 / Struts 1 )

Useful Links:

Related tags :

3606 questions
1
vote
1 answer

How to dynamically set the value of "input" attribute in Action tag - Struts-config.xml (Struts 1.2)

In the struts-config.xml file,action element has a input attribute which used when the actionForm's validate method return some errors.
Chinni
  • 137
  • 3
  • 8
1
vote
1 answer

Struts2 With Styling outside the war/ear

I have a problem with Struts2, the problem is, the client want the styling of the web apps is dynamic, for example is, i can put the template (.html / .ftl) on /apps/template/path where all the logic on war, can i do that? i've been searching all…
fahmi
  • 705
  • 2
  • 10
  • 23
1
vote
0 answers

Is there any way to generate a pdf in Struts 1.x with latex code?

I have been searching for a way to generate a pdf inside Struts 1.x and it occurs to me that it would be awesome to use latex code to include style on the pdf. Is this possible? I thought of birt and eclipse but I haven't been able to find any…
Sofia Bravo
  • 579
  • 8
  • 22
1
vote
0 answers

Unable to apply jquery multiselect widget with ajax populated values

I am using ajax to fill in my select dropdown. I am using this widget to beautify my multiselect dropdown. But for some reason, the dropdown is not getting populated after using this widget. Here is my code. The app is using struts
dazzle
  • 1,346
  • 2
  • 17
  • 29
1
vote
0 answers

Struts 1 Tiles Configuration

I'm learning struts 1. Ok, it's working. And there is something I don't understand with tiles configuration. On almost every tutorials on the net they say I only have to add the plugin org.apache.struts.tiles.TilesPlugin in the…
tweetysat
  • 2,187
  • 14
  • 38
  • 75
1
vote
3 answers

Will struts 1.2.4 work with Java5?

As of now we are using Struts1.2.4 with java4. We want to upgrade it to Java5. Java 5 has so many deprecated method in EE. Will struts 1.2.4 work with java 5?
Thejesh GN
  • 1,108
  • 2
  • 14
  • 28
1
vote
1 answer

Can Non Struts tags be used in View component when going for struts2 framework.?

Am New to struts2 framework . I wrote a small application and made it working . But our client is ver specific to its look feel and client side validations planning to use Jquery for front end layer . Wanted to know can I achieve or write the non…
Hero
  • 639
  • 4
  • 12
  • 33
1
vote
1 answer

File downloading alert in jsp

I am using the following code in jsp to download a file from the server. I am using the struts framework. I want to display an alert message if the file is not present(with the following code, if the file is not present it is downloaded in an…
Biswajit das
  • 51
  • 1
  • 2
  • 7
1
vote
1 answer

Uploading file from Struts/JSP into PostgreSQL large objects ("lo"/"oid") in the DB

I have an application that uses PostgreSQL, JSP and the STRUTS Framework I want to insert a file into a table in PostgreSQL using the OID type, so it's stored as a large object in the database. My table definition is this one: CREATE TABLE…
camelCase
  • 521
  • 2
  • 10
  • 22
1
vote
1 answer

No action found for specified url

New to struts & trying to go through a basic tutorial and am getting the error InvalidPathException: No action config found for the specified url My url that's blowing up is: http://localhost:8080/UserAction.do?method=add Here is part of my…
ist_lion
  • 3,149
  • 9
  • 43
  • 73
1
vote
0 answers

How to change the default input when error occur in struts validate method?

In the struts-config.xml file,action element has a input attribute which used when the actionForm's validate method return some errors.
1
vote
2 answers

Is a static builder class thread safe in a Struts ActionServlet?

I've seen the builder pattern recommended in a variety of places, but wasn't sure on thread safety within a Web application using Struts. I am unclear as to whether the variables of the build static method are shared by, or internal to each thread…
Matt
  • 3,617
  • 2
  • 27
  • 39
1
vote
0 answers

Struts conditional redirect from one action to another

I know in struts one can forward from one action to another like shown here but is there a way I can check in my one action and see if certain link exists if it doesn't than redirect to another action, simple example would help. Thanks
user1617247
  • 51
  • 1
  • 6
1
vote
1 answer

How to include a link in the mail message in Struts

I am sending a mail after a save is done in DB by using Struts action. Now I need to include a link in the mail which on clicking will hit my action URL. My dev URL is wwwdev.sakthi123.road.com. my action path will be…
ashwinsakthi
  • 1,856
  • 4
  • 27
  • 56
1
vote
0 answers

AJAX Struts 1.x using tiles without jQuery

I faced with problem using tiles in struts 1/x. For example I have next files as tiles-def.xml
Ray
  • 1,788
  • 7
  • 55
  • 92
1 2 3
99
100