Hi,
I am getting null when I use <jsp:getProperty, Please help me. I am using
Tomcat 4.1 Server.

Please check the code and let me know the possible solution.

 <jsp:useBean id="locationBean"
class="com.browline.nina.location.LocationBean" scope="session" />  <!--
Declared a LocationBean -->
 
 <select name="CityId" id="SelectCityId"  onChange="">   <!-- Combo Box -->

 <% ArrayList
locationList=(ArrayList)request.getAttribute(RequestConstants.LIST);
  if (locationList!=null)
  {
         for (int i=0;i<locationList.size();i++)
        {
                  locationBean=(LocationBean)locationList.get(i);
                  System.out.println("City Name in
JSP:"+locationBean.getCityname());   //On the console it prints all City
Names
%>
  <option value=""> <jsp:getProperty name="locationBean" property="cityname"
/> </option>
  <!-- adding null to combo box. Please let me know how to solve the error
-->

  <% } 
       } %>       
</select>

Thanks & Regards,
______________________________________________________________
Hari Kumar.G | Software Engineer | Browline Consulting Services
140, Seshan Complex | Anna Salai | Chennai - 600047 
Cell: 91-0-9840635910 | Office: 044 - 43114143
[EMAIL PROTECTED] | www.browline.com
______________________________________________________________



The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not
the intended recipient, you should not disseminate, distribute or copy this
e-mail. Please notify the sender immediately and destroy all copies of this
message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should
check this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any virus transmitted
by this email.

www.browline.com        




Reply via email to