You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Marc S. Penner" <ma...@yahoo.com> on 2001/06/06 21:24:25 UTC

Submit included in GET parameters

Is there any way to avoid having the submit text show up as a GET parameter
when submitting a form?  I want the other form elements to show up as GET
parameters so that the page can be bookmarked, but I would prefer that the
submit text not show up.  Is there a way to do this?  Thanks.

Marc

----- Original Message -----
From: "Nanduri, Amarnath" <Am...@Agilquest.com>
To: <st...@jakarta.apache.org>
Sent: Wednesday, June 06, 2001 2:45 PM
Subject: RE: bean:write Tag and polymorphic behavior


> David,
>
>      Thanks for the info. I do have the setters. Too lazy to include them
in
> my actual mail.
>
> cheers,
> Amar..
>
> -----Original Message-----
> From: David Winterfeldt [mailto:dwinterfeldt@yahoo.com]
> Sent: Wednesday, June 06, 2001 2:18 PM
> To: struts-user@jakarta.apache.org
> Subject: Re: bean:write Tag and polymorphic behavior
>
>
> Struts uses reflection.  So if the method is there, it
> will find it.  You will need a setter though for the
> key method or it will generate errors.
>
> Here is an excerpt from the PropertyUtils
> documentation.
>
> Utility methods for using Java Reflection APIs to
> facilitate generic property getter and setter
> operations on Java objects. Much of this code was
> originally included in BeanUtils, but has been
> separated because of the volume of code involved.
>
> In general, the objects that are examined and modified
> using these methods are expected to conform to the
> property getter and setter method naming conventions
> described in the JavaBeans Specification (Version
> 1.0.1). No data type conversions are performed, and
> there are no usage of any PropertyEditor classes that
> have been registered, although a convenient way to
> access the registered classes themselves is included.
>
> David
> --- "Nanduri, Amarnath"
> <Am...@Agilquest.com> wrote:
> > Hi my fellow Strutters,
> >
> >
> >     got an interesting question for you all to
> > ponder. I am using the tag
> >
> > <bean:write name="ABCForm"
> > property="superclassObject.key" /> in my jsp
> > pages.
> >
> >
> > WILL THIS WORK ? Is struts smart enough to know that
> > i am returning a
> > subclass and so can call its private variable using
> > the getter method ? I
> > know that introspection is being performed inside.
> > Some expert advise is
> > helpful...
> >
> > I am enclosing the code for this..
> >
> > public class ABCForm extends ActionForm
> > {
> >
> >   public  SuperClass  getSuperClassObject()
> >   {
> >     // basically it returns a Subclass upcasted to
> > the superclass.
> >     return  superclassObject ;
> >   }
> >
> >
> > }
> >
> >
> >  public  SuperClass
> >  {
> >
> >  }
> >
> >
> >  public  SubClass extends  SuperClass
> >  {
> >    private String key ;
> >
> >    public  String getKey()
> >    {
> >      return key ;
> >    }
> >  }
>
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail - only $35
> a year!  http://personal.mail.yahoo.com/


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com