struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Qasim Khawaja <Qasim.Khaw...@admin.ox.ac.uk>
Subject Re: Populating Drop downs
Date Tue, 15 Jul 2003 13:33:34 GMT
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: struts-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>

-- 
======================================
Qasim Khawaja
Computing Officer
Oxford Colleges Admissions Office
University Offices  |
Wellington Square   |T: (01865) 280128
Oxford OX1 2JD	    |F: (01865) 280121
Email: Qasim.Khawaja@admin.ox.ac.uk
======================================




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message