Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JSP and the fly likes login page using JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "login page using JSP" Watch "login page using JSP" New topic
Author

login page using JSP

shub mehr
Greenhorn

Joined: Aug 03, 2007
Posts: 4
im new here.. can some one help me out?
im trying to design a login page using JSP..
but writing my code in a jsp page will expose it to every one..
can some one give me highlight on how to use JSP and some other way in which i can hide my logic DB/pwd part in a java file and isolate it from the user..
please explain to me as a newbie..
Thanks in advance
[ August 03, 2007: Message edited by: Bear Bibeault ]
Michael Ku
Ranch Hand

Joined: Apr 20, 2002
Posts: 510
Use the MVC pattern (often called Model 2 architecture for the web) to call a Servlet, call all your logic from the Servlet and then forward to a JSP page. This will hide your logic.

You can go to java.sun.com to get started. They have a lot of tutorials
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60057
    
  65

"java bean", please check your email for an important message from me.

Also, please be sure to take the time to compose descriptive subjects for your posts. "hi" is not a very good choice for a topic title. Please read this for more information.

I have adjusted the subject of this post for you.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: login page using JSP
 
Similar Threads
problem in printing the values
redirecting page
redirecting useing session in jsp
ArrayList and Ajax
Tomcat 7 maintaining more than one session