This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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: 63542

"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!