Solved

displayng data from a database in a textbox.

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Editing PHP within Adobe DreamWeaver 11 183
Dreamweaver template not updating editable region 4 194
Responsive CSS Layout? 6 44
Best way to make existing site mobile 5 129
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…
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…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

911 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

16 Experts available now in Live!

Get 1:1 Help Now