File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

login page using JSP

shub mehr

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 to get started. They have a lot of tutorials
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63848

"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] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: login page using JSP
It's not a secret anymore!