This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to get database table information from jsp file

 
Sanej Bandgar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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();
}
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • 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).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!