Solved

displayng data from a database in a textbox.

Posted on 2004-04-01
4
292 Views
Last Modified: 2011-08-18
i am doing a 3 tier online banking system and am using mysql servlets jsp and html. when a user logs on i need to display their balance in a textbox. but i dont know the code to display the balance, also where should it go, in the servlet or in the jsp.
any reply would be great
0
Comment
Question by:wesleybowden21
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 14

Accepted Solution

by:
Esopo earned 200 total points
ID: 10737588
This is an excellent resource describing everything from Java installation to database connectivity:
http://www.yolinux.com/TUTORIALS/LinuxTutorialTomcat.html

It also features links (at the end of the page) to more information about the subjects covered and books if you care to buy one.

Hope this helps,


Esopo.
0
 

Expert Comment

by:jpete033
ID: 10956288
Wesley,

While I am not sure of the syntax you will use in your scenario as I work with coldfusion, here is how you can display your database data once you know the string to output your data:

This is a normal text field in a form, with an initial value of "test":

<input name="email" type="text" id="email" value="test" size="40">

You could do:

1.   Set a variable equal to the balance of the user.

2.   <input name="email" type="text" id="email" value="*CODE TO OUTPUT VARIABLE HERE*" size="40">

Sorry I don't have specifics for your situation, but this may help some.

Cheers,

Jason
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question