Hello Everybody,
I Am New To JSP-SERVLETS & I Have Working On Example Where I Have 1
Jsp Page Where We Select Color & When
Click On Next We Get 2nd JSP Page Where We select Brands & In This 2nd JSP Page I Get Value Of Color using
colorbrand = request.getParameter("color");
session.setAttribute("col",colorbrand);
and set in session with variable named "col"
On 2nd JSP Page I Have Next Button WHcih goes To 3rd JSP Page Where It Shows Price Selection & In This 3rd JSP
Page I Get Values Of Color & Brand As
brandprice = request.getParameter("brand");
session.setAttribute("br",brandprice);
brandcol = session.getAttribute("col").toString();
out.println("Brand :"+ brandprice +"Color :"+ brandcol);
So IN 3rd JSP Page I Get 3 Values i.e color,brand & price & Then I Call
Servlet Which Does Processing
& Shows Result According To Color,Brand & Price Selected in my result.jsp,But Problem Which I Am Facing Is
In My Servlet Code I Have Written As
String col = session.getAttribute("col").toString();// null values
String brand = session.getAttribute("br").toString();
String price = request.getParameter("price");
& I Get null values for color ie "col",so is there any way that I can get this values of color & brand.
Thank-You