Click here to Skip to main content
12,405,700 members (65,097 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: HTML Java MySQL
Help me to create a simple 3 tier project which takes the user input and adds the user entry to the database.
Also I need to retrieve the information for the user queries using servlet and my sql database.

Question: Is it compulsory to use jsp?
Posted 21-May-11 23:17pm
Updated 23-May-11 1:52am
v4
Comments
OriginalGriff 22-May-11 5:26am
   
What have you tried?
Dalek Dave 22-May-11 5:50am
   
Edited for Grammar and Readability.
Christian Graus 22-May-11 7:48am
   
Happily, that's what we're here for. What have you done, and what specific question do you hve ? Your question sounds like you posted with no work done and no clue how to do it, that's wrong, right ?
Manfred R. Bihy 23-May-11 7:54am
   
The question was there in the original revision of OP, but the question mark was missing. Anyhow, question is answered by my solution.
SAKryukov 22-May-11 13:27pm
   
No question here. What answer would you expect? "I'm here for you"?
--SA
Manfred R. Bihy 23-May-11 7:53am
   
The question was there in the original revision of OP, but the question mark was missing. Anyhow question is answered by my solution.
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Using JSP pages is not at all nescessary! It makes building dynamic web pages easier, but you can also do that by using servlets alone. You'll have to do all the HTML rendering yourself via Response.Write etc. , but it's doable nevertheless.

Cheers!

-MRB
  Permalink  
Comments
SAKryukov 23-May-11 19:09pm
   
Reasonable advice, my 5.
--SA
Manfred R. Bihy 23-May-11 19:36pm
   
Thanks SA! :)
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

Create a class library - BusinessLogic
Create a class library - DataAccess

Now, from your UI, use the object model and pass on to BusinessLogic project class. This class is a Business logic class. Do the changes as per your need here.
Now, pass on the changed data from business logic class to dataAccess project class.

For getting back data, it will be transferred from DA to BL and then BL to UI layer.
  Permalink  
Comments
Abhinav S 22-May-11 13:35pm
   
Good answer. 5.
S Mewara 22-May-11 13:42pm
   
Thanks Abhinav.
Manfred R. Bihy 23-May-11 7:55am
   
Answers not really OP's question, but my 5 anyhow!
The question was there in the original revision of OP, but the question mark was missing. Anyhow question is answered by my solution.
SAKryukov 23-May-11 19:09pm
   
Very general, but what else could answer such a general and vague question. My 5.
--SA
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

If you search on the internet, you will be able to find at least a few good samples (with code) that do this for you. But honestly. you should try something on your own.
  Permalink  
Comments
Manfred R. Bihy 23-May-11 7:56am
   
Answers not really OP's question. (No vote) The question was there in the original revision of OP, but the question mark was missing. Anyhow question is answered by my solution.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160721.1 | Last Updated 23 May 2011
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100