ONLINE SHOPPING USING SESSION IN JSP


Aim:
            To create JSP program for online shopping using session.
Algorithm:
1. Code Window:
            Step 1: Click Start à IBM WebSphere Studio à Application Developer 5.0
            Step 2: Specify the directory to be used for the session and click ok.
Step 3: In the J2EE – IBM WebSphere Studio Application Developer window click              File àNew à Project.
Step 4: In the New Project window select web, web project and click Next.
Step 5: Give a project name and click Finish.
Step 6: Right click Web content, select new HTML/XHTML.
Step 7: Write the code in the coding window.
2.  JSP Coding:
            Step 1: Add session : session.setAttribute(“name”,value);
            Step 2:Retrieve session : value=session.getAttribute(“name”);
3. Execution Window:
            Step 1:Right click the first html and click run on server.
            Step 2: Stop the program.

0 comments: