Nested logic:iterate tags

2001-06-06 Thread Marc S. Penner

Is it possible to nest logic:iterate tags?  I would prefer not to try to
spend too much time trying to do something that isn't possible.

Marc


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




Re: Nested logic:iterate tags

2001-06-06 Thread Marc S. Penner

Apparently, it is.  I tried it and it worked quite easily.  Answered my own
question.

Marc

- Original Message -
From: Marc S. Penner [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 06, 2001 10:32 AM
Subject: Nested logic:iterate tags


 Is it possible to nest logic:iterate tags?  I would prefer not to try to
 spend too much time trying to do something that isn't possible.

 Marc


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


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




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: Precompiling JSP Pages?

2001-05-31 Thread Marc S. Penner

This is the rule that I have used in the build.xml file for pre-compiling
JSPs using WebLogic 6.0 jspc via an Ant build.  Obviously the properties
(e.g. CLASSPATH) and paths need to be set up properly for this to work.


target name=jsp
java
classpath=${CLASSPATH};${SRC_DIR}\docroot;${PROJECT_HOME}\stage
  classname=weblogic.jspc
  fork=yes
arg value=-webapp/
arg value=source/docroot/
arg value=-d/
arg value=stage/WEB-INF/classes/
arg value=-depend/
arg value=-keepgenerated/
arg value=source/docroot/*.jsp/
/java
/target

Marc


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