Solved

Design Questions on Getting Data from DB2 via Java, servlet , HTML

Posted on 2006-11-17
3
426 Views
Last Modified: 2008-02-01
Hi ,

I am learning  Java , servlet etc.  What I am trying to do is  to create an application that will

1-  prompt the customer to enter some account number
2.  Connect to DB2
3.  retrivew some data based on the  account number from DB2
4. Display the result to the customer back via webpage


Is this hard to do? . I  know C +++  but not java.  Do you think I can learn Java easily to do this ... I am just trying to learn her...  If you have some code  similar to this application ,  please let me know....


Best Regards,
Kassa
0
Comment
Question by:Raeykassa
3 Comments
 
LVL 2

Accepted Solution

by:
Netwing earned 250 total points
ID: 17971062
Should not be that hard. But i think the guys in the Java->JSP section can help more then here at client side scripting with java script ;-)
0
 
LVL 10

Assisted Solution

by:ADSLMark
ADSLMark earned 250 total points
ID: 17972741
Do-able.

- Look up some stuff about servlets (http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/).
- Setup servlet environment.
- Take the most basic example.
- Add the database stuff.
- Run the servlet and done.

Basically the setup of the servlets is a bit difficult, but there is enough information to help you. The java code should be fairly easy, just use jdbc for the connection to the database (i think that's possible, right?) and then make some queries.
You can use JSP for the user interface to ask the account number, request is sent to your servlet and this processes the request with communication to the database, return the output and the another (or the same) JSP page can show it to the user.

Good luck.
Mark
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

In this article, we'll look how to sort an Array in JavaScript, including the more advanced techniques of sorting a collection of records either ascending or descending on two or more fields. Basic Sorting of Arrays First, let's look at the …
In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

803 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