05 nothing

2
[ST XVII] U1 add to cost Online Book Store Req Res Req. Res Books in cost Application U2 StudentModel.java SearchServlet.java Search.jsp Controller layer Add Book To CostServlet HttpSession object Show Book from CostServlet Collect the book name from request Session .getAttribute Name() Mastering java Mastering JDBC Mastering servlet Mastering JSP Sessio n object SID:99 Session object SID:88 ----------- ------- ----------- ------- Session Managements Sid Or Sname Collect the data. ------------------- StudentModel sm= ------ Sto=sm.getStudentBySid(sid ) al=sm.getStudentBySname(sn StudentIO.getStude ntBySid(sid) { // JDBC ---------------- ---------------- } ArrayList.getStude ntBySname(sname) { -------------- Mysql Sid Sname email ph 01 rajiv

Upload: phani

Post on 17-Aug-2015

213 views

Category:

Documents


0 download

DESCRIPTION

Nothing

TRANSCRIPT

[STXVII]U1add to costOnline Book StoreReq Res Req. Res Books in cost ApplicationU2StudentModel.javaSearchServlet.javaSearch.jsp Controller layer Persistence layer SidResult.jspSnaeResult.jspStudent Presentation layer !"S layer Add Book #o CostServlet $ttpSessiono%ject Sho& Book 'ro CostServletCollect the %ook nae 'rorequestSession .(etAttri%ute)ae*+Masterin( java Masterin( ,-BCMasterin( servlet Masterin( ,SP Sho& the %ooks in cost applnSession o%ject S"-.//Session o%jectS"-.00111111111111111111111111111111111111111111111111111111111111111111111111Session Managements Sid 2r Snae SearchCollect the data. 1111111111111111111 StudentModel s3 111111 Sto3s.(etStudentBySid*sid+al3s.(etStudentBySnae*snae+111111111111111111111 1111111111111111111111111 Student"2.(etStudentBySid*sid+455JDBC1111111111111111 1111111111111111 6Array7ist.(etStudentBySnae*snae+4 11111111111111 55JDBC111111111111111 6MysqlSid Snaeeail ph81 rajiv raj9(ail ///82 raanra9:apak000Sid . //Snae .rajiv!ail raj9(ail.coPhone ./0/0Sidsnaeeailphone 81rajiv raj9(ail///82raanra9:apak000vie& jspModel View Controller Design PatternM;C