Forums.Sureshkumar.net : A Perfect Place to Share Knowledge         Blogs     Games    Magazines    

"Sharing knowledge does not lessen your store, often it gets you more. Sharing plays a key role in relationships and bonding, happens in small steps and is assisted through community membership."

Go Back   SURESHKUMAR.NET FORUMS > TECHNICAL DISCUSSIONS > JAVA Technologies
Register FAQ Members List Calendar Games Blogs Search Today's Posts Mark Forums Read

   

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 06-12-06, 06:51 PM   #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 kiranmayi_p1 is on a distinguished road
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
kiranmayi_p1 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-12-06, 08:40 PM   #2 (permalink)
Super Moderator
 
sk_kireeti's Avatar
 
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 sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute
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
sk_kireeti is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to sk_kireeti For This Useful Post:
kiranmayi_p1 (06-12-06)
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
java JSP naga JAVA Technologies 4 21-08-06 05:03 PM


All times are GMT +6.5. The time now is 02:25 PM.





Search Engine Optimization by vBSEO 3.1.0