• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

help on struts-config.xml execution

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

in struts-config.xml what is the sequence of statements in which they get executed if "loginAuthentication.do" is called. I have placed a sample code below.


<form-beans>
<form-bean name="loginForm" type="apps.form.LoginAuthenticationForm"/>
</form-beans>
<action-mappings>
<action path="/loginAuthentication"
type="apps.action.LoginAuthenticationAction"
scope="session"
name= "loginForm"
validate="false">
<forward name="success" path="/jsp/welomepg.jsp"></forward>
</action-mapping>

thanks
 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
not like sequence it depends on the type of action is called. it gets executed and the corresponding action class is called & form object is created & populated.
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First Control comes to struts-config.xml, then it will detect with action path that action will be detected, in that action tag it will identify Formbean name through "name" attribut of action tag, then control will goes to form-bean tag, there form bean object will be created , user entered values will be populated in to from bean, then action class object will be created, control goes to execute () method, after returning actionforward then again control comes back to action tag ,apropriate jsp page will page send back to client to as response.
 
narender kaasam
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First Control comes to struts-config.xml, then it will detect with action path that action will be detected, in that action tag it will identify Formbean name through "name" attribut of action tag, then control will goes to form-bean tag, there form bean object will be created , user entered values will be populated in to from bean, then action class object will be created, control goes to execute () method, after returning actionforward then again control comes back to action tag ,apropriate jsp page will page send back to client to as response.
 
What? What, what, what? What what tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic