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
6
votes
4 answers

How to escape curly brackets in .properties file in Struts 1.2

I have a requirement to retain the curly brackets from properties file in my rendered JSP code. Is it possible? I have tried options like: \{, '{, {{, '{', /{, but no help. At runtime, I get an exception: java.lang.IllegalArgumentException:…
Nishant
  • 61
  • 1
  • 3
6
votes
1 answer

Struts 1.2.9 - Questions around custom internationalization

We have a legacy application that uses Struts 1.2.9. The app is currently internationalized the standard way - .properties files for all UI labels, errors, messages, etc; definition for each .properties file in struts-config.xml…
Ranga
  • 618
  • 1
  • 8
  • 14
6
votes
1 answer

Combobox not show the correct language values in struts1

Im using ExtJS and Struts1 for an application, when user uses this app in english and displays the combobox (inside form), the selection is in another language (spanish) but not in english. After save the form and reload the page this parameter…
S. Moreno
  • 526
  • 2
  • 7
  • 29
6
votes
1 answer

AJAX with Struts 1.x Version

I am having an application developed with Struts1.3, Jboss4.X version and jdk1.5 Now as an enhancement we are planning to implement AJAX to the web application Can you please suggest me Whether I can use AJAX with Struts1.3 Framework? Which Jar I…
gmhk
  • 15,598
  • 27
  • 89
  • 112
6
votes
1 answer

How do Django concepts map to Java, servlets, Struts 1 and JSP pages?

I'm taking a class on Java web development but I have far more experience with Django. I understand that some of the concepts are similar but that they're grouped together in different layers and with different names. How do Django concepts map to…
user9903
5
votes
2 answers

HTML5 placeholder inside Struts html:text tag

I'm using Struts 1.3.10 in a web application, and I want my textfields to have a placeholder. Unfortunately, the current Struts taglib doesn't recognize this attribute, and I would like to avoid using javascript for this if possible. Do you know any…
Edgar Pérez
  • 110
  • 2
  • 11
5
votes
2 answers

Multiple Submit button in Struts 1.3

I have this code in my JSP: <%@taglib uri="http://struts.apache.org/tags-html" prefix="html"%> .. .. .. ..
Nageswaran
  • 7,481
  • 14
  • 55
  • 74
5
votes
2 answers

File "/struts-tags" not found in Struts 1.3

I wrote a conditional if else tag inside a logic:iterate in jsp as below:-
deepakl.2000
  • 176
  • 1
  • 4
  • 19
5
votes
8 answers

Is there any way to configure Struts to bind null instead of empty String?

When user decides to leave the field in the form empty the Apache Struts binds empty String as value for properties in the ActionForm. Is there any way to modify the behavior globally and opt for null instead of empty String? I know that Spring MVC…
Tomasz Błachowicz
  • 5,731
  • 9
  • 41
  • 47
5
votes
1 answer

Can Freemarker be used with Struts 1.1?

I'm working on a web applications that uses Struts 1.1 and tiles with jsps. I'd like to introduce some freemarker templates. I know this is possible with Struts 2, but can you use freemarker with Struts 1?
Snukker
  • 1,963
  • 3
  • 18
  • 18
5
votes
7 answers

Cannot find message resources under key org.apache.struts.action.MESSAGE in struts

I am getting the following error in the browser window : org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action.MESSAGE I have included the…
Lokesh Sah
  • 2,283
  • 5
  • 23
  • 33
5
votes
8 answers

ORA-28040: No matching authentication protocol : Oracle 12c Upgrade

We have migrated our Oracle database to 12c from 11g. We have a legacy application running in Java 1.5 and using ojdbc14.jar. Our application is not able to create connection to database error saying : java.sql.SQLException: ORA-28040: No matching…
Tushar
  • 1,450
  • 6
  • 18
  • 30
5
votes
3 answers

Struts 1 Date Format Tag

Is there any tag in Struts1 tag library which can format a java.util.Date object? In Struts 2, I can use the s:date tag, but I can't find the Struts 1 equivalent.
David
  • 849
  • 5
  • 10
  • 16
5
votes
3 answers

Disable Auto-complete(autocomplete="off") using STRUTS

i tried to disable auto complete(autocomplete="off") in struts framework,the process i followed is 1)In Strut-html.tld file i had few attributes of TextTag so added autocomplete…
JayanthSuresh
  • 101
  • 1
  • 5
5
votes
3 answers

How to get the data in Struts 1 from AngularJS POST

I’m using Struts1.2 with AngularJS to POST some data and want to get the data in Java. I’m able to retrieve the data from the server and able to display it in the screen. Now I’m trying to POST some data with AngularJS to the server and trying to…
Arun
  • 1,010
  • 6
  • 18
  • 37
1 2
3
82 83