JSPAyao文档格式.docx
《JSPAyao文档格式.docx》由会员分享,可在线阅读,更多相关《JSPAyao文档格式.docx(16页珍藏版)》请在冰点文库上搜索。
4)Defenseandgradingstandards:
(1)Completingthewebdesigning:
20marks;
(2)Completinginformationcollection,valuejudgment,collectionandprocessing:
(3)Finishdesignprocess(includingthecode):
40marks;
(4)Answeringthequestions:
20marks。
5)Reference:
[1]ChenYi《WebDevelopmenttechnologypracticaltutorial》2008
6)DesignCurriculumsShedules
ContentsDay Place
Conceptionandcollectdata1 Thelibrary
Codinganddebugging3 Thelab
Writingpapers1 TheLibraryandthelab
StudentSignature:
2010/12/29
CourseDesign(Paper)EvaluationOpinions
(1)Completionsituation(20’):
optimal( )、good( )、medium( )、generally( )、poor( );
(2)Informationprocessing(20’):
optimal( )、good( )、medium( )、gennerally( )、poor( );
(3)Designandcoding(20’):
(4)Answeringquestions(20’):
(5)Paper(20’):
(6)Attendance:
Yes( )、No( )
Reviewingpeople:
Position:
2010/12/29
1.Certificate
DonethisprojectundertheguidanceandsupervisionofMissPrabhaanditissubmittedtotheEastChinaJiaoTongUniversityaspartialfull-fillmentofSoftwareandAccountinggraduation.
2.Acknowledgement
Firstly,Iappreciatemysupervisor,MissPrabha,fromIndia,whointroduceustheJSPthisterm.Forherguidanceandassistance,weallbenefitfromherwideknowledgeandlogicalwayofthinking.Secondly,Iwanttoemphasizethatbeingyourstudentisaproudofmylife,especiallythehappiesttimeinstudyIeverhad.
Besides,Iwanttothanktheclassmatesaroundmefortheirtimelyhelp.Notonlytheleisure-timeactivities,butalsotheexperiencesinthefieldofJSPlearningtheysharedarethesubstantialfoundationofmypersonalproject.
Finally,thankstotheuniversityandtheschoolofsoftwarewestayedin,forwecanhavethechancetostudyhere.
3.SystemFunctionalSpecification
Thispersonalproject“ClassofSoftwareAccounting08-1MessageBoard”isbasedonlanguageJavaanddatabaseAccesstodevelop.Itcanrealizethefunctionofgivingmessagesontheboardastheuserandcheck、deleteoraddthemessageonthewebsiteastheadministrator.Ofcourse,itcanalsoreplythemessagefromtheuser,ifthemessageisnotlegal;
itwillbedeletedbytheadmin.
Otherwise,useralsocanmakeacommenttothesystem,voteforthewebifnecessary.Atlast,theadmincanbeshowedaresultoftheadvicefromusers.
4.HardwareandSoftwareRequiredtoDevelopetheProject
Hardware
Processor:
Intel(R)Core(TM)2DuoCPU2.10GHz
RAM:
2GB
Display:
adapter:
SVGA
Software
Operatingsystem:
WindowsXP
Database:
MySQLversion
ProgrammingLanguage:
Java/JSP
5.HardwareandSoftwareRequiredtoRunProject
Processor:
Intel(R)Core(TM)2DuoCPU2.10GHz
BIOS:
Lenovo
Ram:
2.00GB
Displayadapter:
Systemtype:
32-bitoperatingsystem
Monitorsize:
20
Keyboard:
108keys
WindowsXPDatabase:
6.Screenshot
Studentpersonaldetailstablesarecreatedinaccessdatabaseandthedatabaseishavingthefollowingstructure:
HomePage:
WhenWeClickTheSumbit:
WhenweclickthebuyButton:
WhenweclicktheCancelButton:
7.SourceCode
Index_1.jsp
<
%--
Document:
index
Createdon:
2011-1-1,13:
24:
46
Author:
Administrator
--%>
%@pagecontentType="
text/html"
pageEncoding="
UTF-8"
%>
!
DOCTYPEHTMLPUBLIC"
-//W3C//DTDHTML4.01Transitional//EN"
"
http:
//www.w3.org/TR/html4/loose.dtd"
>
html>
<
head
metahttp-equiv="
Content-Type"
content="
text/html;
charset=UTF-8"
title>
BookTickets<
/title>
/head>
styletype="
text/css"
--
.bg1{background-image:
url(F:
\u=3780420856,189026702&
fm=3&
gp=0.jpg);
background-repeat:
repeat;
background-attachment:
fixed;
background-position:
leftbottom
}
-->
/style>
bodyclass="
bg1"
tableborder="
1"
width="
50%"
align="
right"
/table>
fontcolor="
red"
size="
6"
TheWebForBookBusTickets<
/font>
formmethod="
post"
action="
ShowTicket_1.jsp"
br>
tablealign="
center"
tr>
tdcolspan="
2"
5"
PleaseChooseTheTicketYouWant!
/td>
/tr>
td>
4"
face="
粗体"
FromWhere:
selectname="
item1"
option>
JiangXiLiGong
Ecjtu
XiaLuo
LanTianbiShui
HuoCheZhan
Luziru
/select>
ToThePlace:
item2"
WhenDoyouWantGo:
item3"
6:
00
8:
30
16:
>
Number:
inputtype="
text"
name="
number"
/>
tdalign="
inputtype=submitname="
submit"
value="
Submit"
inputtype=resetname="
reset"
Reset"
/form>
/body>
/html>
ShowTickets_1.jsp
testlogin
2010-12-30,21:
22:
16
head>
ShowTecket<
\u=429135090,1568974150&
fm=0&
repeat-x;
050%
100%"
fontsize="
黑体"
ThePicketYouHaveBooked:
hr>
table>
tdwidth="
200"
ThePlaceBegin<
TheDestination<
TheTime<
Number<
%
Stringitem1=request.getParameter("
);
Stringitem2=request.getParameter("
Stringitem3=request.getParameter("
Stringnum=request.getParameter("
out.println("
tdwidth=200>
"
+item1+"
+item2+"
+item3+"
+num+"
%>
tdheight="
60px"
80"
valign="
buttom"
colspan="
formaction="
succeed.jsp"
method="
hidden"
%Stringa=num;
if(a.equals("
))out.print("
16"
elseif(a.equals("
86"
3"
36"
elseif(a.equals("
45"
elseout.print("
120"
price"
Buy"
left"
index_1.jsp"
Cancel"
Succeed.jsp
%@pagecontentType="
pageEncoding="
succeed<
.bg1{background-color:
#99cc33}
h1style="
margin-left:
250px;
youshouldpay:
%=request.getParameter("
)%>
$<
Congraturations!
buyticketsuccessful!
/h1>
Javaclass.java
packagemyBean;
publicclassjavaclass{
publicStringitem1;
publicStringitem2;
publicStringitem3;
publicintnumber;
publicvoidsetItem1(Stringname)
{
item1=name;
}
publicvoidsetItem2(Stringname1)
item2=name1;
publicvoidsetItem3(Stringname1)
item3=nam