E Musiccc
E Musiccc
A Project Report on
E-MUSIC
Submitted for partial fulfillment of award of BACHELOR OF TECHNOLOGY In COMPUTER SCIENCE & ENGINEERING By MADHUR MITTAL MAYA ! "AR" MUDIT SI "HAL (0909010063) (090901006#) (0909010069)
Name of Guide
"AUTAM %UDDH TECH ICAL U I&ERSITY' LUC! ()' I DIA MAY' *013
Cert+,+c-te
Certified that Madhur Mittal, Mayank Garg and Mudit Singhal has carried out the research work presented in this ro!ect entitled "#$Music% for the award of Bachelor of &echnology from 'ttar radesh &echnical 'ni(ersity, )ucknow under my super(ision* &he ro!ect embodies result of original work and studies carried out by Student himself and the contents of the ro!ect do not form the basis for the award of any other degree to the candidate or to anybody else*
+M,& +N-#. S' #/0,S1/ -esignation 2 3ead 1f -epartment +ddress 2,*#*C C#&
-ate2 415652714
AC! ()LED"EME T
, take this opportunity to e8press my profound gratitude and deep regards to my guide Mr* +mit pandey for his e8emplary guidance, monitoring and constant encouragement throughout the course of this thesis* &he blessing, help and guidance gi(en by him time to time shall carry me a long way in the !ourney of life on which , am about to embark*
, also take this opportunity to e8press a deep sense of gratitude to -e(endra Singh, 3ead 1f -epartment, ,*#*C C#&, for his cordial support, (aluable information and guidance, which helped me in completing , am obliged to staff members of ,*#*C C#&, for the (aluable information pro(ided by them in their respecti(e fields* , am grateful for their cooperation during the period of my assignment*
)astly, , thank almighty, my parents, brother, sisters and friends for their constant encouragement without which this assignment would not be possible*
T+t0e
+bstract ,ntroduction 2*1 1rgani:ing rofile System +nalysis 4*1 #8isting system 4*2 roblem -efinition 4*4 roposed System 4*9 /e;uirement +nalysis 4*6 /e;uirement Specifications 4*< =easibility study
9* 9*1
System -esign ro!ect Module 9*2 -ata -ictionary 9*4 -ata =low -iagrams 9*9 #$/ -iagram 9*6 3ardware +nd Software /e;uirements
6* <* >*
System &esting Software &ools 'sed &echnical Notes >*1 ,mplementation >*2 ,ntroduction to 3&M) >*4 ,ntroduction to ?a(a
@* A* 17*
C/-pter 1
A%STRACT
&he #$Music Borld application is an 1nline Bebsite for an 1rgani:ation* ,t is a (irtual showcase for different types of products like =,)M, G3+C3+), 1 , -#01&,1N+), and /1CD, C)+SS,C+), =1)D etc* &he main aim of this pro!ect is to make 1nline shopping (ery easily* &he Special thing about this pro!ect is it pro(ides different types of C-s to purchase* + leading music show room spanning across the twin cities of 3yderabad is targeting towards smooth internal communication and functioning for the customers along with other useful information* &his document ser(es as the base for the pro!ect re;uirements* ,t captures the re;uirements for the pro!ect* ,t contains a broad o(er(iew and purpose of the ,nternet C- shopping summary plan and detailed design of all the pages* &he template that gi(es the detailed re;uirements of the ,nternet C- shopping for each module is as follows2 &he purpose of this pro!ect is as follows2 &o present the (ariety of items category wise to the customer* &o get member information &o collect order information from the customer &o display the list of ordered items to the administrator*
1) &ISIT(R I TER.ACE
&his page of the E-MUSIC )(RLD application will be the first page to be displayed, when a person (isits the E-MUSIC )(RLD application* &his page will display a welcome message to facilitate na(igation through the application* &he functionalities pro(ided by the (isitor interface*
< 1* 2* 4* 9* 6* <* >* +bout us )ogin New user registration Search products #ntertainment =orgot assword )ogout
*) USER I TER.ACE
U1er Ho2ep-3e4 &he user home page is displayed to a user, when the user logs on to the #$M'S,C B1/)- application* 1nly registered users can (iew this home page* ,f non$registered users try to login then the application should display the error message, and it has to pro(ide a facility to register with the site* &his page has to show the welcome message to the user and in addition it will display (arious menus to facilitate na(igation through the application* &he functionalities pro(ided by the user interface are2 1* 3ome age* 2* Search C-s to buy* 4* +dd C-s to shopping cart* 9* Modify C-s to shopping cart* 6* -elete C-s from the shopping cart* <* Generate Bill* >* =eedback* @* Change assword* A* 3andling Messages* 17* )ogout*
> show the administrator related functionalities* +dministrator interface category will ha(e the following functionalities* &hey are2 1* 2* 4* 9* 6* <* >* @* A* +dd C-s to ,n(entory* Modify C-s to ,n(entory* -elete C-s from ,n(entory* -elete a 'ser* 0iew userEs messages* Sales /eports Send Messages to 'sers* )ogout* Change +dministrators and assword*
#) E TERTAI ME T I TER.ACE
&his interface pro(ides the information about top ten films, new film etc* 'ser can (iew the new films and he5she can search the films based on film name or film id* 'ser can (ote for his fa(orite films* #ntertainment page contains the four types of functionalities* &hey are2 1* 0iew &op films* 2* 0iew New =ilms* 4* Search =ilms* 9* 0ote for fa(orite =ilms*
strategies con(erge* 1ur approach focuses on new ways of business combining ,& inno(ation and adoption while also le(eraging an organi:ationHs current ,& assets* Be work with large global corporations and new generation technology companies $ to build new products or ser(ices and to implement prudent business and technology strategies in todayHs en(ironment* Co2p-n8 -2eEs range of e8pertise includes2 Software -e(elopment Ser(ices #ngineering Ser(ices Systems ,ntegration Customer /elationship Management Supply Chain Management roduct -e(elopment #lectronic Commerce Consulting ,& 1utsourcing
Be apply technology with inno(ation and responsibility to achie(e two broad ob!ecti(es2 #ffecti(ely address the business issues our patient face today Generate new opportunities that will help them stay ahead in the future
17 &his approach rests on2 + strategy where we +rchitect, ,ntegrate and Manage technology ser(ices and solutions I we call it +,M for success* + robust offshore de(elopment methodology and reduced demand on customer resources + focus on the use of reusable frameworks to pro(ide cost and time benefits
Be combine the best people, processes and technology to achie(e e8cellent results I consistently* Be offer patient the ad(antages of2
Spee94 Be understand the importance of timing, of getting there before the competition* + rich portfolio of reusable, modular frameworks helps !ump$start pro!ects* &ried and tested methodology ensures that we follow a predictable, low$risk path to achie(e results* 1ur track record is testimony to comple8 pro!ects deli(ered within and e(en before schedule*
E:pert+1e4 1ur teams combine cutting edge technology skills with rich domain e8pertise* BhatHs e;ually important I we share a strong customer orientation that means we actually start by listening to the customer* BeHre focused on coming up with solutions that ser(e customer re;uirements today and anticipate future needs* A .;00 Ser<+ce Port,o0+o4 Be offer user the ad(antage of being able to +rchitect, ,ntegrate and Manage technology ser(ices* &his means that they can rely on one, fully accountable source instead of trying to integrated #mployee Management System generate multi$specialty packages solutions*
11
12 The aim of this project i.e. E-Music System is all about music system from anywhere, anytime. The extra feature involved is our fund details which keeps the user in touch.our application is that it is secured in a way that only re istered user can enter this application which have valid password and id. Main Objectives are : The E-Music System is meant to keep the security of the admin and between the !ser. "fter lo in !ser can download our some attractive son s. #or premium son s user have to do online payment ,then he can download the son s. "dmin upload both type of son s i.e. #ree son s and $remium son s. The main concern of this project is to improve the efficiency and effectiveness of the whole system.
14
3$3
Propo1e9 S81te2
roposed system are those that are automated, so that it is easy to retrie(e the responses from the system fast and updating the details once the response or ser(ices are pro(ided to the end$users upon their re;uest without any difficulty and sa(es time*
19 E-Music Systemusing ?S as front end and M.$SJ) as backend* &his system is 0ery good it stores the details of all #mployee* ,n the present system we can maintain the old complaints and also update the #mployee information* by using oracle we store the stored procedures, so that why we are using M.$ SJ)*
16 ,t may be di(ided into 6 areas of effort* 1* roblem recognition 2* #(aluation and synthesis 4* Modeling 9* Specification /e(iew #ach /e;uirement analysis method has a uni;ue point of (iew* 3owe(er all analysis methods are related by a set of operational principles* &hey are2 1* &he information domain of the problem must be represented and understood* 2* &he functions that the software is to perform must be defined* 4* &he beha(ior of the software as a conse;uence of e8ternal e(ents must be defined* 9* &he models that depict information function and beha(ior must be partitioned in a hierarchical or layered fashion* 6* &he analysis #mployee Management System process must mo(e from essential information to implementation detail*
1<
So,t?-re ReA;+re2ent1 Spec+,+c-t+on14 &he software re;uirements specification #mployee Management System produced at the culmination of the analysis task* &he function and performance allocated to the software as a part of system engineering are refined by establishing a complete information description, a detailed functional and beha(ioral description, and indication of performance re;uirements and design constraints, appropriate (alidation criteria and other data pertinent to re;uirements* +n outline of the Software /e;uirements Specification2 + simplified outline can be gi(en for the framework of the specifications* according to the ,### Standards* &his is
1> +ll pro!ects are feasible, gi(en unlimited resources and infinite time* But the de(elopment of software E- Music System plagued by the scarcity of resources and difficult deli(ery rates* ,t is both necessary and prudent to e(aluate the feasibility of a pro!ect at the earliest possible time* &hree key considerations are in(ol(ed in the feasibility analysis*
Econo2+c .e-1+>+0+t84
&he E- Music System procedure is to determine the benefits and sa(ings that are e8pected from a candidate system and compare them with costs* ,f benefits outweigh costs, then the decision is made to design and implement the system* 1therwise, further !ustification or alterations in proposed system will ha(e to be made if it is to ha(e a chance of being appro(ed* &his is an ongoing effort that impro(es in accuracy at each phase of the system life cycle*
Tec/n+c-0 .e-1+>+0+t84
&echnical feasibility centers on the e8isting computer system Fhardware, software, etc*,G and to what e8tent it can support the proposed addition* ,f the budget is a serious constraint, then the pro!ect is !udged not feasible*
(per-t+on-0 .e-1+>+0+t82
eople are inherently resistant to change, and computers ha(e been known to facilitate change* ,t is understandable that the introduction of a candidate system re;uires special effort to educate, sell, and train the staff on new ways of conducting business*
1@
Econo2+c .e-1+>+0+t8
+s E-Music System which pro(ides continuous communication to users at the front end, pro(ides solutions to different ;ueries to (arious different problems as get from the use of different product* +nd the solutions for their ;ueries are sent to them by messaging to their sites within the e8piry time or the time mentioned i*e*, within 12hrs or 29hrs*
(per-t+on-0 .e-1+>+0+t8
1perations done in the E-Music System are (ery fast and are able to succeed in sending the responses (ery fastly* 'pdating is done (ery ;uickly that the modified data is stored in the database in no time* ,ts supports up to fi(e hundred simultaneously users against the central database at any gi(en time*
1A
27 is displayed* -ifferent data access rights are assigned to different users* + new member can also be registered in this module*
21
22 -ata can trigger e(ents and can be processed to useful information* System analysis recogni:es the central goal of data in organi:ations* &his dataflow analysis tells a great deal about organi:ation ob!ecti(es are accomplished* -ataflow analysis studies the use of data in each acti(ity* ,t documents this finding in -=-Es* -ataflow analysis gi(e the acti(ities of a system from the (iewpoint of data where it originates how they are used or hanged or where they go, including the stops along the way from their destination* &he components of dataflow strategy span both re;uirements determination and systemEs design* &he first part is called dataflow analysis* +s the name suggests, we didnEt use the dataflow analysis tools e8clusi(ely for the analysis stage but also in the designing phase with documentation*
24
Source or Sink -escription2 rocess2 describes how input data is con(erted to output -ata -ata Store2 -escribes the repositories of data in a system
29 -ata =low2 -escribes the data flowing between process, -ata stores and e8ternal entities* Sources2 +n e8ternal entity causing the origin of data* Sink2 +n e8ternal entity, which consumes the data*
Conte8t -iagram2
&he top$le(el diagram is often called a " context diagram* ,t contains a single process, but it plays a (ery important role in studying the current system* &he conte8t diagram defines the system that will be studied in the sense that it determines the boundaries* +nything that is not inside the process identified in the conte8t diagram will not be part of the system study* ,t represents the entire software element as a single bubble with input and output data indicated by incoming and outgoing arrows respecti(ely* &ypes of data flow diagrams -=-s are two types 1* hysical -=Structured analysis states that the current system should be first understand correctly* &he physical -=- is the model of the current system and is used to ensure that the current system has been clearly understood* hysical -=-s shows actual de(ices, departments, people etc*, in(ol(ed in the current system 2* )ogical -=)ogical -=-s are the model of the proposed system* &hey Clearly should show the re;uirements on which the new system Should be built* )ater during design acti(ity this is taken as the Basis for drawing the systemEs structure charts*
26
'ser
'ser
'ser
=ig29*2
2<
'pdated Successfully
2*7
'ser
)ogout
4*7
My +ccount information
2>
=ig29*4
'pdated Successfully
2*7
+dmin
)ogout
'pload Songs
4*7
ayments -etails
9*7 /eports
2@
=ig29*9
2A
Login
Upload songs
Download songs
fig29*6
47
E-R D+-3r-2
date
contac t uname userdetails pid
'ser
id
ay rofile
ayment
3ire
Borkfor
Borksund er
-ownload
Manage r -etails
'pload =und
'plo ad
sid
sdetails
+dmin /eport
=eedback )ist
Songs
date
=ig29*<
41
2 2 2 2
,ntel $,,, based system 267 M3: to @44M3: <9MB to 26<MB 2GB to 47GB
2 2 2
?-D 1*6, Net beans <*A My S;l 6*7 +ny 1perating System*
42
&esting rinciples2 +ll tests should be traceable to end user re;uirements &ests should be planned long before testing begins &esting should begin on a small scale and progress towards testing in large #8hausti(e testing is not possible &o be most effecti(e testing should be conducted by a independent third party
&#S&,NG S&/+&#G,#S
+ Strategy for software testing integrates software test cases into a series of well planned steps that result in the successful construction of software* Software testing is a broader topic for what is referred to as 0erification and 0alidation* 0erification refers to
44 the set of acti(ities that ensure that the software correctly implements a specific function* 0alidation refers he set of acti(ities that ensure that the software that has been built is traceable to customerEs re;uirements
'nit &esting2
'nit testing focuses (erification effort on the smallest unit of software design that is the module* 'sing procedural design description as a guide, important control paths are tested to unco(er errors within the boundaries of the module* &he unit test is normally white bo8 testing oriented and the step can be conducted in parallel for multiple modules*
,ntegration &esting2
,ntegration testing is a systematic techni;ue for constructing the program structure, while conducting test to unco(er errors associated with the interface* &he ob!ecti(e is to take unit tested methods and build a program structure that has been dictated by design*
&op$down ,ntegration2
&op down integrations is an incremental approach for construction of program structure* Modules are integrated by mo(ing downward through the control hierarchy, beginning with the main control program* Modules subordinate to the main program are incorporated in the structure either in the breath$first or depth$first manner*
Bottom$up ,ntegration2
&his method as the name suggests, begins construction and testing with atomic modules i*e*, modules at the lowest le(el* Because the modules are integrated in the
49 bottom up manner the processing re;uired for the modules subordinate to a gi(en le(el is always a(ailable and the need for stubs is eliminated*
0alidation &esting2
+t the end of integration testing software is completely assembled as a package* 0alidation testing is the ne8t stage, which can be defined as successful when the software functions in the manner reasonably e8pected by the customer* /easonable e8pectations are those defined in the software re;uirements specifications* ,nformation contained in those sections form a basis for (alidation testing approach*
System &esting2
System testing is actually a series of different tests whose primary purpose is to fully e8ercise the computer$based system* +lthough each test has a different purpose, all work to (erify that all system elements ha(e been properly integrated to perform allocated functions*
Security &esting2
+ttempts to (erify the protection mechanisms built into the system*
erformance &esting2
&his method is designed to test runtime performance of software within the conte8t of an integrated system*
46
+nalysis
-esign
,mplementation System
Maintenance
4< &esting lanning, 'ser needs -efinition -esign -etails Code, debug and &est ,ntegration L +cceptance #nhance, =i8 +dapt =ig2<*1 &he +nalysis Stage consists of lanning and /e;uirements definition* + feasibility study, de(eloping a recommended solution strategy, determining the acceptance criteria and planning de(elopment process* &he products of planning are a System definition and a pro!ect plan* &he Software -esign follows analysis* -esign is concerned with its software components, specifying relationships among components specifying some structure, maintaining a record of design decisions and pro(iding blueprint implementation phase* -esign consists of detailed design and +rchitectural design* &he implementation phase of software de(elopment in(ol(es translation of design specification into source code, and debugging, documenting and unit testing the source code* &o enhance the ;uality of the software the methods are structured control constructs, built in and user defined data types, secure type checking, fle8ible scope rules e8ception handling mechanism, concurrency constructs and separates compilation modules* System &esting in(ol(es two kinds of testing integration testing and acceptance testing* -e(eloping a strategy for integrating the components of a software system into a functioning re;uires careful planning so that modules are a(ailable for integration when
4> needed* +cceptance testing in(ol(es planning and e8ecution of (arious tests in order to demonstrate that the implemented system satisfies the re;uirement document* &he Maintenance phase comes after the acceptance of the product by the customer and release of the system for production work* Maintenance acti(ities include enhancements of capabilities, adaptation of software to new processing en(ironments, and correction of software bugs* &he #mployee Management Systempro!ect follows the hased )ife Cycle Model or the Bater =all model to a large e8tent* &he analysis stage consisted of listening to the needs and re;uirements of the e8amination department obtaining the re;uired format of the system as desired by them, taking the re;uired data to be stored for future use etc*, ,n the design stage the structure of the system was designed and all the re;uired Screens were formatted* &his was then shown to the officerEs appro(al and the system was built* ,mplementation phase was done at /,&30, ,N=1/M+&,CS as they pro(ided a computer with all the re;uired software and with re;uired configuration* &he coding and debugging was done* #(en after this stage certain changes were made as re;uested by the guide* &he testing was done to check for any errors or bugs or unwanted beha(ior in the system* ,ndi(idual modules as well as the whole system were tested separately*
C/-pter 6
4@
demands on a
program, because the program must e8ecute reliably in a (ariety of systems* &hus, the ability to create robust programs was gi(en a high priority in the design of ?a(a* +t the same time, ?a(a frees us from ha(ing to worry about many of the most common cause of programming errors* Because ?a(a is strictly typed language, it checks our code at the compile time and also at run$time*
4A ?a(a was designed to meet the real world re;uirements of creating interacti(e, Networked programs* ?a(a supports multithreaded programming, which allows us to write programs that do many things simultaneously* + central issue for the ?a(a designers was that of code longe(ity and portability* &heir goal was "write onceK run anywhere, any time , fore(er "* ?a(a enables the creation of the cross$platform programs by compiling into intermediate representation called ?a(abytecode* &his code can be interpreted on any system that pro(ides a !a(a (irtual machine* ?a(a is designed for the distributed en(ironment of the ,nternet, because it handles &C 5, protocols* ,n fact, accessing a resource using a '/) is not much different from accessing a file* &he original (ersion of ?a(a F1+DG included features for intra$address$space messaging* ?a(a programs carry with them substantial amounts of the run$time type information that is used to (erify and resol(e accesses to ob!ects at run$time* &his makes it possible to dynamically link code in a safe and e8pedient manner*
97
&he classical definition of ,ntranet is the application of the ,nternet technologies to the internal business applications media most refer to the ,ntranet in terms of applying web technologies to information systems in the organi:ation*
+B1'& S#/0)#&S
Ser(let is ser(er side applet* ,t contains se(eral ad(antages* &hey are2
91 erformance is significantly better* Ser(lets e8ecute within the address space of the web ser(er* Creating a separate process to handle each client re;uest isnEt necessary* Ser(lets are platform$independent, because they are written in ?a(a* Se(eral web ser(ers, from (endors such as sun, Netscape, and Microsoft, offer the ser(let + , rograms de(eloped for this + , can be mo(ed to any of these en(ironments without recompilation* &he !a(a security manager on the ser(er enforces a set of restrictions to protect the resources on a ser(er machine* &he full functionality of the ?a(a class libraries is a(ailable to a ser(let* ,t can communicate with applets, databases, or other software (ia the sockets and /M, mechanisms* &he )ifecycle of a ser(let2 &hree methods are central to the lifecycle of a ser(let2 init FG, ser(iceF G, and destroyF G* =irst, assume that a user enters a 'niform /esource )ocator F'/)G to the web browser* &he web browser then generates an 3&& re;uest for this '/) and sends it to the appropriate ser(er* Second the web ser(er recei(es this 3&& re;uest* &he ser(er maps this re;uest to particular ser(let* &he ser(let is dynamically retrie(ed and loaded into the address space of the ser(er* &hird, the ser(er in(okes the initF G method of the ser(let* &his method is in(oked only when the ser(let is first loaded into the memory* =ourth, the ser(er in(okes the ser(let ser(iceF G method , which is called to process the 3&& re;uest* &he ser(iceF G method is called for each 3&& re;uest* &wo packages are re;uired to build the ser(let they are !a(a8*ser(let and !a(a8*sre(let*http* &hey constitute of ser(let + ,* Ser(let/e;uest interface is used to read the data from a client7re;uest and ser(let/esponse is used to write data to the client response* &he !a(a8*sre(let*http package include interfaces like 3ttpSer(let/e;uest whish enables ser(lets to read data from 3&& re;uest and
Intro9;ct+on to HTML
92 &he hyperte8t markup language F3&M)G is a simple markup language* 'sed to create a hyperte8t documents that are portable from one platform to another 3&M) documents are SGM) FStandard generali:ed mark up languageG documents with generic semantics that are appropriate for representing information from a wide range of applications* &his specification defines 3&M) (ersion 4*2* 3&M) 4*2 aims to capture recommended practice as of early EA< and as such a replacement for 3&M)2*7 F/=C 1@<<G* + set of instructions embedded in a document is called mark up language* &hese instructions describe what the document te8t means and how it should look like in a d aper )ess 3ospitallay* 3yper &e8t Mark 'p language F3&M)G is the language used to encode Borld Bide Beb documents*
S&/'C&'/# 1= 3&M)
3&M) elements perform a defined task* 3&M) uses two types of elements * #mpty &ags * Container &ags &hese tags differ because of what they represent* #mpty tags represent formatting constricts such as line breaks and hori:ontal rules* Container tags define a section of te8t,
94 formats and dot all of the selected te8t* + container tag has both a beginning and an ending*
3&M) )+.1'&2
+n 3&M) document consists of te8t, which comprises the content of the document and tags, which, defines the structure, and appearance of the document* &he structure of an 3&M) document is simple, consists of outer* O3&M)Ptag enclosing the document header and body O3&M)P O3#+-P O&,&)#Pthe title of 3&M) documentO5&,&)#P O53#+-P OB1-.P &his is where the actual 3&M) documents &e8t lies, which is d aper )ess 3ospitallayed in the browser O5B1-.P O53&M)P #ach document has a head and body delimited by the O3#+-P and OB1-.P tag* &he head is where you gi(e your 3&M) document a title and where you indicate other parameters the browser may use when d aper )ess 3ospitallaying the document* &his includes the te8t for d aper )ess 3ospitallaying the te8t* &ag also references special and indicates the hot spots that link your document to other documents*
3&M) =1/MS2
99 Creating a form usually in(ol(es two independent steps2 Creating the layout for the form itself and then writing a script program on the ser(er side to process the formation you get back from a form* &o create a form, .ou use the O=1/MP tag* ,nside the opening and closing =1/M tags are each of the indi(idual form elements plus any other 3&M) content to create a layout for that form* &he opening tag of the =1/M element usually includes the attributes2 M#&31and +C&,1N* &he M#&31- attributes can be either G#& or 1S& which determines how your form data is sent to the script to process it* &he +C&,1N attribute is a pointer to the script that processes the form on the ser(er side* &he +C&,1N can be included by a relati(e path or by a full '/) to a script on your ser(er or somewhere else* =or e8ample, the following O=1/MP tag would call a script called form$name in cgi$bin directory on ser(er www*myser(ser*com O=1/M MethodQ post actionQhttp255www*mytser(ser*com5cgi$bin5form$name*plP RRRRRR* O5=1/MP
M#&31- +&&/,B'
&he other re;uired attribute for the OformP tag sets the methods by which the browser formEs data to the ser(er for processing* &here are two ways2 the 1S& method and G#& method* Bith 1S& method, the browser sends the data in two steps2 the browser first contacts the form$processing ser(er specified in the action attributes, and once contact is made, sends the data*
96 &he G#& method in the other hand, contacts the form processing ser(er and sends the form data in a single transaction step2 the browser appends the data to the formEs action '/), separated by the ;uestion mark FNG character*
Mike Sheridan at S'N Microsystems ,ncorporation in the year 1AA1*,t took 1@ months to de(elop the 1st working (ersion* &his language was initially called "1+D%, but was renamed "?+0+% in 1AA6, many more contributed to the design and e(olution of the language*
?+0+ 10#/0,#B
?a(a is a powerful but lean ob!ect$oriented programming language* ,t has generated a lot of e8citement because it makes it possible to program for ,nternet by creating +pplets* rograms that can be embedded in web page* &he conte8t of an applet can be an animation with sound, an interacti(e game or a ticker tape* Bith constantly updated stock prices* +pplets can be !ust little decorations to li(en up web page, or they can be serious applications like Bord processor or Spreadsheet* But ?a(a is more than a programming language for writing +pplets* ,t is being used more and more for writing standalone applications as well* ,t is becoming so popular that many people belie(e it will become standard language for both general purpose and ,nternet programming*
9< &here are many bu::words associated with ?a(a, but because of its spectacular growth in popularity, a new bu::word has appeared ubi;uitous* ,ndeed, all indications are that it will soon be e(erywhere* ?a(a builds on the strength of CSS* ,t has taken the best features of CSS and discarded the more problematic and error prone parts* &o this lean core, it has added garbage collection Fautomatic memory managementG, multithreading Fthe capacity for one program to do more than one thing at a timeG, security capabilities* &his result is that ?a(a is simple, elegant, and powerful and easy$to$use* ?a(a is actually a platform consisting of 4 components2 1* ?a(a rogramming )anguage* 2* ?a(a )ibrary of Classes and ,nterfaces* 4* ?a(a 0irtual Machine &he following sections will say more about these components*
9> instruction set cannot understand that language* ?a(a code on the other hand is compiled into Byte$Code rather than a machine language* &hese byte codes go to the ?0M, which e8ecutes them directly or translates them into the language that is understood by the machine running it* ,n summary, these means that with the ?-BC + , e8tending ?a(a, a programmer writing ?a(a code can access all the ma!or /-BMS on any platform that supports the ?0M*
?+0+ ,S 1B?#C&$1/,#N&#&he ?a(a programming language is 1B?#C&$1/,#N&#-, which makes program design focus on what you are dealing with, rather than on how your are going to do something* &his makes it more useful for programming in sophisticated pro!ects, because one can break the things into understandable components* + big benefit is that these components can then be reused* 1b!ect$1riented )anguages use the paradigm of classes* ,n simplest term, a class includes both the data and the functions to operate on data* .ou can create an instance of a class, also called an ob!ect, which will ha(e all the data members and functionality of its class* Because of this, you can think of a class as being like template, with each ob!ect being a specific instance of a particular type of class* &he class paradigm allows one to encapsulate data so that specific data (alues are those using the data cannot see the function implementation* #ncapsulation makes it possible to make the changes in code without breaking other programs that use that code* ,f for e8ample, the implementation of a function is changed, the change is in(isible to any programmer who in(okes that function, and does not affect his5her program, e8cept hopefully to impro(e it* ?a(a includes inheritance, or the ability to deri(e new classes from e8isting classes* &he deri(ed class, is also called as Sub$Class, inherits all the data in the functions of the e8isting class*
9@ &o code, edit, debug and test the !a(a programs, one needs to ha(e a !a(a de(elopment en(ironment* +t the minimum this will consists of a !a(a compiler interpreter and applet (iewer where applets can be tested* SunEs !a(a de(elopment kit F?-DG latest (ersion is 2*2 can be freely downloaded from the ,nternet* ?a(a compiler is a(ailable on -1S, BinA6, B,NEN&, Solaris and M+C etc*
9A
67 &he Mac (ersion for e8ample seems to ha(e many bugs* ,n the near future there are going to be some other browsers, which support !a(a script* &he Microsoft ,nternet e8plorer 4*7 is going to support !a(a script* ?a(aScript enabled browsers are going to spread soon $ it is worth learning this new techni;ue now* .ou might reali:e that is really easy to write ?a(a Script scripts* Be ha(e to know is some basic techni;ues and some work$around for problems you might encounter* 1f course we need a basic* 'nderstanding 3&M) before reading this tutorial you can find many really good online resources about 3&M)* Best you make an online search about UhtmlE at yahoo if you want to get informed about 3&M)* Now , want to show some small scripts so you can learn how they are implemented into 3&M)$documents and to show which possibilities you ha(e with the new scripting language* &he following is a (ery small script, which will only print a te8t into an 3&M) document* OhtmlP OheadP My first ?a(aScript O5headP ObodyPObrP &his is a normal 3&M) document ObrP Oscript languageQ%?a(aScript%P -ocument*write F"this is a !a(a script%G O5scriptPOb rP Backing 3&M) again O5bodyP O5htmlP ,f you are using a !a(a script enabled$browser at the moment then you will ha(e the possibility to see this script working* ,f your browser doesnEt support ?a(a Script then this output might be some kind of strangeR &his is a normal 3&M) document
.;nct+on1
=unctions are bet declared between the O3eadP tag of 3&M) page* =unctions are called by user$initiated e(ents* Seems reasonable to keep the functions between the O3eadP tags* &hey are loaded first before a user can do anything that might call a function* Scripts can be placed between inside comment fields to ensure that older browser do not d aper )ess 3ospitallay the script itself* OhtmlP OheadP Oscript languageQ%?a(aScript%P function pushbutton FGW alert F"3elloV%GK X O5scriptP O5headP ObodyP OformP Oinput typeQ%button% nameQ%Button1% (alueQ%push me% onclickQ%pushbutton FG%P O5formP O5bodyP O5htmlP ,f we want to test this one immediately and you are using a ?a(a Script enabled browser then please go ahead and push the button* &his script will create a button and when you press it a window will pop up saying "helloV%* ,n fact we ha(e a lot of possibilities !ust by adding functions to our scripts*
62 &he common browsers transmit the form information by either method2 hereEs the complete tag including the G#& transmission method attribute for the pre(ious form #8ample O=orm method QG#& actionQhttp255www*mycompany*com5cgi$bin5upfdate*plP RRR O5formP ,nput elements* 'se the OinputP tag to define any one of a number of common form elements including te8t fields multiple choice lists click able images and submission buttons* &here are many attributers for this tag only that types and name attributes are re;uired for each element, each type of input element uses only a subset of the followed attributes* +dditional OinputP attributes may be re;uired based upon which type of the form element you specify* Submit button2 &he submit button FOinput typeQsubmitP G does what its name implies, settings in motion the formEs submission to the ser(er from the browser* Be many ha(e more than submit buttons will be added to the parameter list the browser sends along to the ser(er* #8ample O ,nput type Q%submit%P O,nput typeQ%submit% (alueQ%submit% nameQ%name%P /eset button2
64 &he reset button if firm OinputP button is nearly self$ e8planatoryK it lets the user reset erase or set to some default (alue all elements in the form* By default the browser d aper )ess 3ospitallays a reset button worth the label "reset%* Be can change that by specifying a (alue attribute with tour own button label*
69
DATA%ASE M(DELS
?-BC and accessing the database through applets and ?-BC + , (ia an intermediate ser(er resulted ser(er resulted in a new type of database model which is different from the client$ser(er model* Based on number of intermediate ser(er through the re;uest should go it is named as single tire, two tire and multi tire architecture Single &ier ,n a single tier the ser(er and client are the same in the sense that a client program that needs information FclientG and the source of this type of architecture is also possible in !a(a, in case flat files are used to store the data* 3owe(er this is useful only in case of small applications* &he ad(antage with this is the simplicity and portability of the application de(eloped
-atabase
=ig2>*1 &wo &ier Fclient$ser(erG ,n two tier architecture the database resides in one machine and client in different machine they are connected through the network* ,n this type of architecture a database management takes control of the database and pro(ides access to clients in a network* &his software bundle is also called as the ser(er* Software in different machines, re;uesting for information are called as the clients*
66
Ser(er
Client
-atabase Client
=ig2>*2
6<
6> &his kind of dri(er con(erts ?-BC calls into the network protocol used by -BMS directory* &his allows a direct call from the client machine to the -BMS ser(er that aper )ess 3ospitalractical solution for intranet access* Since many of these protocols are proprietary, the database (endors themsel(es will be the primary source* Se(eral database (endors ha(e these in progress* #(entually, we e8pect that dri(er categories 4 and 9 will be the preferred way to access databases from ?-BC* -ri(er categories one and two are interim solutions where direct all !a(a dri(ers are not yet a(ailable* Category 9 is in some sense the idealK howe(er, there are many cases where category 4 may be preferable2 eg2 $where a thin -BMS$independent client is desired, or if a -BMS Yindependent protocol is standardi:ed and implemented directly by many -BMS (endors*
Ser(lets
Ser(lets pro(ides a ?a(a$Based solution used to address the problems currently associated with doing ser(er side programming, including ine8tensible scripting solutions, platform specific + ,s, and incomplete interfaces* Ser(lets are ob!ects conform to a specific interface that can be plugged into a ?a(a$based ser(er* Ser(lets are to the ser(er$ side what applets are to the client$side$ob!ect byte codes that can be dynamically loaded off the net* &hey differ from applets in that they are faceless ob!ects Fwithout graphics or a G', componentG* &hey ser(e as platform independent, dynamically loadable, plug gable helper byte code ob!ects on the ser(er side that can be used to dynamically e8tend ser(er$ side functionality* =or e8ample, an 3&& ser(let can be used to generate dynamic 3&M) content* Bhen you use ser(lets to do dynamic content you get the following ad(antages2 1*&heyEre faster and cleaner than CG, scripts* 2*&hey use a standard + , Fthe Ser(let + ,G 4*&hey pro(ide all the ad(antages of ?a(a Frun on a (ariety of ser(ers without needing to be rewrittenG &he attractions of Ser(lets
6@ &here are many features of ser(lets that make them easy and attracti(e to use* &hese include2 #asily configured using the G',$based +dmin &ool* Can be loaded and in(oked from a local disk or remotely across the network* Can be linked together, or chained, so that one ser(let can call another ser(lets, or se(eral ser(lets in se;uence* Can be called dynamically from within 3&M) pages, using ser(er$side include tags
,nternal Ser(lets
&he ?a(a Ser(er ser(let architecture is (ery fle8ible and the ser(er takes ad(antage of this by di(iding up its work among se(eral internal ser(lets* &hey are 1*=ile Ser(let 2*,n(oker Ser(let 4*Ser(er side include ser(let 9*+dmin Ser(let 6*CG, Ser(let
=ile Ser(let
&he file ser(let pro(ides the standard document ser(ing capabilities of !a(a ser(er* &his ser(let includes a caching mechanism to speed up response times of fre;uently accesses files* ,n addition it recogni:es files that are to be parsed for ser(er side includes and passes them on to the SS,nclude Ser(let* Ser(lets are an effecti(e substitute for CG, scripts and pro(ide a faster and cleaner way to generate dynamic documents* &he !a(a ser(er is both fle8ible and e8tensible* 'sing the !a(a ser(er + ,s you can write your own ser(let and incorporate it into the ser(er* &o do this follows these three steps 1* Brite the ser(let 2* Configure the ser(let 4* ,n(oke the ser(let Briting the Ser(let 'nless they are used with the http protocol, ser(lets subclass the ser(let* GenericSer(let class and o(erride the ser(ice FSer(let /e;uest, Ser(let/esponseG method* Ser(lets use with the 3&& protocol should subclass the !a(a8*ser(let*3ttpSer(let class o(erride one or both of the doGet F3ttpSer(let/e;uest, 3ttpSer(let/esponseG and do ost F3ttpSer(let/e;uest, 3ttpSer(let/esponseG methods Ser(lets class may choose to o(erride the default implementations of the ser(let "lifecycle% ser(let methods, init FSer(letConfigG and destroy FG*
<7
<1
+ ;uery language for /-BMS based on* Non Yprocedure approach to retrie(e record
<2 Grant select, insert on #M to demoK /e(oke select on #M from -emoK ,n a summari:ed way it could be concluded that SJ) becomes the ;uery engine that resides o(er the database engine ha(ing been designed on the client$ser(er +pproach and pro(ided retrie(al of data as well as operation on /-BMS* By the +pplication package and web pages* ro!ect Category RD%MS [/elational -atabase Management System] + /elational -ata Model was in(ented by -r* #* =* Codd and is based on the simple concept i*e*, &able* + /-BMS is a computer program for managing table* ,t has three ma!or parts2 -ata that is presented as &ables* 1perators for manipulating tables* ,ntegrity rules on tables*
Intro9;ct+on To M8SA0
Modern relational database management systems can perform a wide range of tasks* ,t has got the following ad(antages$ -efine a database Juery the database +dd, edit and delete data* Modify the structure of the database Secure data from public access* Communicate within networks #8port and import data
<4
MyS;l is one such /-BMS* ,t pro(ides a set of functional programs that we use a tool to build structure and performs tasks, in mys;l data is stored and displayed in tables* + table is a data structure that holds data in a relational database* + table comprises of rows and columns* &able can also show relationship between entities* &he formal name of table is relation, hence the name /elational -atabase Management System*
=ault tolerance #ase of administration +pplication de(elopment tools Networking SJ) compatibility
A>o;t S@L
SJ) is a structured ;uery language that we use to communicate with oracle* ,t consists of a set of #nglish words like Select, Create etc* &he
<9 standard set of SJ) command fall into the following category$ Jueries using select clause -ata definition language F-))G commands which are for creating and altering the structure of database*
=ig2>*4
<6 =ig2>*9
=ig2>*6
=ig2>*<
<<
=ig2>*>
=ig2>*@
<>
=ig2>*A
=ig2>*17
<@
P0-t,or2 ;1e94 (per-t+n3 S81te24 - Bindows 2777 rofessional 1/ Bindows T 2777* .ront En9 Too04 ?S , Ser(let, +!a8, ?a(a script, +!a8, CSS, 3&M)
)+n9o?1 CP Pro,e11+on-0
&his operating system is presented by Microsoft Corp* ,t supports all the G',Es facilities and is (ery much user friendly* urposes programming and other are Supporting )anguage for ,nternal rogramming*
M8SA0
,t is an 1b!ect$ oriented /elational -atabase management System* capabilities of both relational and ob!ect$oriented database management system* ,t offers
<A
=ig2@*1
/egistration age**
=ig2@*2
>7
)ogin
=ig2@*4
Up0o-9 1on31
=ig2@*9
>1
10$ C( CLUSI(
&he result of the #$Music System is that it supports many type of different$different music and the indi(idual user with uni;ue interface, through which the #$Music management problems are sol(ed within gi(en time and it shows efficiency in the internal messaging system and results in accurate task scheduling system and this can be run with the minimal administration* ,n future, we can ha(e the SMS facility for the user and user search engine that can pro(ide the result on the basis of different criteria to search* Be can also ha(e one more module of implementing this pro!ect on web*
>2
11$ %I%ILI("RAPHY
B11DS +N- M+N'+)S 2$ 1*?+0+$2 +uthor 2 ublisher 2 Complete$/eference atric Norton L 3erberlt Schild &ata McGraw 3ill
2*System +nalysis L -esigning +uthor 2 ublisher 2 ?ames +* senn &ata McGraw 3ill
4*Software #ngineering Concepts +uthor 2 ublisher 2 #dition* =airley &ata McGraw 3ill ublication,4rd