Software Requirements Specifications Document

1) Introduction:

1.1)

Purpose:
This project is aimed at developing online book shopping that is of significant to those people who use internet .It is an application that can be access by all the people and can save their time instead of doing traditional shopping .Online –shopping is the process consumers go through to purchase products or services over the Internet . An online- shop , e-shop , e-store , internet shop, web shop , web store, online store, or virtual store evokes the physical analogy of buying products or services .Consumers find a product of interest by visiting the website or do a search across many different vendors using a shopping search engine. There are many features like : 1) Add item to cart 2) Delete item from cart 3) Total amount display 4) Bill printing 5) payment through credit card or cash payment on delivery options.

1.2)

Technologies:
Operating system: Database: Windows (any) SQL Server

Page 1

Software Requirements Specifications Document

Frame Work:

JAVA 2 Enterprise Edition

1.3)

Feasibility study:

In order to make sure that the project is feasible, following feasibility studies have been conducted: -

• Economic & financial Feasibility study
Economic feasibility study is a measurement of cost effectiveness of the project. This project is going to be developed at sufficient Cost so that it will be acceptable by all the client that need such type of application.

• Technical Feasibility Study
It is possible to develop the system using platforms of i.e. Java 2 Enterprise Edition as front-end and Microsoft SQL Server 2005 as back-end. All the functions of a traditional online book shopping can be implemented in the new system. Hence the system is technically feasible.

• Operational Feasibility Study
This system is completely operational and can be successfully implemented in any plate-form .

• Legal Feasibility Study
Page 2

Firstly User have to signup so that he can register himself and can his user account so that he can login from his password and username . it can be considered as a legally feasible project. 2) Specific Requirements: 2.It is required to have a computer based system where an person can login & can purchase book as per his requirement .Software Requirements Specifications Document Since this project needs no copyrighting. He can see all the items that he has purchased and can delete from cart if he wants. 1. patenting. User can well check the total Bill that he has to pay and can get printed copy of that. and doesn’t intent to have any relation with anybody else’s intellectual property rights.1) Functionality There are number of functions that the application is supposed to perform which are as follows: • Firstly user have to login for that he/she have to Register him/her self .4) Proposed Solution: Due to the inconvenience in managing the book manually . So for that there will be a Page 3 .

edition. • There will be Book searching option on any category (e. author. etc).1) Software Interface: Client on Internet: Operating System (any) Data Base Server: Database. • There will be login page / Sign-in page where user have to login with their username and password. edition. .g. • After that there will be a book section page will be open where user can choose book according to their choice.g. • Maintaining records for books (e. • In last user can log-out. Operating System (any) Page 4 . title of the book. 3) Overall Description: 3. • To see the total bill of the book items that user have selected for that he/she have to click on the bill option then total bill of the item selected will be displayed to the user. books details.Software Requirements Specifications Document Sign Up page where user have to fill the entries like Username and Password . just by clicking on the logout button. price etc) • All the books that user have chosen will add-up to the Cart and if user want to delete any option than he/she can delete it by just clicking on the delete button.title of the book. price. author. • To purchase the books there will be two option given to the user through on Cash payment or through Debit account.

10 GB Internet Explorer 8.Software Requirements Specifications Document Software used : Net Beans . 3.2) Hardware Interface: Client Side/Server side Minimum requirement Processor . Micromedia Dream Viewer .0 Page 5 .Pentium IV at 900 MHz RAM -1 GB Disk Space.

Software Requirements Specifications Document 3.3) CONTROL FLOW DIAGRAM: Page 6 .

Software Requirements Specifications Document DataBase Content: Page 7 .

Software Requirements Specifications Document Page 8 .

Software Requirements Specifications Document ER-DIAGRAM Page 9 .

Software Requirements Specifications Document Page 10 .

Software Requirements Specifications Document SNAPSHOTS Page 11 .

Software Requirements Specifications Document Page 12 .

Software Requirements Specifications Document Page 13 .

Software Requirements Specifications Document Page 14 .

Software Requirements Specifications Document Page 15 .

Software Requirements Specifications Document Page 16 .

Software Requirements Specifications Document Page 17 .

Software Requirements Specifications Document Page 18 .

s1. * @param request servlet request * @param response servlet response */ protected void processRequest(HttpServletRequest request.getParameter("user").setAttribute("user".ConnectionService. import javax.http. String user1=request. PrintWriter out = response. ResultSet ss=ConnectionService. import javax. String pass1=request.getWriter().*.sql. 10:09 AM */ package pack. IOException { //response. import java.*. Page 19 . import java.*.charset=UTF-8").select("select * from signup where password='" + pass1 + "' and username='"+ user1 + "'"). HttpSession s1=request.*.getSession().java * * Created on July 13. import utility.setContentType("text/html.net. HttpServletResponse response) throws ServletException.getParameter("pass").user1). /** * * @author Eshan Gupta * @version */ public class Login extends HttpServlet { /** Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.servlet.Software Requirements Specifications Document CODING /* * Login. 2009.io.servlet.*. import java.

response). IOException { processRequest(request."> /** Handles the HTTP <code>GET</code> method.include(request.html"). response). } else { // response. Click on the + sign on the left to edit the code. HttpServletResponse response) throws ServletException.next()) { response. * @param request servlet request * @param response servlet response */ protected void doGet(HttpServletRequest request.sendRedirect("Option"). */ public String getServletInfo() { return "Short description".printStackTrace().Software Requirements Specifications Document try { if(ss. } /** Handles the HTTP <code>POST</code> method. * @param request servlet request * @param response servlet response */ protected void doPost(HttpServletRequest request. } // </editor-fold> } Page 20 . HttpServletResponse response) throws ServletException. out. rs. RequestDispatcher rs=request.print("<h1>INVALID USER</h1>").sendRedirect("Invalid"). }//try out. response). } // <editor-fold defaultstate="collapsed" desc="HttpServlet methods.close(). IOException { processRequest(request.getRequestDispatcher("Home. } } catch (SQLException ex) { ex. } /** Returns a short description of the servlet.

out.print("<body background=aa. try { String query="select * from book where type='magazine'". 11:35 AM */ package pack. 2009.*.Software Requirements Specifications Document /* * Magazine. out.http.*. out. import javax.getWriter(). import java.print("<h3>HELLO!"+s1. /** * * @author Eshan Gupta * @version */ public class Magazine extends HttpServlet { /** Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.ConnectionService.print("</font>"). if(s1!=null) { out.jpg></body>").*. import java.print("<center><h1><font color=yellow>WELCOME</font></h1></center><br>").servlet. out.java * * Created on July 13.print("<center><h1><a href=SignOut><font color=red>SignOUT</font></a></h1></center><br>"). import javax. Page 21 . HttpServletResponse response) throws ServletException.servlet.setContentType("text/html.print("<font color=white>"). // out.*. IOException { response. PrintWriter out = response.print("<center><h1>WELCOME TO ONLINE BOOK SHOPPING </h1><br>"). out.charset=UTF-8"). HttpSession s1=request. import utility.getSession(false).*.getAttribute("user")+"<br></h3>"). out.io.sql. * @param request servlet request * @param response servlet response */ protected void processRequest(HttpServletRequest request. import java.print("<center><h1><marquee direction=up><font color=pink>Magazine Books World</font></marquee></h1></center><br>").net.

print("<h1><font color=red>Please Login to get this page</font></h1>").getString(1).print("<tr><td><input type=checkbox name=select value="+ +"></td><td>"+rs. String p3=rs. String p2=rs. Click on the + sign on the left to edit the code. } out. * @param request servlet request * @param response servlet response */ protected void doGet(HttpServletRequest request.print("<input type=submit value='ADD TO ITEM'>").print("<tr><th>"+p1+"</th><th>"+p2+"</th><th>"+p3+"</th><th>"+p4+"</th><th>"+p5+"</t h><th>"+p6+"</th><th><input type=checkbox name=select value="+p3+"></th></tr>"). while(rs. out.getString(1)+"</td><td>"+rs.print("</form>").print("<tr><th>Book_id</th><th>Type<th>Book_name</th><th>Author</th><th>Publication< /th><th>Price</th><th>Choice</th></tr>").getString(5). String p4=rs.print("<table border=2 bgcolor=pink>").getString(3).print("<tr><td>"+rs. ///String r=rs. //out.next()) { String p1=rs."> /** Handles the HTTP <code>GET</code> method.getString(3).getString(4)+"</td></tr>").Software Requirements Specifications Document ResultSet rs = ConnectionService. } // <editor-fold defaultstate="collapsed" desc="HttpServlet methods.getString("type") +"</td><td>"+r+"</td><td></td><td>jlkjl</td><td>vjhvgjh</td><td><input type=checkbox name=select value="+r+"></td></tr>"). HttpServletResponse response) Page 22 .getString(4). } out.getString(6). out. out.select(query). String p6=rs. out.getString(2). out. out. //out.print("</table>").print("<form action=Cart >"). String p5=rs. }catch(Exception e){} } else { out.close().

import javax. IOException { processRequest(request. 10:17 AM */ package pack.*. } /** Handles the HTTP <code>POST</code> method. /** * * @author Eshan Gupta * @version */ public class Option extends HttpServlet { /** Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods. * @param request servlet request * @param response servlet response */ protected void processRequest(HttpServletRequest request.http.java * * Created on July 13.xml.*.*. import java.servlet. HttpServletResponse response) Page 23 .Response.ws.servlet. */ public String getServletInfo() { return "Short description". 2009. import java.Software Requirements Specifications Document throws ServletException. IOException { processRequest(request.net. import javax. } // </editor-fold> } /* * Option. import javax. * @param request servlet request * @param response servlet response */ protected void doPost(HttpServletRequest request. HttpServletResponse response) throws ServletException. } /** Returns a short description of the servlet. response).io. response).*.

print("<h1><font color=red>Please Login to get this page</font></h1>").print("<center><h1>WELCOME TO ONLINE BOOK SHOPPING </h1><br>"). response).print("<font color=white>")."> /** Handles the HTTP <code>GET</code> method.charset=UTF-8").setContentType("text/html.print("<h2><i><a href=Magazine><font color=yellow>Magazine Books</font></a></i></h2><br>"). IOException { response. HttpServletResponse response) throws ServletException. response). out. out. PrintWriter out = response.getWriter(). out. * @param request servlet request * @param response servlet response */ protected void doPost(HttpServletRequest request. out.Software Requirements Specifications Document throws ServletException.print("<h2><i><a href=engineering1><font color=yellow>Engineering Books</font></a></i></h2></center><br>"). IOException { processRequest(request. } // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. out.close(). } out. } /** Handles the HTTP <code>POST</code> method. HttpServletResponse response) throws ServletException.print("<body background=aa.getAttribute("user")+"<br></h3>").jpg></body>").print("<h2><i><a href=Computer><font color=yellow>Computer Books</font></a></i></h2><br>"). HttpSession s1=request. out. } /** Returns a short description of the servlet. out.print("</font>"). * @param request servlet request * @param response servlet response */ protected void doGet(HttpServletRequest request. } else { out. IOException { processRequest(request.print("<h3>HELLO!"+s1.getSession(false). if(s1!=null) { out. Click on the + sign on the left to edit the code. */ Page 24 .

print("HELLO!"+s1. import javax.*.ConnectionService. import java.*. import java. PrintWriter out = response. /** * * @author Eshan Gupta * @version */ public class Remove extends HttpServlet { /** Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.util. import utility. IOException { response.*. HttpServletResponse response) throws ServletException.print("<h3>" +s1. import java. out. out.charset=UTF-8"). if(s1!=null) { out.servlet. import javax.servlet.jpg></body>"). 2009. HttpSession s1=request.Software Requirements Specifications Document public String getServletInfo() { return "Short description".getSession(false).*.getAttribute("op1")+ "</h3>").print("<center><form action=Cart method=post >").*. 11:11 PM */ package pack. out.print("<body background=5.*.java * * Created on July 13. import java.sql.io.getWriter(). * @param request servlet request * @param response servlet response */ protected void processRequest(HttpServletRequest request. Page 25 .setContentType("text/html. } // </editor-fold> } /* * Remove.net.getAttribute("user")+"<br>").http.

getString(4)+"</td></tr>").getAttribute("op1")) { String query1="select * from book where book_name='" +ob+ " ' ". }//for } out. }//while }catch (SQLException ex) { ex. ///String r=rs.print("<input type=submit value='DELETE ITEM'>"). for(Object ob:(ArrayList)s1. String p2=rs.next()) { String p1=rs.print("<tr><td><input type=checkbox name=select value="+ +"></td><td>"+rs.printStackTrace(). out.getString(1).select(query1). out.getString(3).getString(2). String p3=rs.print("<tr><th>Book_id</th><th>Type<th>Book_name</th><th>Author</th><th>Publication </th><th>Price</th><th>Choice</th></tr>"). try { while(rs. out.print("<tr><th>"+p1+"</th><th>"+p2+"</th><th>"+p3+"</th><th>"+p4+"</th><th>"+p5+"</t h><th>"+p6+"</th><th><input type=checkbox name=delete value="+p3+"></th></tr>").print("</table>"). String p6=rs. String p4=rs. ResultSet rs=ConnectionService. String p5=rs.getString(6). //out.getString(3).print("</form></center>").print("<table border=2 bgcolor=pink>"). Page 26 .Software Requirements Specifications Document out. out.getString(5).getString(4).

IOException { processRequest(request. } out. } /** Handles the HTTP <code>POST</code> method. } /** Returns a short description of the servlet. } else { out. response).Software Requirements Specifications Document out. HttpServletResponse response) throws ServletException. HttpServletResponse response) throws ServletException. response). */ public String getServletInfo() { return "Short description". } // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. IOException { processRequest(request. * @param request servlet request * @param response servlet response */ protected void doPost(HttpServletRequest request."> /** Handles the HTTP <code>GET</code> method.print("<font color=blue><center><h1><a href=credit. * @param request servlet request * @param response servlet response */ protected void doGet(HttpServletRequest request.print("<font color=red size=6>Please Login to get Page</font>").html>Generate Bill</a></h1></center></font><br>"). } // </editor-fold> } Page 27 .close(). Click on the + sign on the left to edit the code.

Sign up to vote on this title
UsefulNot useful