Questions tagged [actionform]

46 questions
5
votes
1 answer

How to get ActionForm in Struts 2?

I am migrating an Struts 1 app to Struts2 and trying to minimize the code changes required. I need to know how to access the ActionForm in a Struts2 Action class. Below is my current code and I am getting NPE when trying to access ActionForm. Public…
Ravi Gupta
  • 4,468
  • 12
  • 54
  • 85
2
votes
2 answers

Forward from Action to Action

Good afternoon in my timezone. I am developing a web application using struts framework. In a simple way, when the user call the application the first Action to be call is the SecurityAction, then this action redirects to one of the two actions,…
tt0686
  • 1,771
  • 6
  • 31
  • 60
2
votes
1 answer

Struts ignoring validate method

TGM
  • 1,659
  • 10
  • 30
  • 45
2
votes
0 answers

Unable to obtain dropdown list in tag inside tag

Adminprofile.jsp I am using options collection to iterate through agencylist and show dropdown values
Srinivas Nani
  • 381
  • 1
  • 3
  • 9
2
votes
3 answers

Struts and Spring together?

I am pretty new to both Struts and Spring. I need to know how to access a Spring Service in a Struts ActionForm. Even a pointer in the right direction would be appreciated.
Anonymous
2
votes
1 answer

How to include one struts jsp in another when both jsps have ?

I have 2 jsps - jsp1 and jsp2. Each jsp has a defined. jsp1 ...... jsp2
user811433
  • 3,999
  • 13
  • 53
  • 76
2
votes
1 answer

What is the difference between DynaActionForm and ActionForm?

What is the difference between DynaActionForm and ActionForm ? Someone said DynaActionForm is not really dynamic since you still have to restart the server after you re-configured the properties in the struts-config.xml file (or else modifications…
Joe.wang
  • 11,537
  • 25
  • 103
  • 180
1
vote
1 answer

use java to get getters/setters from one class into an actionform

I have a actionform class: public class NameForm extends ActionForm { private String firstName; private String lastName; public void setLastName(String lName) { lastName = lName; } public String getLastName() { return lastName; } public…
billy
  • 157
  • 1
  • 5
  • 17
1
vote
1 answer

Maintaining a list of Objects on a JSP page

I have been developing a piece of simulation software using Struts 1.3/JSP. I am trying to find a way to display of list of objects on my JSP page which can be added to/deleted from. I actually have a list of chemical steps, each step has a list of…
Alex Barnes
  • 7,174
  • 1
  • 30
  • 50
1
vote
3 answers

How to programmatically set the FormBean of the next Action to be executed?

I wish to forward an action to the next configured action but prior to that to create a new ActionForm instance and have it associated with the forwarded action: Psuedo code follows : public ActionForward execute(ActionMapping mapping, ActionForm…
Yaneeve
  • 4,751
  • 10
  • 49
  • 87
1
vote
1 answer

How does struts 1.X ActionForm handle pure html checkbox list?

I am dealing with an old application which uses struts 1.2. And for some reason, we are using pure html form to submit to struts action. For example: for the content output of testAction.do, I try to submit to itself. item 1 item 2 Then I…
BlueDolphin
  • 9,765
  • 20
  • 59
  • 74
1
vote
1 answer

ActionForm pattern in Struts 2

I am migrating a Struts 1 application to Struts 2. In the Struts 2 documentation which it compares the difference it says, Struts 2 also supports the ActionForm pattern, as well as POJO form objects and POJO Actions. But i dont find any classes…
Harshana
  • 7,297
  • 25
  • 99
  • 173
1
vote
0 answers

can we apply declarative validation with DynaActionForm

I am new to Struts framework. I am getting a little confusion if DynaActionForm is not supporting validation why framework introduced this form bean class. As we have so many disadvantages like: The DynaActionForm bloats up the Struts config file…
Satya
  • 1,011
  • 7
  • 6
1
vote
1 answer

java.lang.ClassCastException: org.apache.struts.validator.DynaValidatorForm cannot be cast

I want to search the data from jsp form in database and display it in another jsp file... javax.servlet.ServletException: java.lang.ClassCastException: org.apache.struts.validator.DynaValidatorForm cannot be cast to…
user2523808
  • 281
  • 2
  • 5
  • 10
1
vote
0 answers

Struts + Using Multiple ActionForms

Im using old struts 1x framework to develop a web application.I have created 2 Action formbeans.But I want to know whether I have done the action mapping correctly. Beacuse when I call the Action (PCLoginAction) [Relevant actionformbean--…
Amila Iddamalgoda
  • 4,166
  • 11
  • 46
  • 85
1
2 3 4