0

hi...

i have multiple buttons in a jsp page ..
consider a department page where i have 3 textboxes---
1- dept number
2-dept name
3-dept location

below these i have 7 buttons---
1)next
2)previous
3)last
4)add
5)edit
6)delete
7)save

when i click on the button how do i get results on the same page...
for eg- if i press "next" the record next to the present record should appear in the textboxes.... likewise when i press "previous" the previous record should appear in the textboxes....

wat concept should i use??

2
Contributors
5
Replies
6
Views
6 Years
Discussion Span
Last Post by masijade
0

thank u for replyin...

any other method apart from ajax...???

i dont know much so my questions may sound a bit crazy to u...

can we use events in jsp???

0

jsp runs on the server, the browser runs on the client. You need network communication. AJAX (or write the necessary JavaScript yourself).

Edit: Of course, you can always just submit the form.

Edited by masijade: n/a

0

jsp runs on the server, the browser runs on the client. You need network communication. AJAX (or write the necessary JavaScript yourself).

Edit: Of course, you can always just submit the form.

in jsf we use events to get a feel of awt rite...like actionevents n different other events....
so in d same way can we use events in jsps???
can it solve my purpose...

ajax is ok... but i want someother way...

0

No. I am not just typing in order to watch the letters assemble across the screen.

Edited by masijade: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.