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

Struts 1 - Iteration in Iteration - Inner row method

I have a logic:iterate in a logic:iterate. I can edit all fields in this table. For every logic:iterate i have a getXXX row method. First I click on my ´add´ button. The iteration filled with 3 persons. First have one address, second have two and…
pL4Gu33
  • 2,045
  • 16
  • 38
4
votes
1 answer

https action in Struts

I am using html:form action = "someAction" to refer to an action in struts-config file. I wanted to make that action as https but apparently I cannot replace an absolute path like https://webserver/context/abc.do with someAction in html:form. Just…
Abidi
  • 7,846
  • 14
  • 43
  • 65
4
votes
3 answers

Create a Maven 2 project with Struts 1 archetype

I would like to create a web project using Maven 2 + Struts 1. Would someone provide me some tutorial or a website outlining the steps? Thank you. ;)
Mercer
  • 9,736
  • 30
  • 105
  • 170
4
votes
1 answer

How can I pass form input value to an Action (struts 1)

I'm new using struts. I need to pass the form value to an action when I submit the form. I want to use input tag no html:text. How to do it? This is my code: form in JSP:
Name:…
Oscar MV
  • 63
  • 1
  • 1
  • 7
4
votes
1 answer

can I use Jquery blockui(plugin) code withouut Ajax

Im newbie to Jquery please help...... I have one page which has multiple links. When user click on one link before it completes the process backside and loads the page, he is hitting another links without wait which causing issue. I'm looking for…
latha
  • 93
  • 7
4
votes
2 answers

MessageResources weird behaviour

I have a web application. For multilanguage purpose I use java struts 1.3 with MessageResources. The default language is italian (MessageResources.properties) and the second language is english (MessageResources_en.properties). in…
Nogothwen
  • 87
  • 8
4
votes
1 answer

Cannot find bean org.apache.struts.taglib.html.BEAN in any scope

I have a form which has five tabs. In one of the tabs(background.jsp) on change of a checkbox(be in checked or unchecked) I am trying to set the flag of (hasGenderChanged) in jsp to true and use a request type to send it to my java code. Below is…
user3358472
  • 43
  • 1
  • 1
  • 9
4
votes
1 answer

Returning text/plain in struts 1.x

Is it possible to return a single value of type String instead of forwarding to action in struts 1.x. I got few similar questions here, and here. In struts documentation they mentioned, Both Struts 1 and Struts 2 can return any type of…
Rajesh
  • 213
  • 1
  • 3
  • 9
4
votes
1 answer

How to add extra html attribute in struts 1 html taglib?

How can I add autocomplete="off" standard html attribute to my input tag in struts 1? my input: A javascript solution is not appropriate only a CSS or struts 1 solution.
Nik Kashi
  • 4,447
  • 3
  • 40
  • 63
4
votes
2 answers

Java servlet: issue with multipart/form-data form

I have a multipart/form-data form with some and fields. I use this code List multipartItems = null; boolean isMultipart = ServletFileUpload.isMultipartContent(request); if (!isMultipart) { …
Sefran2
  • 3,578
  • 13
  • 71
  • 106
4
votes
2 answers

Redirect tomcat to maintenance page when my tomcat is down

I just joined a new company and it was told that the sites they have uses tomcat. And, they want to show a custom web page when tomcat is down. currently it will show Error 500. I am the only person in IT team for now and I am pretty new to tomcat…
Suresh U
  • 463
  • 3
  • 14
4
votes
2 answers

Struts 1.x Java- form data gets lost

My problem is, I have a jsp page(say one.jsp) which contains fields(eg: name, city etc) and after I hit on submit button, a new jsp(two.jsp) is opened in a new tab it contains a radio button 'I accept'. when the user now clicks on this radio button,…
4
votes
2 answers

automatically click anchor tag link on jsp page

I am having one tricky requirement. I am explaning through example abc.jsp calls xyj.jsp and xyj has a link like Click My requirement is that when i run abc.jsp it calls to xyz.jsp and without showing xyz.jsp page it…
Sandy
  • 163
  • 1
  • 14
4
votes
1 answer

How to get values of the rows of a table that are filled in the jsp in the Action class in Struts 2?

I have the following jsp in which I have an option of adding and deleting rows of the table and in each row of the table which have the same fields I have to fill in the options and submit the form. In the action class how do I retrieve the values…
user2077648
  • 951
  • 7
  • 27
  • 42
4
votes
1 answer

How can I manage a multidimensional array with Struts Form

I'm using Apache Struts 1.3 to render a grid, whitch is a html form embebed in a .jsp. Something like
pabl0x
  • 78
  • 2
  • 6