OK, here's the deal. I've got a JSP with a form that's included in another
JSP. When the imbedded JSP gets called, I want the fields in the form to be
populated by the attributes of the object it represents. The form object
doesn't get called before the JSP is instantiated. I'm looking for a way to
do this.

--
Best regards,
Carlos Saraiva
Raleigh, NC
http://www.carlossaraiva.com mailto:[EMAIL PROTECTED]

> -----Original Message-----
> From: Marco Tedone [mailto:[EMAIL PROTECTED]
> Sent: Sunday, June 08, 2003 4:21 PM
> To: Struts Users Mailing List
> Subject: Re: How to access the ActionForm instance from within the JSP
>
>
> Ok, which functionalities do those method perform? Have you thought to
> personal taglibs? The ActionForm should contain only getter/setter and
> validation methods. *Work* methods on data could be easily
> grouped somewhere
> else. The logic of the framework is request -> ?action(form) ->
> presentation, thus doing something like presentation-> form
> doesn't seem to
> me the right way to perform some logic in your application. IMHO, data
> should arrive to the JSP already formatted and ready to be
> displayed. What I
> see as normal, is to have scope attributes to manage from within your JSP;
> to avoid code you can write custom tags.
>
> Marco
> ----- Original Message -----
> From: "Carlos Saraiva" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Sunday, June 08, 2003 9:13 PM
> Subject: RE: How to access the ActionForm instance from within the JSP
>
>
> > > > Hi,
> > > >
> > > > I need to call methods of the ActionForm instance from within
> > > the JSP. Can
> > > > someone please tell me how to do this? I've tried defining
> a bean, but
> I
> > > get
> > > > a different instance of the class.
> >
> > >
> > > Which kind of methods do you need to call?
> > >
> > > Marco
> >
> > Methods written by myself.
> >
> > --
> > Best regards,
> > Carlos Saraiva
> > Raleigh, NC
> > http://www.carlossaraiva.com mailto:[EMAIL PROTECTED]
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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]
>
>



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

Reply via email to