The document outlines tasks for a JSP programming practical including: 1) Implementing page directive attributes to display date/time and errors. 2) Creating a JSP page to demonstrate include and scripting elements. 3) Creating a JSP page to access a database using page directives and scriptlets. 4) Calling a JavaBean from a JSP page to work with student data using JSP actions. 5) Implementing a login system with a login JSP, bean, and servlet to validate credentials from a database and display a welcome message.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
44 views1 page
PR 6new
The document outlines tasks for a JSP programming practical including: 1) Implementing page directive attributes to display date/time and errors. 2) Creating a JSP page to demonstrate include and scripting elements. 3) Creating a JSP page to access a database using page directives and scriptlets. 4) Calling a JavaBean from a JSP page to work with student data using JSP actions. 5) Implementing a login system with a login JSP, bean, and servlet to validate credentials from a database and display a welcome message.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1
Practical#6: JSP Programming
1) Create an index.jsp page to implement various attributes of Page Directive element
by displaying current date and time and error message.
2) Create a JSP Page to implement the Include and Scripting elements with an example.
3) Create a JSP to work with JDBC API and to access Database of Pr#2 using Page Directive and Scriptlet elements.
4) With the help of <jsp:useBean>, <jsp:setProperty>, <jsp:getProperty>
action elements call JavaBean from a JSP page for StudentInfo (e.g. id, Name, Address) application.
5) Login Authentication using Bean and Servlet In JSP:
1). Create a "login.jsp" to login the user.
2). Create a "loginbean.jsp" to set the parameter using <jsp:useBean> and forward to the Servlet . 3). Create a bean class "LoginBean.java" to mapping the parameter from “loginbean.jsp". 4). Create a Servlet”login.java" to validate the username and password from the database. 5). Create a "welcome.jsp" display a message after successfully user login.