954,574 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

JSP Login Page

Hello,
I have been told to design website in JSP. Firstly it contains login page.i hv designed login.jsp but it contains all HTML tags. For the database(Sybase) connection i m planing to write java file login.java which will be invoked in login.jsp action method....
...
..is this a right way to develop a web site....or shud i use struts(i dnt hv any knowledge abt it...)

plz guide me...

sagar2dumbre
Newbie Poster
10 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
 

well, is there any way technology (jsp, jsp, ... servlets, struts, ... gwt, ...) you really know?
if you have skills in developing using jsp and servlets, use it, if you know struts, use it, if you don't, and your employer/client puts you on a strict deadline, don't push it, and don't pick the hardest technology to crack because it would look more impressive.

stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
 
well, is there any way technology (jsp, jsp, ... servlets, struts, ... gwt, ...) you really know? if you have skills in developing using jsp and servlets, use it, if you know struts, use it, if you don't, and your employer/client puts you on a strict deadline, don't push it, and don't pick the hardest technology to crack because it would look more impressive.


i know about JSP & Servlet...but dont hv any idea abt wht is struts.can u plz answer to my ques. ? to design login page jsp page shud only contain HTML tags ? nd processing is done in servlet or single JSP page wud be sufficient ?

sagar2dumbre
Newbie Poster
10 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
 

what processing do you want to be done?
the 'processing' of variable data only should start when there is variable data, so, when you enter your username, password and press log in.

for more information on Struts, check http://struts.apache.org/

stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
 

Can we create web application which contains this username,password login page,database connection for dynamic data display in JSP|Servlet....WITHOUT USING STRUTS ?

sagar2dumbre
Newbie Poster
10 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
 

sure you can, you can create such an app easily with just plain old jsp pages and servlets.

stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
 
Can we create web application which contains this username,password login page,database connection for dynamic data display in JSP|Servlet....WITHOUT USING STRUTS ?


Example available under JSP database connectivity according to Model View Controller (MVC) Model 2

peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 
sagar2dumbre
Newbie Poster
10 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You