Hi i am new to this community. I am new to struts. I have one question that in struts-config.xml file in the action path we have several parameters. I want to know the significance of each parameter especially of input parameter. is it necessary to mention this paramter, if not specified then what will happen?Thanks in advance.

Showing Answers 1 - 5 of 5 Answers

hibapi

  • Oct 31st, 2006
 

input is the file from which request parameters come.....mostly it is a jsp file......which we see when we first open a web site...

  Was this answer useful?  Yes

hibapi

  • Oct 31st, 2006
 

first you go through a text book on struts or go through some online tutorials on struts...for the first timers on struts.......i suggest the book by Steven Holzner.....sory i have forgotten the book name...but it is somewhat likey....."Essential struts ....(something)...and then any other proffesional struts books..preferably "complete reference on struts by james holmes.

  Was this answer useful?  Yes

Radhakrishna

  • Nov 9th, 2006
 

hi,

   The significance of input attribute for the action tag is:

If any FormBean is mapped with that path then the request goes to that FormBean first instead of that action  and it will set all the properties of that bean with the values that ur passed through that jsp and if the validate attribute is true then it will call the validate() method of that form bean.

   In that method normally we will check the validations of those properties.. if validation failed for any field then we normally register that error in the ActionErrors Object.The return type of that validate method is ActionErrors object.The RequestProcessor will take care of this duty for the checking of ActionErrors Object if any ActionError object is present in that ActionErrors object then it will search for the "input" attribute in that action path.. if any file is mentioned in that 'input' attribute then the request will goes to that file (normally JSP we are using)instead of that action what ur mapped in the action path..

    

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions