How do you distinguish the when the execute method is being called to populate the form and when it is being called to post the data from the form?

An example for the struts-config would be most useful.

Q

Aaron Longwell wrote:

The Action is called prior to presenting the JSP only if you've set up:

an action mapping to map the user's URL to a an action
a forward to the JSP
and you set the Action's execute method to return a forward to that JSP

The "entry point" into the action is the execute() method which returns an ActionForward object. To create an ActionForward object use code like the following in your execute() method:

return mapping.findForward("name_of_forward");



Qasim Khawaja wrote:

I need to populate three drop downs in a jsp before presentation. Currently I have writted routines in the ActionForm which access the DAO class and populate the lists. The problem is that the DAO class throws an exception which means that I have to make my ActionForm aware of a hibernateException. I want to do this in the action class and make use of declarative exception handling.

Is the Action called prior to presenting the jsp? If so what is the entry point?

Q




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-- ====================================== Qasim Khawaja Computing Officer Oxford Colleges Admissions Office University Offices | Wellington Square |T: (01865) 280128 Oxford OX1 2JD |F: (01865) 280121 Email: [EMAIL PROTECTED] ======================================




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to