Monday, February 13, 2012

Share all exercise learn JSP step by step

Hi all, I have a books very good about JSP. It's include all Lab step by step. I hope it is useful for youPlease, Download by link belowLab 1. Developing Web Applications-An Overview Lab 2. Using Java Server Pages (JSP) Tags Lab 3. Using JSP ScriptlUsing JSP Scriptlet Lab 4. Using JavaBeans in Java Server Pages Lab 5. JSP Application Models Lab 6. Session Management Lab 7. Java Database Connectivity Lab 8. Creating Web Applications Lab 9. Introduction to Struts Lab 10. Working with User Input Lab 11. Using Models and ActionForms Lab 12. Using Actions Lab 13. Struts... Read more →

Monday, February 7, 2011

Share books JSP for everyone

I have some book JSP and Java. I want share for everyone. You can download link:Download hereNote: I will update when new book.Thank all!... Read more →

Wednesday, September 2, 2009

Write a program to input the new registration details to the Database. In addition, create a DSN to connect the JSP page to the database.

Write a program to input the new registration details to the Database. In addition, create a DSN to connect the JSP page to the database.Solution:The files used to run this application are: 1. index.jsp 2. details.jsp 3. Simple.jsp 4. SimpleResults.jsp 5. Signin.jsp 6. SigninFailed.jsp 7. ProcessSimpleAction.java 8. SuccessAction.java 9. SimpleActionForm.java10.SigninActionForm.java<html><head><title>Marko Bank</title></head><body><center><H1>Welcome to Marko Bank Home page</H1></center><br><br><br><br><a href="prepareSimple.do">Register Newuser</a><br><a href="prepareSignin.do">Sign in user</a><br></body></html>Enter the code in Notepad and save the file as index.jsp in %TOMCAT_HOME%/webapps/ marko.<%@ page language="java" contentType="text/html; charset=utf-8" %><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %><HTML><HEAD><TITLE> New User Registration form</TITLE></HEAD><CENTER><h1>New User Registration form</h1></CENTER><hr noshade="noshade"/><p>Enter information into the fields below. Your entries will... Read more →

Friday, June 26, 2009

Create a user details page

Create a user details page. The page should have First Name, Last Name, and Email address fields. On clicking the submit button, a new Web page should display the details entered by the user.Hint: Use getAttribute to display the user details.Solution:The files used in this exercise are:1. index.jsp2. displayname.jsp3. NameForm.java4. NameAction.java<%@ page language="java" %><%@ page language="java" %><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %><html><head><title>Sample Struts Application</title></head><body><h3> User Details</h3><html:form action="Name" name="nameForm" type="example.NameForm" ><table width="80%" border="0"><tr><td><b>First Name:</b><html:text property="name" /></td></tr><tr><td><b>Last Name:</b><html:text property="last" /></td></tr><tr><td><b>Email: </b><html:text property="email" /></td></tr><tr><td><html:submit /></td></tr></table></html:form></body></html>Enter the code in Notepad and save the file as index.jsp in %TOMCAT_HOME%/webapps/ details.<html><head><title>Sample Struts Display Name</title></head><body><h2> Confirm the... Read more →

Saturday, June 20, 2009

Create a Login form using struts

Create a Login form using struts. Create two text fields in the Web page, and name the fields as User and Password. The page includes a Submit button. After the user clicks the Submit button, a page should appear indicating that the user is a valid user.The files used in this exercise are:1. cust.jsp2. valid.jsp3. CustForm.java4. CustAction.java<%@ taglib uri = "/WEB-INF/struts-html.tld" prefix="html" %><html><head> <title>Testing struts</title> </head><body><html:form action = "cust.do" > <center><b>User:</b> <html:text property = "first" /><b>Password:</b><html:password property = "pwd" /><html:submit /> </center></html:form></body></html>Enter the code in Notepad and save the file as cust.jsp in %TOMCAT_HOME%/webapps/ struts-test.<html><head><title>Valid User</title></head><body><center><h2><b>VALID USER</b></h2></center></body></html>Valid UseEnter the... Read more →

Create a struts-blank.war blank application

1. Create a struts-blank.war blank application. Use the blank application to create a Web page that displays the title and author of a book. The page includes a Submit button. After the user clicks the Submit button, a page should appear indicating that the request is being processed. The example requires two JSP pages and two JavaBeans. Update struts-config.xml file to associate the Web pages with the JavaBeans.Solution:The files used in this exercise are:1. test.jsp2. searching.jsp3. BookForm.java4. BookAction.java<%@ taglib uri = "/WEB-INF/struts-html.tld" prefix="html" %><html><head> <title>Struts</title></head><body><html:form action="book.do" ><center><b>TITLE:<b> <html:text property ="title" /><p><b>AUTHOR:<b> <html:text property ="author" /><br> <p><html:submit /></center></html:form></body></html>Enter the code... Read more →

Wednesday, May 6, 2009

User Login in JSP

Every website and software in the world is having login facility. Login gives access rights to user and defines their role in website and application. Nobody can access website if they failure in proving their identity on website or application.Registration is first step by login to website. We will keep focus on only user login in JSP.User login contain two fields, first one important User ID. This is unique ID provided by site owner or software application itself or most of provide facility to choose user id themselves on their website of web application.Second is password, it is secret... Read more →