| | |
Jsp
Please support our JSP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
You don't.
Use a proper architecture and let a servlet handle the actual login (or better yet, have a servlet let some business logic component like an EJB handle it) and just forward the results to the JSP.
It becomes a simple matter of some JDBC code (best hidden behind a layer like Hibernate, iBatis, or Spring JDBC), for which there are many tutorials available.
The JDBC driver documentation will tell you the specific data to input into the system to get a connection to your database (driver class, URI format, etc. etc.).
Use a proper architecture and let a servlet handle the actual login (or better yet, have a servlet let some business logic component like an EJB handle it) and just forward the results to the JSP.
It becomes a simple matter of some JDBC code (best hidden behind a layer like Hibernate, iBatis, or Spring JDBC), for which there are many tutorials available.
The JDBC driver documentation will tell you the specific data to input into the system to get a connection to your database (driver class, URI format, etc. etc.).
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
![]() |
Similar Threads
- jsp and mysql (JSP)
- how to use jsp and tomcat (JSP)
- Can't run JSP in Browser (JSP)
- Passing arguments to jsp file (Java)
- Word.doc upload using JSP (Java)
- Can't run JSP in Browser (Web Browsers)
- JSP and Oracle (JSP)
Other Threads in the JSP Forum
- Previous Thread: How Get Date of "First Day of Current Week" in JSP
- Next Thread: jsp with IIS
| Thread Tools | Search this Thread |
apache array backbutton combobox comma connection csv database development directorystructure dropdownlist dynamicpagetitles eclipse frames glassfish ie8 imagetodatabse imageupload integer internet java javaee javascript jsf jsp jsppagetitles levels mvc2 mvcmodel2 mysql netbeans network parameters passing ping printinserverinsteadofclient read redirect request.getparameter response seperated servlet servletdopost()readxml sessions software sql ssl state_saving_method stocks sun tomcat tutorial update values video web write






