Solved

displayng data from a database in a textbox.

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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Record Button 3 229
Turning button invisible in master page, prior to redirecting to content page problem 1 454
Dreamweaver CS4 filling forms 2 150
Video Not Showing 8 104
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 …
Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

740 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