You are on page 1of 4

exp No o4/cS-4159

BctLh:D
Y& 26/81202
Name Shoaddha Mes-ty
clais TY8s.c-cs RollNo'C S - I 5 9
SubiecE Aeb Service

ifle 5 Aite a prpgreumo implemen


to Credte a aleb.ServiLe to perEoYm oper
ation on dafabare
Steps
(Teal te a ne vn project
22 Right click on pxojett arnd SelecE No
andhon selecE ale Servie
S Name the 1aleb Seruite a y }ALS Name
The patkage a lls. click on f'nish
4Croto Semii Selectjavadb Right
clits on javadh and Select Stazt Sever
Right clidk on canection Staing and SelecE
ConnetEA Expand Connetion ahing TE
will Shoin APP. expand APP T will
shoia table .aright click on table and
Selert Creato i a l
5 Name theable aitable2 and add 2
celumnS RollALo and Name Croto paoje
6) RighE ciuk mpaLK name nt
Lotheng Selettlafish in the cateaoies
Land SelecE File typeiai DRC Lannettion-
pool click Next litk Finish
7 Right click on Baniect2 NeN OtheTS
Prom (atesories Selett lassish and
fram EileTyees Select TDBC Resource
Sele cE NexE Clik on dhe Combobox
and Selectcannettion peolchan
INDINameto Sjdbclmydt

cickNext itkEinish-

Riqht clicls an.


£ile m y N S . jaYa codde2
Open l8andSeletE
insert
l i n e Na
SelecE usedatabcse.clics.an Add-

qiveYame as my
and
Cicko k clits ok- operatiod
Add
2 o to desiqn Select a 9etneme.
Name he operatian
ing Clicda o n Add
A c t u n tYpe as S
paramete Rollno nd i t s
and add a
agString Clilk ok
ype are_uOor
S o u te a s Ae
1L2No clitk a n impor
database, A i t e
kina w i t h
as. Sal Statement.
etName funtion and
122Nou_qo to
he Lllousina, Cod e

taL
Connection C=mydsqetcoone (ton

Prepaxed Statement PS = C:prepared


Statementl"SelectE* am table 2_
1albexe xallno = {" ]}_
PS Set+Strinq(1.oll no)j
ReSuLEsetr PS eXeuute.uery
i£(xnextC))
xeturn get Stxing(2)s
else
e t u n " N a n a e Fand"_
Catdh(Exceptlon e
Tetun "E ur"
3Rishtclickon projet and
S+Hhe aLeb Service Selett deplsy: Te
No CYeate a New pojett
a tcient' NoL) mht lisk omnameHeproe
prOje CtName2
client >Nteav \Neb
5 lick anpmojec than Server CienF_
Seles
PojetE SelecE mya Click okbxouwse Expand Rat D
G u abt ilile on clientNamehepatkage ajdli
t name the Servleta. My pojett Servle
`emle
finish. Serylet click
7ALow yemove line fom No
of procesg re4uest mcthodof 34to No 3
ava flle. \a to the myServleE
follooingcade:
Out printlnsetName.("CS-1001"l;
l8)Nou qo to proieCEIalindo) and expand
Alebgervice rePerene8 folder Nouw
Simp
lydoaq gehNanaskunthiomand drop iE a
i nmYServlebjaya fleTt ill create
Code automatically4
1q) Nou deploy client pojetEand aun it.
PAGEN
oATE
Output
Methsds
Public abstaact acalangSt 9 AISg
My Ws-D.9etNanme aNa: lanq Stadma
9etName | Cs-1oot

Method Parametens )
Type Vall
iavalang. S+na C.S ool

Metnod retuDed

jaNalang String: "ABc

You might also like