You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by jm...@apache.org on 2003/02/27 01:04:07 UTC

cvs commit: jakarta-struts/src/test/org/apache/struts/taglib SimpleBeanForTesting.java

jmitchell    2003/02/26 16:04:07

  Modified:    src/test/org/apache/struts/taglib SimpleBeanForTesting.java
  Log:
  Adding a few more features.
  
  Revision  Changes    Path
  1.2       +11 -0     jakarta-struts/src/test/org/apache/struts/taglib/SimpleBeanForTesting.java
  
  Index: SimpleBeanForTesting.java
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/src/test/org/apache/struts/taglib/SimpleBeanForTesting.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SimpleBeanForTesting.java	22 Feb 2003 02:52:27 -0000	1.1
  +++ SimpleBeanForTesting.java	27 Feb 2003 00:04:07 -0000	1.2
  @@ -92,6 +92,17 @@
   	private Enumeration enumeration;
   	private Collection collection;
   
  +	//Copied right from the FAQ
  +	private String strAry[] =
  +    	{ "String 0", "String 1", "String 2", "String 3", "String 4" };
  +
  +    public String getStringIndexed(int index) { 
  +    	return (strAry[index]); 
  +    }
  +    public void setStringIndexed(int index, String value){ 
  +    	strAry[index] = value; 
  +    }
  +
   	/**
   	 * Returns the lst.
   	 * @return List
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org