Submit included in GET parameters

2001-06-06 Thread Marc S. Penner

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 [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
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:[EMAIL PROTECTED]]
 Sent: Wednesday, June 06, 2001 2:18 PM
 To: [EMAIL PROTECTED]
 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
 [EMAIL PROTECTED] 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




RE: Submit included in GET parameters

2001-06-06 Thread McShane, Matthew

do not give the submit button a name parameter.

--matt.

-Original Message-
From: Marc S. Penner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 3:24 PM
To: [EMAIL PROTECTED]
Subject: 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 [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
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:[EMAIL PROTECTED]]
 Sent: Wednesday, June 06, 2001 2:18 PM
 To: [EMAIL PROTECTED]
 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
 [EMAIL PROTECTED] 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