I have the below code. Its a shopping cart, being done via MVC.
The below is the controller code and below it is the bean code.
When I add an item and try to click on view cart, it is supposed to go to processViewAction in the controller and retrive the items added from the latest cart and redirect to view cart.jsp and display the cart....
but it wont, it gives me a internal error. could someone throw some light on this please.
I have a .html page - where there are 5 check box options to pick and add them to cart.
there is a add to cart button.
on the click of add to cart,it contact the controller, a new session is created, add's the added items to cart, addsthe result to the bean and i add the b ean to the session and using request dispatcher, the check marked items will get displayed in itemsAdded.jsp
There is a view cart button in this itemsadded.jsp, on the click of view cart, it goes back to the cocntroller, gets the data from the bean and request dispatcher the added items are displayed in the cart via the viewcart.jsp page specified in request dispatcher.
What happens: On the click on view cart button in itemsAdded.jsp, it gives me a error code 500 pointing to processViewAction and says null point exception. i am unable to figure out the null point here.