Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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
Edited 23-May-11 1:52am
v4
Comments
OriginalGriff at 22-May-11 5:26am
   
What have you tried?
Dalek Dave at 22-May-11 5:50am
   
Edited for Grammar and Readability.
Christian Graus at 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 at 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 at 22-May-11 13:27pm
   
No question here. What answer would you expect? "I'm here for you"?
--SA
Manfred R. Bihy at 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 at 23-May-11 19:09pm
   
Reasonable advice, my 5.
--SA
Manfred R. Bihy at 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 at 22-May-11 13:35pm
   
Good answer. 5.
S Mewara at 22-May-11 13:42pm
   
Thanks Abhinav.
Manfred R. Bihy at 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 at 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 at 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
0 CHill60 360
1 OriginalGriff 303
2 Sarvesh Kumar Gupta 168
3 RyanDev 145
4 Sergey Alexandrovich Kryukov 128


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