Click here to Skip to main content
15,881,938 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
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
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 Rudolf 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.
Sergey Alexandrovich Kryukov 22-May-11 13:27pm    
No question here. What answer would you expect? "I'm here for you"?
--SA

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
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 23-May-11 19:09pm    
Reasonable advice, my 5.
--SA
Manfred Rudolf Bihy 23-May-11 19:36pm    
Thanks SA! :)
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.
 
Share this answer
 
Comments
Abhinav S 22-May-11 13:35pm    
Good answer. 5.
Sandeep Mewara 22-May-11 13:42pm    
Thanks Abhinav.
Manfred Rudolf 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.
Sergey Alexandrovich Kryukov 23-May-11 19:09pm    
Very general, but what else could answer such a general and vague question. My 5.
--SA
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.
 
Share this answer
 
Comments
Manfred Rudolf 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900