But if I do the reflection to check the field in my form how can I know
which field is not used in the jsp  /.\

if the form is extended to the other form, I think the case is more complex.
><

Cliff

----- Original Message ----- 
From: "Jonathan Wright" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Monday, May 09, 2005 12:51 PM
Subject: Re: The field name in jsp


> You could do something clever and use reflection to look at the method
names
> in you action form objects I guess
>
> Jonathan Wright
> ----- Original Message ----- 
> From: "Cliff Lam" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <user@struts.apache.org>
> Sent: Monday, May 09, 2005 4:44 PM
> Subject: Re: The field name in jsp
>
>
> > Should I hard code the field name in the collection ?
> >
> > I want to do it in each page in my web application .... =.="
> >
> > Cliff
> >
> > ----- Original Message ----- 
> > From: "Jonathan Wright" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <user@struts.apache.org>
> > Sent: Monday, May 09, 2005 12:37 PM
> > Subject: Re: The field name in jsp
> >
> >
> > > If the form is not dynamic, i.e. the form fields are not generated at
> > > runtime, why not just put a collection of Strings or an array or
Strings
> > > into the scope of your choice and then iterate over it at the end of
> your
> > > page
> > >
> > > Jonathan Wright
> > > ----- Original Message ----- 
> > > From: "Cliff Lam" <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List" <user@struts.apache.org>
> > > Sent: Monday, May 09, 2005 4:33 PM
> > > Subject: Re: The field name in jsp
> > >
> > >
> > > > I'm talking the field is like
> > > > <html:text property="propertyName">
> > > >
> > > > And I'm finding method to print all the field name (propertyName) at
> the
> > > end
> > > > of the page.
> > > >
> > > > eg.
> > > > <<At the end of the page>>
> > > > This page's Field:
> > > > propertyName1
> > > > propertyName2
> > > > propertyName3
> > > > ....
> > > >
> > > > Thanks a lot ^^
> > > >
> > > > Cliff
> > > >
> > > > ----- Original Message ----- 
> > > > From: "Jonathan Wright" <[EMAIL PROTECTED]>
> > > > To: "Struts Users Mailing List" <user@struts.apache.org>
> > > > Sent: Monday, May 09, 2005 12:26 PM
> > > > Subject: Re: The field name in jsp
> > > >
> > > >
> > > > > Define "fields". Are you talking about form fields?
> > > > >
> > > > > Jonathan Wright
> > > > > ----- Original Message ----- 
> > > > > From: "Cliff Lam" <[EMAIL PROTECTED]>
> > > > > To: "Struts Users Mailing List" <user@struts.apache.org>
> > > > > Sent: Monday, May 09, 2005 4:17 PM
> > > > > Subject: The field name in jsp
> > > > >
> > > > >
> > > > > Hi,
> > > > >
> > > > > How can I know the fields in jsp dynamically.
> > > > >
> > > > > eg. I want to print the all the field name at the end of each page
> > > > > dynamically.....
> > > > >
> > > > > Should I override the setProperty to do it?
> > > > >
> > > > > Thanks a lot =)
> > > > >
> > > > > Cliff
> > > > >
> > > >
> > ---------------------------------------------------------------------
> > > > > 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]
> >
> >
> > ---------------------------------------------------------------------
> > 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