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

struts escape form validations for hidden fields

I am hiding some fields based on some condition, i.e. in UI they won't be visible , but clicking on submit button ,struts is validating these hidden fields .. Is there a way to tell struts not to validate fields which are hidden ... i.,e validate…
JAB
  • 3,546
  • 9
  • 36
  • 39
1
vote
4 answers

Problem with moving JSPs under WEB-INF directory

I am facing a problem when I move my JSP files along with CSS and JS files under WEB-INF/web/ directory. The problem is that, when a JSP page loads, it does not load CSS and JS files. Please help if you have any idea about it. Thanks Umar
craftsman
  • 15,133
  • 17
  • 70
  • 86
1
vote
1 answer

Writing middle tier tests for website built using Struts

I have never done any middle tier testing before and I am brand new to Struts. I was assigned the task to find out if it is possible to do middle tier testing of a Struts website and how to do it if it is. I wonder if anyone has experience writing…
user1739658
  • 253
  • 1
  • 3
  • 10
1
vote
4 answers

jquery/javascript to disable button within a table cell

I have a table cell with 2 buttons in it. By default save button is disabled. On the click of edit button, save button button…
scanE
  • 332
  • 4
  • 19
1
vote
2 answers

retrieving multiple select values

I am using a multi select dropdown which is populated dynamically. How do I retrieve all the selected values from the dropdown list? I am using struts and here is the code from the JSP.
dazzle
  • 1,346
  • 2
  • 17
  • 29
1
vote
2 answers

Change URL of web application for deployment

I have developed a web based application using STRUTS 2.0 and I want to deploy it.I want to deploy two or more different instances one for user testing and one for production etc. I want to add namespace like my URL must be…
Abhijit C
  • 303
  • 3
  • 20
1
vote
0 answers

Missing message for key "registration.jsp.title" in bundle "(default bundle)" for locale en_GB

I'm completely new to Struts 1.3.10 and I'm trying to implement a simple registration application but every time I try to run the damned thing, I get the following message: org.apache.jasper.JasperException: javax.servlet.ServletException:…
Mr Morgan
  • 2,215
  • 15
  • 48
  • 78
1
vote
2 answers

How do I submit multiple models in Struts 2?

I have a JSP that allows users to dynamically create additional form fields to create multiple objects. Perhaps I want to allow users to be able to submit as many line items as they want when submitting an invoice form. How do I create a Struts 2…
Jaryl
  • 2,561
  • 1
  • 24
  • 33
1
vote
0 answers

struts ignores the method and shows no exception

I have a struts method and it was working fine before i added the validation, but once i added the validation method the method which i call is not called and it shows no exception also. struts-config.xml
Java Questions
  • 7,813
  • 41
  • 118
  • 176
1
vote
1 answer

Add Action Message In Struts 2 Interceptor After Action Invocation

I have a unique problem with passing an action message in a JSON result. Right now, if I add an action message within my action (in a JSON action), I will pick that up in JavaScript and capture the action message and alert the user via JGrowl. …
Andrew Bernhagen
  • 325
  • 4
  • 16
1
vote
1 answer

Best Approach for developing app that mainly calls stored procedures through Spring and Struts

First post at stackoverflow after I couldn't find exactly what I was looking for. I am developing an application that will mainly just take input parameters from a user and pass them to Oracle stored procedures. None of the stored procedures return…
user1828016
  • 29
  • 1
  • 6
1
vote
2 answers

Can we write struts dispatchAction method with void return type?

I want to perform some operation using Struts DispacthAction method but, I dont want to forwad it any jsp; Can I write dispatch method with void ? Ex: public void perform(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest…
Satya
  • 8,146
  • 9
  • 38
  • 43
1
vote
1 answer

how to preserve the session after communicating with the http client or httpurlconnection?

i have a standalone application from which using the httpclient i'm communicating with the another web application for user authentication and set the user details in session in the web application and after returning to the standalone application i…
1
vote
1 answer

cannot retrieve mapping for action error

im using struts 1.2 and trying to create a link in jsp page with code Create User ` so that the link will move to page UserCreation in which the code like this is present
phani_yelugula
  • 331
  • 1
  • 9
  • 14
1
vote
1 answer

Unable to load configuration after including Jar

I am trying to include a jar in my struts2 project so that its actions are available to use in my main project. After adding the line struts.convention.action.includeJars=.*?survey.*? to my struts.properties and trying to redeploy to Tomcat with…
eipark
  • 7,442
  • 3
  • 24
  • 33
1 2 3
99
100