| Forums.Sureshkumar.net : A Perfect Place to Share Knowledge Blogs Games Magazines |
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Rate Thread | Display Modes |
|
|
#1 (permalink) |
|
Junior Member
Join Date: Oct 2006
Age: 26
Posts: 23
Thanks: 7 Thanked 0 Times in 0 Posts Thanks: 7
Thanked 0 Times in 0 Posts
Rep Power: 3
|
jsp query: Viewing the processing status in same page
hi friends
I want to know how to get a value from a form, process data from backend using this value, and display results in the same form. That means, I want to submit the form to itself and write jdbc in js function and alert the results.How is it possible. Kindly suggest Regards, Kiranmayi.M |
|
|
|
|
|
#2 (permalink) |
|
Super Moderator
Join Date: Feb 2006
Location: Hyderabad
Posts: 2,355
Thanks: 117 Thanked 241 Times in 198 Posts Thanks: 117
Thanked 241 Times in 198 Posts
Blog Entries: 4
Rep Power: 51
|
Re: jsp query
Kiranmayi,
If you want to use javascript to pass data to server for further processing/storing data, you may need to take help of AJAX. It is what exactly AJAX does. But if you want to use pure JSP technology, then it is possible by submitting the page to server and getting the response back. Sample code may look like this - <% String name = request.getParameter("name"); if(name!=null or name!="") out.writeln("Welcome : " +name); %> <form name=test action=selftest.jsp> <input type=text name="name"> </form> Thanks, Krishna |
|
|
|
| The Following User Says Thank You to sk_kireeti For This Useful Post: |
kiranmayi_p1 (06-12-06)
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| java JSP | naga | JAVA Technologies | 4 | 21-08-06 05:03 PM |