File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

login page using JSP

 
shub mehr
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 510
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64173
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic