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

Checking pfx file type with struts

Is there any way to check the uploaded certificate is really a pfx certificate? I tried with the following code: LazyValidatorForm lazyForm = (LazyValidatorForm) actionForm; FormFile cerFile = (FormFile) lazyForm.get("cerFile"); if…
Thai Tran
  • 9,815
  • 7
  • 43
  • 64
3
votes
1 answer

Need advice on displaying (and/or converting) pdf files on the web

First some background: My site has two basic types of users. Users with free accounts can upload documents and paid customers can then search and view or download those documents. Uploaders can view only the documents they own while paid customers…
joshg
  • 31
  • 1
3
votes
1 answer

how to call struts action from the jsp:include or tiles?

I have jsp, in which I want to include another jsp which is the forwarded result of struts action. How I can include/insert using jsp:include/tiles insert or any other method? Any help would be appreciated.
3
votes
1 answer

does action class has any scope like formbean

This is regarding Struts1.x Do Action classes have a scope like form beans do? Is a new Action instance created for each user session? If two users use the same action class at a time, will they have two different action class objects, or the…
user1036204
  • 175
  • 1
  • 2
  • 12
3
votes
3 answers

Struts 1 How to set checkbox default checked

I'm making some small changes to an existing project, which was built using Struts 1.2. I need to have a check box on the form checked by default. I'm a newbie on Struts. I understand that I can't set a default value for check boxes on form reset…
hendry.fu
  • 309
  • 1
  • 3
  • 9
3
votes
2 answers

How to configure pom for StrutsTestCase so that web.xml is found?

I'm using Maven 2 to build a Java - Sturts 1.2 - Spring 1.2 project. I'm trying to incorporate the StrutsTestCase extension of JUnit to allow testing of action classes. When I try to build, I get the following…
Eric Wilson
  • 57,719
  • 77
  • 200
  • 270
3
votes
1 answer

Good resources for becoming more familiar with Struts 1 (for a legacy project)

I'm working on a project with my employer that is built with Struts 1 and coming from having worked in Spring it's quite a difference and can be a bit frustrating. I've gotten fairly comfortable already with being able to figure out, for the most…
Rick
  • 16,612
  • 34
  • 110
  • 163
3
votes
1 answer

Struts Action HTTP 500

I have this action:
Will Sumekar
  • 1,249
  • 5
  • 16
  • 25
3
votes
3 answers

java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String in Struts' logic:equal tag

I have an error when I want to acces my JSP page. My bean: public class BeChildren implements Serializable { ... private String isFilledChildren; .... /** * @param isFilledChildrenthe isFilledChildrento set */ public void…
Mercer
  • 9,736
  • 30
  • 105
  • 170
3
votes
3 answers

EJB and Hibernate in Struts application

I have an application that has a struts 1.1 and EJB 2 combination, but now we are introducing a new piece into it with hibernate 3.2. The hibernate DAO's run in parallel with the EJB 2 session bean DAO's with pure JDBC. I am concerned about the jdbc…
Gopal
  • 71
  • 1
  • 9
3
votes
1 answer

In Struts 1, What is the Default Value of Type Attribute of tag?

In Struts 1, if the type attribute of the tag has no value, what does it mean? Is there a default value for the type attribute that is used when it is not explicitly specified. I'm basically trying to figure out what the following action…
user2295633
3
votes
1 answer

Struts 1.2 Actions, the "right" way of reading query parameters?

I get that if I have a html form then I should use an ActionForm to read user input in my Action. But should I consider all kind of user input as form data? Lets say I have an link with query parameters passed to my Action? Should I still make use…
Unknown
  • 136
  • 1
  • 5
3
votes
2 answers

How can I pass "type" attribute within in struts1

When I try to write something like this: in the struts1 it gives me an error Attribute type invalid for tag text according to TLD How can I add "type" attribute to tag?
EA0906
  • 472
  • 6
  • 14
3
votes
1 answer

Intellij IDEA HotSwap with Tomcat works for classes but not for JSP

I'm doing a war deployement (not exploded war) in Tomcat7 with IntelliJ IDEA 14. My webapp is composed of 2 wars : views.war (Struts classes, JSP) business.war (Business, persistance and WS) So my CATALINA_HOME/webapps contains : ROOT/ views/…
Karbos 538
  • 2,977
  • 1
  • 23
  • 34