Solved

displayng data from a database in a textbox.

Posted on 2004-04-01
4
286 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
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

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…
I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now