jakarta-watchdog-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sant...@locus.apache.org
Subject cvs commit: jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/beantests/setProperty Errorpage.jsp negativePropSyntax.jsp negativeSetPropNotProperty.jsp negativeSetPropNotWrite.jsp positiveSetBooleanObj.jsp positiveSetBooleanPrim.jsp positiveSetByteObj.jsp positiveSetBytePrim.jsp positiveSetCharObj.jsp positiveSetCharPrim.jsp positiveSetDoubleObj.jsp positiveSetDoublePrim.jsp positiveSetFloatObj.jsp positiveSetFloatPrim.jsp positiveSetIndexedProp.jsp positiveSetIntObj.jsp positiveSetIntPrim.jsp positiveSetLongObj.jsp positiveSetLongPrim.jsp positiveSetPropAll.jsp positiveSetPropNoParam.jsp positiveSetPropParam.jsp positiveSetPropSingleQuotes.jsp positiveSetPropValue.jsp positiveUseBeanInit.jsp positiveUseBeanNext.jsp
Date Tue, 03 Oct 2000 23:58:59 GMT
santosh     00/10/03 16:58:59

  Added:       src/server/jsp-tests/jsp/core_syntax/beantests/setProperty
                        Errorpage.jsp negativePropSyntax.jsp
                        negativeSetPropNotProperty.jsp
                        negativeSetPropNotWrite.jsp
                        positiveSetBooleanObj.jsp
                        positiveSetBooleanPrim.jsp positiveSetByteObj.jsp
                        positiveSetBytePrim.jsp positiveSetCharObj.jsp
                        positiveSetCharPrim.jsp positiveSetDoubleObj.jsp
                        positiveSetDoublePrim.jsp positiveSetFloatObj.jsp
                        positiveSetFloatPrim.jsp positiveSetIndexedProp.jsp
                        positiveSetIntObj.jsp positiveSetIntPrim.jsp
                        positiveSetLongObj.jsp positiveSetLongPrim.jsp
                        positiveSetPropAll.jsp positiveSetPropNoParam.jsp
                        positiveSetPropParam.jsp
                        positiveSetPropSingleQuotes.jsp
                        positiveSetPropValue.jsp positiveUseBeanInit.jsp
                        positiveUseBeanNext.jsp
  Log:
  watchdog 4.0
  
  Revision  Changes    Path
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/beantests/setProperty/Errorpage.jsp
  
  Index: Errorpage.jsp
  ===================================================================
  <html>
  <title>Errorpage</title>
  <body bgcolor=red>
  <h2>Error occured !</h2>
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/beantests/setProperty/negativePropSyntax.jsp
  
  Index: negativePropSyntax.jsp
  ===================================================================
  <html>
  <title>negativePropSyntax</title>
  <body>
  <% /** 	Name : negativePropSyntax
  	Description : Create a valid useBean action in JSP. Use both a param 
  		      and a value attribute in the setProperty action.
  	Result : Fatal Translation Error
  **/ %>	 
  <%@ page errorpage="Errorpage.jsp" %>
  <!-- Declaring the bean with out body -->
  <jsp:useBean id="myBean" scope="request" class="core_syntax.beantests.setProperty.SetpropBean"
/>
  <!-- Setting the property.. here the syntax is misused -->
  <jsp:setProperty name="myBean" property="*" value="Kash" />
  <!-- Accessing the properties thru a scriptlet -->
  <% out.println(myBean.getName()); %> 
  </body>
  </html>
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/beantests/setProperty/negativeSetPropNotProperty.jsp
  
  Index: negativeSetPropNotProperty.jsp
  ===================================================================
  <html>
  <title>negativeSetPropNotProperty</title>
  <body>
  <% /** 	Name : negativeSetPropNotProperty
  	Description : Accessing a non-existant property of an explicit bean 
                        through a getProperty action
  	Result : Should return an error page.
  **/ %>	 
  <!-- Declaring the bean with out body -->
  <jsp:useBean id="myBean" scope="request" class="core_syntax.beantests.setProperty.SetpropBean"
/>
  <jsp:setProperty name="myBean" property="foo" value="change" />
  </body></body>
  </html> 
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/beantests/setProperty/negativeSetPropNotWrite.jsp
  
  Index: negativeSetPropNotWrite.jsp
  ===================================================================
  <html>
  <title>negativeSetPropNotWrite</title>
  <body>
  <% /** 	Name : negativeSetPropNotWrite
  	Description : Accessing a read-only property of an explicit bean 
                        through a getProperty action
  	Result : Should return an error page.
  **/ %>	 
  <!-- Declaring the bean with out body -->
  <jsp:useBean id="myBean" scope="request" class="core_syntax.beantests.setProperty.SetpropBean"
/>
  <jsp:setProperty name="myBean" property="bar" value="change" />
  </body>
  </html> 
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/beantests/setProperty/positiveSetBooleanObj.jsp
  
  Index: positiveSetBooleanObj.jsp
  ===================================================================
  <html>
  <title>positiveSetBooleanObj</title>
  <body>
  <% /** 	Name : positiveSetBooleanObj
  	Description : use a setProperty  to set a Boolean value in a bean
  	Result : should return a Boolean value.
  **/ %>	 
  <!-- We are testing if are able to set a Boolean property and get it -->
  <jsp:useBean id="myBean" class="core_syntax.beantests.setProperty.MiscBean" />
  <jsp:setProperty name="myBean" property="objectBoolean" value="true" />
  <jsp:getProperty name="myBean" property="objectBoolean" />
  
  </body>
  </html> 
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/beantests/setProperty/positiveSetBooleanPrim.jsp
  
  Index: positiveSetBooleanPrim.jsp
  ===================================================================
  <html>
  <title>positiveSetBooleanPrim</title>
  <body>
  <% /** 	Name : positiveSetBooleanPrim
  	Description : use a setProperty  to set a boolean value in a bean
  	Result :should return a boolean value.
  **/ %>	 
  <!-- We are testing if are able to set a PrimitiveBoolean property and get it -->
  <jsp:useBean id="myBean" class="core_syntax.beantests.setProperty.MiscBean" />
  <jsp:setProperty name="myBean" property="primitiveBoolean" value="false" />
  <jsp:getProperty name="myBean" property="primitiveBoolean" />
  
  </body>
  </html> 
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/beantests/setProperty/positiveSetByteObj.jsp
  
  Index: positiveSetByteObj.jsp
  ===================================================================
  <html>
  <title>positiveSetByteObj</title>
  <body>
  <% /** 	Name : positiveSetByteObj
  	Description :use a setProperty to set a Byte value in a bean 
  	Result :should return a Byte value.
  **/ %>	 
  <!-- We are testing if are able to set a byte property and get it -->
  <jsp:useBean id="myBean" class="core_syntax.beantests.setProperty.MiscBean" />
  <jsp:setProperty name="myBean" property="objectByte" value="123" />
  <jsp:getProperty name="myBean" property="objectByte" />
  
  </body>
  </html> 
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/beantests/setProperty/positiveSetBytePrim.jsp
  
  Index: positiveSetBytePrim.jsp
  ===================================================================
  <html>
  <title>positiveSetBytePrim</title>
  <body>
  <% /** 	Name : positiveSetBytePrim
  	Description : use a setProperty to set a byte value in a bean
  	Result :should return a byte value.
  **/ %>	 
  <!-- We are testing if are able to set a primitiveByte property and get it -->
  <jsp:useBean id="myBean" class="core_syntax.beantests.setProperty.MiscBean" />
  <jsp:setProperty name="myBean" property="primitiveByte" value="123" />
  <jsp:getProperty name="myBean" property="primitiveByte" />
  
  </body>
  </html> 
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/beantests/setProperty/positiveSetCharObj.jsp
  
  Index: positiveSetCharObj.jsp
  ===================================================================
  <html>
  <title>positiveSetCharObj</title>
  <body>
  <% /** 	Name : positiveSetCharObj
  	Description : use setProperty to set a Character value in a bean.
  	Result :should return a Character value.
  **/ %>	 
  <!-- We are testing if are able to set a Character property and get it -->
  <jsp:useBean id="myBean" class="core_syntax.beantests.setProperty.MiscBean" />
  <jsp:setProperty name="myBean" property="objectChar" value="A" />
  <jsp:getProperty name="myBean" property="objectChar" />
  </body>
  </html> 
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/beantests/setProperty/positiveSetCharPrim.jsp
  
  Index: positiveSetCharPrim.jsp
  ===================================================================
  <html>
  <title>positiveSetCharPrim</title>
  <body>
  <% /** 	Name : positiveSetCharPrim
  	Description : use setProperty to set a char value in a bean.
  	Result :should return a char value.
  **/ %>	 
  <!-- We are testing if are able to set a Primitive Character property and get it -->
  <jsp:useBean id="myBean" class="core_syntax.beantests.setProperty.MiscBean" />
  <jsp:setProperty name="myBean" property="primitiveChar" value="R" />
  <jsp:getProperty name="myBean" property="primitiveChar" />
  
  </body>
  </html> 
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/beantests/setProperty/positiveSetDoubleObj.jsp
  
  Index: positiveSetDoubleObj.jsp
  ===================================================================
  <html>
  <title>positiveSetDoubleObj</title>
  <body>
  <% /** 	Name : positiveSetDoubleObj
  	Description : use a setProperty to set a Double value in a bean
  	Result :should return a Double value.
  **/ %>	 
  <!-- We are testing if are able to set a Double property and get it -->
  <jsp:useBean id="myBean" class="core_syntax.beantests.setProperty.MiscBean" />
  <jsp:setProperty name="myBean" property="objectDouble" value="123456" />
  <jsp:getProperty name="myBean" property="objectDouble" />
  
  </body>
  </html> 
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/beantests/setProperty/positiveSetDoublePrim.jsp
  
  Index: positiveSetDoublePrim.jsp
  ===================================================================
  <html>
  <title>positiveSetDoublePrim</title>
  <body>
  <% /** 	Name : positiveSetDoublePrim
  	Description : use a setProperty to set a double value in a bean
  	Result :should return a double value.
  **/ %>	 
  <!-- We are testing if are able to set a PrimitiveDouble property and get it -->
  <jsp:useBean id="myBean" class="core_syntax.beantests.setProperty.MiscBean" />
  <jsp:setProperty name="myBean" property="primitiveDouble" value="123456" />
  <jsp:getProperty name="myBean" property="primitiveDouble" />
  
  </body>
  </html> 
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/beantests/setProperty/positiveSetFloatObj.jsp
  
  Index: positiveSetFloatObj.jsp
  ===================================================================
  <html>
  <title>positiveSetFloatObj</title>
  <body>
  <% /** 	Name : positiveSetFloatObj
  	Description : use a setProperty to set a Float value in a bean
  	Result :should return a Float value.
  **/ %>	 
  <!-- We are testing if are able to set a Float property and get it -->
  <jsp:useBean id="myBean" class="core_syntax.beantests.setProperty.MiscBean" />
  <jsp:setProperty name="myBean" property="objectFloat" value="15" />
  <jsp:getProperty name="myBean" property="objectFloat" />
  
  </body>
  </html> 
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/beantests/setProperty/positiveSetFloatPrim.jsp
  
  Index: positiveSetFloatPrim.jsp
  ===================================================================
  <html>
  <title>positiveSetFloatPrim</title>
  <body>
  <% /** 	Name : positiveSetFloatPrim
  	Description : use a setProperty to set a float value in a bean
  	Result :should return a float value.
  **/ %>	 
  <!-- We are testing if are able to set a primitiveFloat property and get it -->
  <jsp:useBean id="myBean" class="core_syntax.beantests.setProperty.MiscBean" />
  <jsp:setProperty name="myBean" property="primitiveFloat" value="123" />
  <jsp:getProperty name="myBean" property="primitiveFloat" />
  
  </body>
  </html> 
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/beantests/setProperty/positiveSetIndexedProp.jsp
  
  Index: positiveSetIndexedProp.jsp
  ===================================================================
  <html>
  <title>positiveSetIndexedProp</title>
  <body>
  <%
  /**
   *  TestCase name : positiveSetIndexedProp
   *  Description   : Here, the setProperty tag is used to set the value for
   *                  an indexed property.An array is declared and defined in a
   *                  scriptlet and then assigned through the setProperty tag, with 
   *                  an expression.
   *  Result        : Expected to set the value of the array.
   */
   %>
  
  <%
  //Declaring the array
  int[] iAry={24,25,26}; 
  %>
  
  <!-- Declaring the bean without body -->
  <jsp:useBean id="myBean" scope="request" class="core_syntax.beantests.setProperty.SetpropBean"
/>
  <jsp:setProperty name="myBean" property="intAry" value="<%= iAry %>" />
  <!-- Accessing the property through a scriptlet -->
  
  <%
  // Accessing the set property.
  int[] ary=myBean.getIntAry();
  int l=ary.length;
  for(int j=0;j<l;j++)
  out.println(ary[j]);
  %>
  
  </body>
  </html> 
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/beantests/setProperty/positiveSetIntObj.jsp
  
  Index: positiveSetIntObj.jsp
  ===================================================================
  <html>
  <title>positiveSetIntObj</title>
  <body>
  <% /** 	Name : positiveSetIntObj
  	Description :use a setProperty to set a Integer value in a bean. 
  	Result :should return a Integer value.
  **/ %>	 
  <!-- We are testing if are able to set an int property and get it -->
  <jsp:useBean id="myBean" class="core_syntax.beantests.setProperty.MiscBean" />
  <jsp:setProperty name="myBean" property="objectInt" value="21" />
  <jsp:getProperty name="myBean" property="objectInt" />
  
  </body>
  </html> 
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/beantests/setProperty/positiveSetIntPrim.jsp
  
  Index: positiveSetIntPrim.jsp
  ===================================================================
  <html>
  <title>positiveSetIntPrim</title>
  <body>
  <% /** 	Name : positiveSetIntPrim
  	Description :use a setProperty to set a int value in a bean. 
  	Result :should return a int value.
  **/ %>	 
  <!-- We are testing if are able to set a PrimitiveInt property and get it -->
  <jsp:useBean id="myBean" class="core_syntax.beantests.setProperty.MiscBean" />
  <jsp:setProperty name="myBean" property="primitiveInt" value="12" />
  <jsp:getProperty name="myBean" property="primitiveInt" />
  
  </body>
  </html> 
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/beantests/setProperty/positiveSetLongObj.jsp
  
  Index: positiveSetLongObj.jsp
  ===================================================================
  <html>
  <title>positiveSetLongObj</title>
  <body>
  <% /** 	Name : positiveSetLongObj
  	Description : use a setProperty to set a Long value in a bean
  	Result :should return a Long value.
  **/ %>	 
  <!-- We are testing if are able to set a Long property and get it -->
  <jsp:useBean id="myBean" class="core_syntax.beantests.setProperty.MiscBean" />
  <jsp:setProperty name="myBean" property="objectLong" value="12345" />
  <jsp:getProperty name="myBean" property="objectLong" />
  
  </body>
  </html> 
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/beantests/setProperty/positiveSetLongPrim.jsp
  
  Index: positiveSetLongPrim.jsp
  ===================================================================
  <html>
  <title>positiveSetLongPrim</title>
  <body>
  <% /** 	Name : positiveSetLongPrim
  	Description : use a setProperty to set a long value in a bean
  	Result :should return a long value.
  **/ %>
  <!-- We are testing if are able to set a Long property and get it -->
  <jsp:useBean id="myBean" class="core_syntax.beantests.setProperty.MiscBean" />
  <jsp:setProperty name="myBean" property="primitiveLong" value="54321" />
  <jsp:getProperty name="myBean" property="primitiveLong" />
  
  </body>
  </html> 
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/beantests/setProperty/positiveSetPropAll.jsp
  
  Index: positiveSetPropAll.jsp
  ===================================================================
  <html>
  <title>positiveSetPropAll</title>
  <body>
  <% /** 	Name : positiveSetPropAll
  	Description : Create a valid useBean action in JSP. Set all properties 
  		      of that bean from the request using a 
  		      <jsp:setProperty property="*"> action. Then access all 
  		      properties of the bean.
  	Result : As we are setting "param as Name=MANGO,num=90336,str=hello,"
  		It should return "hello,MANGO,90336".
  **/ %>	 
  <!-- Declaring the bean with out body -->
  <jsp:useBean id="myBean" scope="request" class="core_syntax.beantests.setProperty.SetpropBean"
/>
  <jsp:setProperty name="myBean" property="*" />
  <!-- Accessing the properties thru a scriptlet -->
  <% out.println(myBean.getStr()); %> <br> <% out.println(myBean.getName());
%>
  <br> <% out.println(myBean.getNum()); %>
  </body>
  </html> 
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/beantests/setProperty/positiveSetPropNoParam.jsp
  
  Index: positiveSetPropNoParam.jsp
  ===================================================================
  <html>
  <title>positiveSetPropNoParam</title>
  <body>
  <% /** 	Name : positiveSetPropNoParam
  	Description : Create a valid useBean action in JSP. Set a specific 
  	              property of that bean from the request using a 
  	              <jsp:setProperty property="propName"> action. Then access 
  	              that property.Ensure that the request contains a parameter 
  	              with the same name as the Bean Name.
  	Result :As we are setting "param as Str=SAPPOTA"
  		It should return "SAPPOTA".
  **/ %>	 
  <!-- Declaring the bean with body -->
  <jsp:useBean id="myBean" scope="request" class="core_syntax.beantests.setProperty.SetpropBean">
  <jsp:setProperty name="myBean" property="str" />
  </jsp:useBean>
  <!-- Accessing the property thru a scriptlet -->
  <%
  out.println(myBean.getStr());
  %>
  </body>
  </html> 
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/beantests/setProperty/positiveSetPropParam.jsp
  
  Index: positiveSetPropParam.jsp
  ===================================================================
  <html>
  <title>positiveSetPropParam</title>
  <body>
  <% /** 	Name : positiveSetPropParam
  	Description : Create a valid useBean action in JSP. Set a specific 
  		      property of that bean from the request using a 
  		      <jsp:setPropertyparam="paramname> action. 
  		      Then access that property.
  	Result : As we are setting "param as Name=MANGO", It should 
  		 return "MANGO".
  **/ %>	 
  <!-- Declaring the bean with out body -->
  <jsp:useBean id="myBean" scope="request" class="core_syntax.beantests.setProperty.SetpropBean"
/>
  <jsp:setProperty name="myBean" property="name" param="Name" />
  <!-- Accessing the property thru a scriptlet -->
  <%
  out.println(myBean.getName());
  %>
  </body>
  </html> 
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/beantests/setProperty/positiveSetPropSingleQuotes.jsp
  
  Index: positiveSetPropSingleQuotes.jsp
  ===================================================================
  <html>
  <title>positiveSetPropSingleQuotes</title>
  <body>
  <% /** 	Name : positiveSetPropSingleQuotes
  	Description : use a scriptlet expression in single quotes
                        as 'value' attribute in setProperty
  	Result :we should get the expected page without error
  **/ %>	 
  <!- testing if are able to set a  property using single quoted expression -->
  <jsp:useBean id="myBean" class="core_syntax.beantests.setProperty.MiscBean" />
  <% int k=10;  %>
  <% byte p=10; %>
  <jsp:setProperty name="myBean" property="path" value= '<%= request.getProtocol() %>'
/>
  <jsp:getProperty name="myBean" property="path" />
  
  </body>
  </html> 
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/beantests/setProperty/positiveSetPropValue.jsp
  
  Index: positiveSetPropValue.jsp
  ===================================================================
  <html>
  <title>positiveSetPropValue</title>
  <body>
  <% /** 	Name : positiveSetPropValue
  	Description : Create a valid useBean action in JSP. Set a specific 
  		      property of that bean from the request using a 
  		      <jsp:setProperty value="propValue"> action. 
  		      Then access that property.
  	Result : Should return the new value of that property.
  **/ %>	 
  
  <!-- Declaring the bean with out body -->
  <jsp:useBean id="myBean" scope="request" class="core_syntax.beantests.setProperty.SetpropBean"
/>
  <jsp:setProperty name="myBean" property="name" value="KHATTA-MEETHA" />
  <!-- Accessing the property thru a scriptlet -->
  <%
  out.println(myBean.getName());
  %>
  </body>
  </html> 
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/beantests/setProperty/positiveUseBeanInit.jsp
  
  Index: positiveUseBeanInit.jsp
  ===================================================================
  <html>
  <title>positiveUseBeanInit</title>
  <body>
  <% /** 	Name : positiveUseBeanInit
  	Description : Create a valid useBean action. In the body of the action, 
  		      put setProperty statements to set specific properties of 
  		      the bean.Ensure that the bean class does not exist before 
  		      calling this page. Call the page for the first time.
  	Result :Should return the value of the property that was set in the
                  useBean body.
  **/ %>	 
  <!-- Declaring the bean   -->
  <jsp:useBean id="myBean" scope="request" class="core_syntax.beantests.setProperty.SetpropBean"
/>
  <jsp:setProperty name="myBean" property="name" value="Tony" />
  
  <!-- Accessing the property thru a scriptlet -->
  <%
  out.println(myBean.getName());
  %>
  </body>
  </html> 
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/beantests/setProperty/positiveUseBeanNext.jsp
  
  Index: positiveUseBeanNext.jsp
  ===================================================================
  <html>
  <title>positiveUseBeanNext</title>
  <body>
  <% /** 	Name : positiveUseBeanNext
  	Description : Create a valid useBean action. In the body of the action, 
  		      put setProperty statements to set specific properties of 
  		      the bean.Ensure that the bean already exists. Call the 
  		      page and check the value of the property that you have 
  		      specified in the useBean body.
  	Result :Should return the non-initial value of the property.
  **/ %>	 
  <!-- Declaring the bean with out body -->
  <jsp:useBean id="myBean" scope="request" class="core_syntax.beantests.setProperty.SetpropBean"
/>
  <jsp:setProperty name="myBean" property="num" value="90336" />
  <jsp:setProperty name="myBean" property="str" value="APPLE" />
  <!-- Accessing the property thru a scriptlet -->
  <%
  out.println(myBean.getNum());
  out.println(myBean.getStr());
  %>
  </body>
  </html> 
  
  
  

Mime
View raw message