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

Create Struts 1.X project using Ant and Eclipse

I have a war(built using Struts 1.x jars) which has been deployed on server but do not have the corresponding source code so I have basically extracted the .class files from the jar and de-compiled them and trying to build the source code(project)…
Karthik
  • 1,302
  • 5
  • 25
  • 56
3
votes
1 answer

Cann't find ActionError class in Apache Struts 1.3.10

I follow the tutorial in book JakataStruts live (2004). I have code snippet: @Override public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { ActionErrors errors = new ActionErrors(); if(firstName == null ||…
Vy Do
  • 46,709
  • 59
  • 215
  • 313
3
votes
4 answers

How to remove '.do' prefix from url in Struts1?

I have written a web-application in Struts 1 framework. Everything works fine but on form submission when user is forwarded to next page URL which is shown is actionname.do. I don't want this Struts 1 default suffix on URL. Instead of it I would…
Abhijeet Panwar
  • 1,837
  • 3
  • 26
  • 48
3
votes
2 answers

javax.servlet.jsp.JspException: No getter method for property xxx of bean org.apache.struts.taglib.html.BEAN

I search for long time to this issue.But still i didn't get the solution.Kindly help me to this problem. I have one JSP file and using struts for my application.When i try to load the page in browser it throws this…
Muthu kader
  • 119
  • 1
  • 4
  • 13
3
votes
1 answer

why java code not converting text to utf8 characters?

My jsp page has encoding as follows : <%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> <% response.setHeader("Cache-control", "no-cache"); response.setHeader("Pragma", "no-cache"); response.setDateHeader("Expires",…
vermaraj
  • 634
  • 3
  • 10
  • 34
3
votes
4 answers

javax.servlet.jsp.JspException: No getter method for property

I am unable to find out what I am doing wrong. I am bound to use Form Bean within Form Bean as there are numerous different parts of the form. Basically, there is a response part as well as request part on the same form. While initializing the view,…
Srihari
  • 766
  • 1
  • 6
  • 22
3
votes
2 answers

Populating multiple forms in a Struts 1.x JSP

Is there any way to populate multiple forms with Struts and make them available to the JSP page? I'm building a page that has two different forms on it that needs custom data pre-populated from a database. Both forms have to be on the same page.
MechaMarinara
  • 620
  • 1
  • 7
  • 22
3
votes
3 answers

my web.xml does not know taglib tag

I want to use html tags in my jsp, so I have to add the tag lib in web.xml when I add these lines to web.xml: /tags/struts-html /WEB-INF/struts-html.tld it does…
AFF
  • 1,515
  • 4
  • 21
  • 35
3
votes
2 answers

Struts : Redirect back to an empty form

I have a form that is submitted to a details page where I have a button. I put in place an action in my mapping file to link an action to that button which should send the user back to the form and empty it. I can redirect it correctly but the form…
Michael
  • 31
  • 2
3
votes
0 answers

How to pass the run-time parameter using the in the struts-config.xml?

I want to pass the string using the paramter of 'multitablesid' with different name. Because I am using the export to excel using our jar file. Here am using the struts1.2.9. In my scenario I want to pass the url in the struts-config.xml using the…
Adalarasan_New
  • 313
  • 3
  • 5
  • 16
3
votes
1 answer

What is the difference between ActionErrors and ActionMessages struts 1.3

I have been using struts-errors to pass messages from dispatch action class to view page But I found out struts-messages is standard tag to do this First what is difference between these two classes Secondly how to use struts-errors , i tried…
Raheel
  • 4,953
  • 4
  • 34
  • 40
3
votes
2 answers

The requested resource is not available on Tomcat

I'm trying to get a Struts tutorial working but I am coming up against the following error when I try to run the file in Tomcat. The requested resource () is not available. Tomcat Log Output: Aug 29, 2012 9:55:37 PM…
Colin747
  • 4,955
  • 18
  • 70
  • 118
3
votes
1 answer

Dynamic key in bean:message in Struts 1.3

I am working on a project which made use of an old (but nice) framework Struts 1.3, and I am trying to accomplish a simple task. I have a bean containing a property, which is a key corresponding to a property file. I would like to use it for recall…
Leonardo
  • 9,607
  • 17
  • 49
  • 89
2
votes
1 answer

how do i override the url-pattern in a struts servlet mapping?

I am using Struts 1.2.7 and have the standard servlet mapping that uses *.do for my URLs. action *.do I…
barclay
  • 4,362
  • 9
  • 48
  • 68
2
votes
2 answers

Java getter for non-existent attribute of class

I'm using some functionality in Java that I don't really understand so I want to read up on it so that I can use it more effectively. The problem is that I don't know what it is called so it makes it difficult to get more information on it: I have…
Rondel
  • 4,811
  • 11
  • 41
  • 67