I have the following scenarion. A form bean with a private member: private LineItem item = null;
with appropriate getters and setters. In one of my actions I call setItem and obviously pass it a LineItem object. LineItem is composed of: private Product product; private int quantity; private String productKey; Again with appropriate getters/setters In a JSP I am trying to access the properties of LineItem with the following tag: <nested:write name='addToCartForm' property='item.quantity'/> and I keep on getting: [ServletException in:/jsps/shop/productDetailsPage.jsp] Null property value for 'item'' I also tried with: <c:out value='${addToCartForm.item.quantity}'/> and in this case nothing printed. I know the form bean is in scope because I tried this: <% AddToCartForm form = (AddToCartForm)session.getAttribute("addto.cart.form"); if( form == null ){ out.println("The form is null"); } else{ out.println("The form is not null"); LineItem item = form.getItem(); out.println(item.getQuantity() ); } %> and the quantity property printed out this time. If anyone can point me to a solution to this I'd appreciate it. Thanks __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]