• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to get database table information from jsp file

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i am having "user.admin.jsp" file. i need to know which database table it is useing to retrive data when i click on "Fetch USer" button . Form action jsp name itself "user.admin.jsp". Any comment
--------------------------------------------------------
FORM ACITON:
form name="frmGetUser" method="POST" action="user.admin.jsp"

JAVA SCRIPT:

function getUser() {
var lUser = frmGetUser.addressbookid.value;
frmGetUser.hidMode.value = "getuser";
frmGetUser.hidUser.value = frmGetUser.addressbookid.value;
document.forms[0].submit();
}
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

The code to do that should be in the JSP page, shouldn't it? Or at least it should point you into the direction of the code that accesses the DB (maybe -hopefully- it's in a backing bean, and not the JSP itself).
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic