Questions tagged [struts-action]

An Action is an adapter between the contents of an incoming HTTP request and the corresponding business logic that should be executed to process this request.

Action classes act as the controller in the MVC pattern. Action classes respond to a user action, execute business logic (or call upon other classes to do that), and then return a result that tells Struts what view to render.

One of the most common responsibilities of the Action class is to process user input on a form and then make the result of the processing available to the view page. When the form is submitted, Struts will call any set methods of the Action class that match the form field names.

98 questions
0
votes
2 answers

How to handle Action's form data that is not coming from JSP in Struts 2?

I have a form in search.jsp In…
null
  • 8,669
  • 16
  • 68
  • 98
0
votes
1 answer

Pass a parameter with struts 2 action

How can I pass a parameter with struts 2 action?. Here is my code.
jose
  • 144
  • 1
  • 4
  • 16
0
votes
0 answers

Connect to pages in Struts application - how to run required initiations?

I have application that use Struts2. This application have links to pages that contain forms. Those links run actions that prepare page with some initiations in method start. Bellow part of struts.xml:
M314
  • 925
  • 3
  • 13
  • 37
0
votes
1 answer

Call a method passing a parameter inside jsp with struts 2

I have a scenario where I need to call a method of an Action class. Below is the code. Test: