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
0 answers

Deep linking with Flex4

I am adding deep linking to a mixed Flex4/Struts application. 1) Is there anything new in Flex4 regarding deep linking? If I remember correctly, standard Flex3 deep linking was cumbersome and did not always work in all browsers on all platforms. Is…
user1981152
  • 119
  • 1
  • 1
  • 10
1
vote
1 answer

Java Struts tag iterator struggling over large list

Just a general question here. I have a simple web app which allows the user(s) to filter through a number of records in a database. Now this isn't a particularly large list (1,200 - 1,500 at the moment) But I seem to be having something of a…
KS1
  • 1,019
  • 5
  • 19
  • 35
1
vote
1 answer

Attach onclick event to struts radio button

I can't seem to attach an event to my struts radio button. It's defined as:
corsiKa
  • 81,495
  • 25
  • 153
  • 204
1
vote
2 answers

iframe making struts 2 action call

I am using a iframe for displaying image on the page. iframe is making action call on page load and action is returning fileinputstream. My question is if file is not available then action is breaking up and throwing error on the page. So, how would…
ankit
  • 438
  • 10
  • 26
1
vote
1 answer

How to add a sort image in display tag?

I am using display tag for showing list data.This is how I 'setup' display:table in my jsp.
sandy
  • 1,153
  • 7
  • 21
  • 39
1
vote
1 answer

Which is better performance wise, s:action or to use static methods on JSP page in struts2 application

I've been wondering which is more better performance wise, calling s:action or calling static method using OGNL in JSP in a struts2 web-application. I know they both have their own usage, but I want to know which one is better performance wise…
coding_idiot
  • 13,526
  • 10
  • 65
  • 116
1
vote
2 answers

when I am doing Form Validations in Struts I am Getting org.apache.commons.validator.ValidatorException

When I am Doing Form validations In Struts I am Getting Exception: org.apache.commons.validator.ValidatorException: No such validation method: org.apache.struts.validator.FieldChecks.validateRequired (java.lang.Object,…
kumar
  • 11
  • 4
1
vote
1 answer

Struts : Generating HTML instead of a simple message?

In my ApplicationResource.properties file, I can things like "welcome.message="Welcome"" and I would generate that in my jsp page with...

But say for example, I have a lot of html to generate, such as…
Slippy
  • 1,253
  • 5
  • 22
  • 43
1
vote
2 answers

Ajax and Struts 1.x Integration without PrintWriter

Is it possible to write Struts Action class to render the part of the page with help of ajax without PrintWriter? I've heard that it's possible to do forward to the part of the page. For example it's solution with…
Dmitry
  • 25
  • 4
1
vote
1 answer

I'm using the Struts2-jQuery grid plugin and the action is called twice

I follow the example listed here when I load the page or press any button on the grid the method execute is called twice. I want to call it just once. What can I do?
rvazquezglez
  • 2,284
  • 28
  • 40
1
vote
0 answers

struts getting a particular message from request

I have couple of warning messages in the request scope and it is saved like this, if ((warningMessages != null) && !warningMessages.isEmpty()){ // saves message in request scope saveMessages(request,…
Geek
  • 3,187
  • 15
  • 70
  • 115
1
vote
2 answers

Equivalent of TagUtils.getInstance().lookup() Struts1 in Struts 2

I have this function in Struts 1: /* * (non-Javadoc) * * @see org.apache.struts.taglib.bean.WriteTag#doStartTag() */ public int doStartTag() throws JspException { Carac carac = (Carac) TagUtils.getInstance().lookup(pageContext, name,…
Nabs
  • 31
  • 1
  • 7
1
vote
0 answers

After deployed values are not fetch and not insert in to tables using JNDI connection

My project is on struts1.3,JNDI datasource connection, tomcat 6 .the problem is that on local box it runs properly i.e, fetching and inserting values into database. But as soon as i deploy on the server as a war where server config is(linux red…
zimmyzam
  • 11
  • 1
1
vote
0 answers

Springs and struts or autosizing

-RE-EDIT- An edit was just approved on this post as it "fixed grammer[sic] and clarified the question". In actuality, it made both worse so I've changed it back. -EDIT- I have a storyboard layout like this: If I use auto layout, I get this in the…
Robert
  • 5,278
  • 43
  • 65
  • 115
1
vote
1 answer

Deploying struts and JSF aplication in a single ear

I have two web applications deployed in two different weblogic servers. Application 1 is a struts 1.2 based application packaged as EAR. Application 2 is a JSF application packaged as war(small application compared to App1). Currently, these two…
JYS
  • 15
  • 4