Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

could you give me some tips to begin ? 1

Status
Not open for further replies.

tyris

Programmer
Nov 2, 2000
311
FR
hi all,

i read a lot to begin with java beans, jsp, srvlets... i looked at sun web pages + ibm redbooks (because my applications will be under websphere).

as i don't know anything from all those components, i'm a bit lost amoung all those new stuff.

i don't ask somebody to make the work for me (of course !! :eek:) but just to guide me a bit to know what i need to look for:

i'd like to be able to make a web applications that makes a connection to a sql server database and executes a query and then fills the fields it the web page.

i don't know where i should begin. i guess the jsp file should call class file ? and the connection + query should be done by the .java file, isnt it ?

what i the place of servlets, applets and beans ? what should do what, in an other way what are their respective roles ?

i know i asked a lot of questions, and my english is not very good, but i'd be glad to have at least some answers because even if i have a lot of documentation i'm a bit lost...

thanks

Best regards X-),
Elise
 
To connect to a database your best bet is to use JDBC. Have a look at this tutorial:


And choose the 'database extension' link at the bottom. That should get you started. The tutorial uses a JSP page to call a Bean which returns the desired results from the database and allows you to place the values in the correct fields on your page.

An applet is a java program that executes on the client side, usually inside a browser.

A servlet is the opposite, it is a Java program that extends the HttpServlet class and executes server side and is ideal for web publishing.

Beans are discussed in the tutorial.

Hope this helps,

Tim --
Tim <tim@planetedge.co.uk>
 
yes really thank you for your help, i gonna have a look at this tutorial. i knew the definitions of servlets and applet but was a bit lost when i need to practice.

theory is sometime difficult to apply ! :eek:)

thanks again Best regards X-),
Elise
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top