CSci 4131 Assignment 5: Java Servlets, XML Parsing, and RSS Processing

$35.00

Category: Tags: , , , , , You will Instantly receive a download link for .zip solution file upon Payment || To Order Original Work Click Custom Order?

Description

5/5 - (2 votes)

Objective:
The goalV of WhiV aVVignmenW aUe Wo leaUn Whe folloZing:
x JaYa SeUYleW PUogUamming
x XML DocXmenW PaUVing, and XVing WhiV Wo paUVe RSS VWUeam docXmenWV
HeUe iV an e[ample of Whe RSS feed fUom CNN
Problem Description:
An RSS feed iV an XML , and iW conWainV a liVW of neZV iWemV, ZheUe each iWem conWainV WZo paUWV: WiWle and deVcUipWion. (The XndeUlined ZoUdV aUe
XML WagV in Whe RSS docXmenWV.)
FolloZing iV an e[ample of an RSS-XML docXmenW :-

LifWRff NeZV
hWWS://OifWRff.PVfc.QaVa.gRY/
LifWRff WR SSace E[SORUaWiRQ.
eQ-XV
TXe, 10 JXQ 2003 04:00:00 GMT
TXe, 10 JXQ 2003 09:41:01 GMT
hWWS://bORgV.OaZ.haUYaUd.edX/Wech/UVV
WebORg EdiWRU 2.0
ediWRU@e[aPSOe.cRP ZebPaVWeU@e[aPSOe.cRP

SWaU CiW\
hWWS://OifWRff.PVfc.QaVa.gRY/QeZV/2003/QeZV-VWaUciW\.aVS
HRZ dR APeUicaQV geW Uead\ WR ZRUN ZiWh RXVViaQV abRaUd Whe IQWeUQaWiRQaO SSace SWaWiRQ? The\ WaNe a cUaVh cRXUVe iQ cXOWXUe, OaQgXage aQd SURWRcRO aW RXVVia’V &
TXe, 03 JXQ 2003 09:39:21 GMT
hWWS://OifWRff.PVfc.QaVa.gRY/2003/06/03.hWPO#iWeP573

SN\ ZaWcheUV iQ EXURSe, AVia, aQd SaUWV Rf AOaVNa aQd CaQada ZiOO e[SeUieQce a &OW;a hUef=”hWWS://VcieQce.QaVa.gRY/headOiQeV/\2003/30Pa\_VROaUecOiSVe.hWP”&
FUi, 30 Ma\ 2003 11:06:42 GMT
hWWS://OifWRff.PVfc.QaVa.gRY/2003/05/30.hWPO#iWeP572

The EQgiQe ThaW DReV MRUe
hWWS://OifWRff.PVfc.QaVa.gRY/QeZV/2003/QeZV-VASIMR.aVS
BefRUe PaQ WUaYeOV WR MaUV, NASA hRSeV WR deVigQ QeZ eQgiQeV WhaW ZiOO OeW XV fO\ WhURXgh Whe SROaU S\VWeP PRUe TXicNO\.
TXe, 27 Ma\ 2003 08:37:32 GMT
hWWS://OifWRff.PVfc.QaVa.gRY/2003/05/27.hWPO#iWeP571

AVWURQaXWV’ DiUW\ LaXQdU\
hWWS://OifWRff.PVfc.QaVa.gRY/QeZV/2003/QeZV-OaXQdU\.aVS
CRPSaUed WR eaUOieU VSacecUafW, Whe IQWeUQaWiRQaO SSace SWaWiRQ haV PaQ\ OX[XUieV, bXW OaXQdU\ faciOiWieV aUe QRW RQe Rf WheP.
TXe, 20 Ma\ 2003 08:56:02 GMT
hWWS://OifWRff.PVfc.QaVa.gRY/2003/05/20.hWPO#iWeP570

(ThiV e[ample iV aYailable aW hWWp://c\beU.laZ.haUYaUd.edX/UVV/e[ampleV/UVV2Vample.[ml)
4/12/12 CSci 4131 Internet Programming
www-users.cselabs.umn.edu/classes/Spring-2012/csci4131/Assignments/«/Assignment5.html 2/2
In WhiV aVVignmenW \oX Zill gaWheU RSS VWUeamV fUom diffeUenW neZ oXWleWV and pick fUom Whem WhoVe iWemV WhaW conWainV a giYen VeW of ke\ZoUdV foU
Zhich Whe XVeU iV inWeUeVWed in finding an\ neZV iWemV.
In WhiV aVVignmenW \oX ZoXld bXild a CGI baVed V\VWem WhaW ZoXld obWain RSS feed daWa fUom diffeUenW neZV ZebViWeV, and pUeVenW Wo Whe XVeU
filWeUed neZV iWemV baVed on Whe VeaUch cUiWeUia Vpecified b\ Whe XVeU.
Click heUe Wo Vee ZoUking (implemenWed XVing PeUl/CGI).
An XHTML docXmenW ZoXld pUeVenW a foUm ZiWh Whe folloZing elemenWV:
A mXlWiple VelecWion dUop-doZn menX Wo VelecW one oU moUe neZV ViWeV aV VoXUce of RSS feed Wo be filWeUed.
UVe aW leVW Whe folloZing foXU ViWeV:
CNN hWWp://UVV.cnn.com/UVV/cnn_ZoUld.UVV
ABC hWWp://feedV.abcneZV.com/abcneZV/inWeUnaWionalheadlineV
NBC hWWp://UVV.mVnbc.mVn.com/id/3032091/deYice/UVV/UVV.[ml
BBC hWWp://neZVUVV.bbc.co.Xk/UVV/neZVonline_Xk_ediWion/ZoUld/UVV.[ml
A We[Wfield Wo geW a liVW of ke\ZoUdV foU VeaUching. (ke\ZoUdV ZoXld be VepaUaWed b\ VpaceV)
A Uadio bXWWon gUoXp Wo indicaWe if Whe neZV iWemV VhoXld be VelecWed baVed on occXUUence of ANY oU ALL of Whe giYen ke\ZoUdV in Whe
WiWle.
A VXbmiW bXWWon Wo VXbmiW Whe foUm foU pUoceVVing Zhich Zill caXVe WhiV foUm Wo be submitted to a Java servlet running on \our Tomcat
server.
A JaYa VeUYleW UXnning on \oXU TomcaW VeUYeU Zill peUfoUm Whe folloZing acWionV:
x IW Zill conWacW each of Whe VelecWed RSS neZVfeed ViWeV and geW fUom each of Whem an XML-RSS docXmenW.
x IW Zill XVe a JaYa XML PaUVeU Wo paUVe each of Whe UeceiYed docXmenWV Wo peUfoUm Whe folloZing acWionV: RGeW all iWem elemenWV and check Whe WiWle paUW of each of Whem foU Whe giYen ke\ZoUdV
ƒ BaVed on Whe opWion VelecWed, if Whe Wile conWainV ANY oU ALL of Whe Vpecified ke\ZoUdV (in an\ oUdeU), VelecW Whe folloZing
paUWV of WhaW neZV iWemV Wo be VenW Wo Whe clienW aV XHTML
x TiWle
x DeVcUipWion
x Link
x The VeUYleW ZoXld Vend an XHTML docXmenW Wo Whe clienW conWaining Whe aboYe paUWV foU each VelecWed neZV iWem.
See WhiV link foU an e[ample of a JaYa pUogUam foU XML-RSS paUVing.