Re: Form class contacting an Ejb

2001-11-12 Thread Burr Sutter

This is the way I've handled default values as well. Since the action class has access 
to the form you can simply call the setThis and setThat methods directory from the 
action class.

Burr
[EMAIL PROTECTED]
--
Sent via jApache.org

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Form class contacting an Ejb

2001-11-12 Thread Sean Owen

In my opinion, prepopuplation of form elements should be handled outside the
form - I think the ActionForm objects should be relatively light.

I've typically seen prepopulation handled in the Action which forwards to the
JSP... you might have a ViewMyPageAction class which instantiates the
MyPageForm bean, sets its default values, then sets the form into the request
and forwards to the JSP.

That Action could quite reasonably call EJB methods to get default values.

Sean


--- Abhishek Srivastava <[EMAIL PROTECTED]> wrote:
> hello all,
> 
> I have a form, in which some of the fields should be populated by default
> when the form is displayed to the user.
> 
> These values are available from an ejb.
> 
> Is it OK, if I have an class which derives from ActionForm to contact an
> ejb
> and get default values? or should i keep these classes only for validation
> and create another Action class to contact Ejbs.
> 
> thanks for your help.
> 
> regards,
> Abhishek.
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Form class contacting an Ejb

2001-11-12 Thread Abhishek Srivastava

hello all,

I have a form, in which some of the fields should be populated by default
when the form is displayed to the user.

These values are available from an ejb.

Is it OK, if I have an class which derives from ActionForm to contact an ejb
and get default values? or should i keep these classes only for validation
and create another Action class to contact Ejbs.

thanks for your help.

regards,
Abhishek.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: