How assign to null an obj eg cart, but that includes attributes/vars eg total, totalTax... AND other objs of kind lineItem,... all these to null assign?
supposing that below provides the xml file as server to another script ajax(non shown) bookrss.xml where in netbeans must be???
the below AjaxRSSServlet.java is in:
Source Packages>default Package or
Be careful here. From the posts so far, this topic is not very closely related to ajax. And there is currently a book promotion going on in that forum.
EDIT... Anyway, it looks like you have posted there... And...
1. The topic is not an ajax topic. A server side code that happens to support a client that happens to be using ajax to make the call doesn't make it an ajax question.
2. Duplicate topic. The post is an exact post of this one. With the same vague reference to carts, but nothing in the code that shows anything related to it. And ... cross posting wastes people's time and effort.
3. Book promotion in progress.
So... the other topic was trashed. Please continue the discussion here. Please elaborate your question more -- specifically what you have been asked here.
Joined: Jan 31, 2010
Martin Vanyavchich wrote:If I understand you correctly, you could do something like
This would assign a new, possibly empty, cart to the cart variable. The other option is to make a function that would set all the variables in a cart to null, zero ...
if I have in JSP the
<jsp:useBean id="AddChoosePlant" scope="session" class="beans.OrderTotals" />
as cart obj that contains lineItem objs and total vars,
then how to act?
Joined: Oct 13, 2005
Sorry, Henry. I hadn't noticed the duplicate post.
subject: How assign to null an obj that contains other objs as attributes