how to create using jsp

code 1:
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
        pageEncoding="ISO-8859-1"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Create New Student</title>
    </head>
    <body>
    <form name="create" method="post" action="<%=request.getContextPath()%>/Controller">
    <input type="hidden" name="page" value="create"/><br/>
    <input type="text" name="fname" id=""/><br/>
    <input type="text" name="lname" id=""/><br/>
    <input type="text" name="age" id=""/><br/>
    <input type="text" name="gender" id=""/><br/>
    <input type="text" name="phone" id=""/><br/>
    <input type="submit" value="Create"/>
    </form></body>
    </html>

code 2:
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
        pageEncoding="ISO-8859-1"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Delete Student</title>
    </head>
    <body>
    <form method="post" action="<%=request.getContextPath()%>/Controller">
    <input type="hidden" name="page" value="delete"/>
    <center>Enter the name to delete:<br/><input type="text" name="fname"/><br/>
    <input type="submit" value="Delete record"/></center> 
    </form>
    </body>
    </html>

code3:
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
        pageEncoding="ISO-8859-1"%>
        <%@page import="java.sql.*"%>
    <%@page import="java.util.*"%>
    <%@ page session="true"%>
    <%@page import="java.io.*"%>
    <%@page import="java.net.*"%>
    <%@page import="javax.servlet.*"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Student Home</title>
    </head>
    <body>
    <p>Welcome Student.. What do you want to do..</p>
    <center>
    <p><a href="<%=request.getContextPath()%>/jsp/Create.jsp">Create</a> </p>
    <p><a href="<%=request.getContextPath()%>/jsp/View.jsp">View </a></p>
    <p><a href="<%=request.getContextPath()%>/jsp/Update.jsp">Update </a></p>
    <p><a href="<%=request.getContextPath()%>/jsp/Delete.jsp">Delete </a></p>
    </center></body>
    </html>

code4:
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
        pageEncoding="ISO-8859-1"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Update</title>
    </head>
    <body><form method="post" action="<%=request.getContextPath()%>/Controller">
    <center>
    <input type="hidden" name="page" value="update"/>
    Please enter ur name<br/><input type="text" name="fname"/><br/>
    <input type="submit" value="Get Details"/></center></form>
    </body>
    </html>
code 5:
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
        pageEncoding="ISO-8859-1"%>
        <%@page import="com.beans.SampleBean" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Your Information</title>
    <% SampleBean resultObject=(SampleBean)request.getAttribute("result"); %>
    </head>
    <body>
    <center>
    <form action="<%=request.getContextPath()%>/Controller" method="post">
    <input type="hidden" name="page" value="updatedetails"/>
    <table>
    <tr><td>First Name:</td><td><input type="text" name="fname" value="<%=resultObject.getFname() %>"/></td></tr>
    <tr><td>Last Name:</td><td><input type="text" name="lname" value="<%=resultObject.getLname() %>"/></td></tr>
    <tr><td>Age:</td><td><input type="text" name="age" value="<%=resultObject.getAge() %>"/></td></tr>
    <tr><td>Gender:</td><td><input type="text" name="gender" value="<%=resultObject.getGender() %>"/></td></tr>
    <tr><td>Phone:</td><td><input type="text" name="phone" value="<%=resultObject.getPhone() %>"/></td></tr>
    <tr><td colspan="2"><input type="submit" value="Update Details"/></td></tr></table>
    </form>
    </center>

    </body>
    </html>

code 6:


    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
        pageEncoding="ISO-8859-1"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>View ur Details</title>
    </head>
    <body>
    <center>
    <form method="post" action="<%=request.getContextPath()%>/Controller">
    <input type="hidden" name="page" value="view"/>
    <center> <input type="text" name="fname"/> <br/><input type="submit" value="Search"/></center>
    </form></center>
    </body>
    </html>

code 7:


    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
        pageEncoding="ISO-8859-1"%>
        <%@page import="com.beans.SampleBean" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Your Information</title>
    <% SampleBean resultObject=(SampleBean)request.getAttribute("result"); %>
    </head>
    <body>
    <center><table cellpadding="10" cellspacing="10" border="1">
    <tr><th>First Name</th><th>Last Name</th><th>Age</th><th>Gender</th><th>Phone</th></tr>
    <tr><th><%=resultObject.getFname() %></th><th><%=resultObject.getLname() %></th><th><%=resultObject.getAge() %></th><th><%=resultObject.getGender() %></th><th><%=resultObject.getPhone() %></th></tr>
    </table>
    </center>
    </body>
    </html>
View Answers









Related Tutorials/Questions & Answers:
how to create using jsp
how to create using jsp  code 1: <%@ page language="java...; <title>Create New Student</title> </head> <body> <form name="create" method="post" action="<
how to create bean using jsp and servlet
how to create bean using jsp and servlet  public class SampleBean... the following links: http://www.roseindia.net/jsp/usingbeansinjsp.shtml http://www.roseindia.net/jsp/loginbean.shtml
Advertisements
how to create database and table using jsp
how to create database and table using jsp  hi frnds...., i want to create database and table in mysql using jsp.... i have an registration form(name... for each user to store their details.. so pls help me how to create individual
how to create users using IBM Tivoi API in jsp/servelet?
how to create users using IBM Tivoi API in jsp/servelet?  how to create users using IBM Tivoi API in jsp/servelet
create using jsp
create using jsp  code 1:``<%@ page language="java" contentType..." content="text/html; charset=ISO-8859-1"> <title>Create New Student</title> </head> <body> <form name="create" method="post
How to create textbox on combo value selection using javacsript in jsp?
How to create textbox on combo value selection using javacsript in jsp?  dynamically create textbox on combo value selection. when select multiple values then create multiple textboxes
how to create xls file and give download option using jsp/servlet?
how to create xls file and give download option using jsp/servlet?  Hi, how to create file and give download option to user,so that the user can save the file on defined path
How to create file and save it into user defined path using jsp/servlet?
How to create file and save it into user defined path using jsp/servlet?  Hi.. Onclick event I have created one file.When file will create it should asked where to save file(like browse option
how to create bar chart in jsp using msaccess database
how to create bar chart in jsp using msaccess database  type...: Unable to compile class for JSP An error occurred at line: 10 in the jsp file...\Tomcat 5.0\work\Catalina\localhost\chetana\org\apache\jsp\bar_jsp.java:61: cannot
To create crystal report in JSP using neatbeans
To create crystal report in JSP using neatbeans  How to create crystal report in JSP using neatbeans 6.9.1.
create bar chart in jsp using msaccess database
create bar chart in jsp using msaccess database  type Exception... to compile class for JSP An error occurred at line: 8 in the jsp file: /bar.jsp...\work\Catalina\localhost\chetana\org\apache\jsp\bar_jsp.java:57: cannot find symbol
how to create chat application in jsp?
how to create chat application in jsp?  i am developing online web portal using jsp, i need to communicate with admin, so i need integrate with the chat applicaion through the webportal
how to create web page on jsp?
how to create web page on jsp?  how to create web page on jsp
create bar chart in jsp using msaccess database
create bar chart in jsp using msaccess database  thanks for reply...) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758) org.apache.jsp.bar<em>jsp.</em>...) org.apache.jsp.bar<em>jsp.</em>jspService(bar_jsp.java:57
Create Listbox in JSP using AJAX control
Create Listbox in JSP using AJAX control  Hi everyone!!! I want to create an application for internal portal. here i have to create one dropdown listbox to select single elemnt using AJAX control . But i don't know anything
How to Create Excel Page Using JSP
how to create excel page using jsp   ... using java .By going through the steps of  this example we can create any... using pure word files using Java. We can create, read or write MS Excel file using
How to Create New Excel Sheet Using JSP
How to create new excel sheet using jsp       In this program, we are going to create a new  excel sheet using java .You can create any number of  new excel
How to Create Instance using PHP
How to Create Instance using PHP  Hi, How to create an instance class in PHP program. Can someone explain or suggest any online reference how to create an Instance class in PHP. Thanks, (adsbygoogle
how to create chat application in jsp?
Creating Chat application in JSP  Creating Chat application in JSP i am developing online web portal using jsp, i need to communicate with admin, so i need integrate with the chat applicaion through the webportal
Create a pie chart in jsp page using JFreeChart
Create a pie chart in jsp page using JFreeChart       This Example shows you how to create a pie chart in jsp page using JFreeChart. Code given below creates
create,edit and delete in JSP using struts and SQL server2005 as database in jdeveloper?
create,edit and delete in JSP using struts and SQL server2005 as database... to create,edit and delete tasks: taskid, taskname, date, project in JSP and struts... example using struts.if anyone knows how to do it..please help me.. thanks a lot
How to create bar chart using database values
How to create bar chart using database values  How to create bar chart using database values i.e excellent,good,average fields using jsp?It is like opinion poll.I want to show how many votes are came for excellent,good,average
Create a Pie Chart in jsp Page using JFree Chart
Create a Pie Chart in jsp Page using JFree Chart  Hello Sir I followed ur tutorial on "CREATE A PIE CHART IN JSP PAGE USING JFREE CHART" and it worked fine.now i want a Little change in code .In my project first I have to view
create,edit and delete in JSP using struts and SQL server2005 as database in jdeveloper?
create,edit and delete in JSP using struts and SQL server2005 as database in jdeveloper?  I have a project ie create an application for users to create,edit and delete tasks: taskid, taskname, date, project in JSP and struts
how to create a databaseconnectvity using SQLSERVER2005 in J2ME - JDBC
how to create a databaseconnectvity using SQLSERVER2005 in J2ME  hi , iam new to J2ME,i want to know, How to create a data base connectivity... the database code in jsp , how to call the jsp in midlet(J2me app). please kindly
Create area chart in JSP page using JFreeChart
Create area chart in JSP page using JFreeChart       This Example shows you how to create a area chart in JSP page using JFreeChart. Code given below creates a area
Create a bar chart in JSP page using JFreeChart
Create a bar chart in JSP page using JFreeChart       This Example shows you how to create a bar chart in JSP page using JFreeChart. Code given below creates a bar chart
how to create online exam in jsp and database
how to create online exam in jsp and database  learing stage ,want to know how to create online exam
how to create customise shortcut keys in jsp?
how to create customise shortcut keys in jsp?  I want to use shortcut keys in my application. keys like' EX: 1)S-Slag 2)ex-Exposure etc
How to create discussion forum? - JSP-Servlet
How to create discussion forum?  Hi, In reference to my previous query, I m making a project for a medical person, in that I want to create... can communicate with each other. I using JSP as a front end and SQL SERVER 2000
how to create forum on java subject in jsp/servlet ?
how to create forum on java subject in jsp/servlet ?  hi , i want to implement forum on java subject in jsp/servlet technology .how can i do it,which is the table required for it in mysql? formate like what is java is ? 2Reply
How to Create JSP Page
How to Create JSP Page       In this section we will show you how you can create JSP page and then test... can be used. In this example I will show you how to create a simple JSP page
how to create exce sheet using java
how to create exce sheet using java  how to create excel sheet using java
how to create an excel file using java
how to create an excel file using java  how to create an excel file using java
How to create primary key using hibernate?
How to create primary key using hibernate?  Hi, How to create primary key using hibernate? Thanks
how to create users in LDAP using java?
how to create users in LDAP using java?  how to create users in LDAP using java
how to create a header in jtable using java swing
how to create a header in jtable using java swing  how to create a header in jtable using java swing   d
how to create a text box using awt
how to create a text box using awt  give an example how creat multi buttons & text boxes
how to create pdf file using java and itextjar
how to create pdf file using java and itextjar  How to create pdf file having paragraphs and alignments done using java and itextjar 5.10 version.? hope i get quick response
how to create pdf file using java and itextjar
how to create pdf file using java and itextjar  How to create pdf file having paragraphs and alignments done using java and itextjar 5.10 version.? hope i get quick response
how to create a zip by using byte array
how to create a zip by using byte array  hi, How to convert byte array to zip by using java program.can u plz provide it...... Thanks, krishna
how to create this structure in json using grails
how to create this structure in json using grails  { "query": { "type": "cluster", "view": "accountActivity", "regions": [2342,334,241,13], "companies": [43228583,433421683,342427783], "departments": [1,2,4,6], "brands
How to Create Quiz Application using iPhone
How to Create Quiz Application using iPhone  Hi, I am learning iphone application Programming Language. my question is that how to create a quiz... have given step by step process of how to create quiz application for iPhone
How to create web application using maven in Eclipse?
How to create web application using maven in Eclipse?  I have to create the web project in Maven using the Eclipse IDE. Since Eclipse is very useful.... Now want to use the Maven in the Eclipse. I don'w know how to create web
how to create a jave version excel in jsp
how to create a jave version excel in jsp  I would like to create a java version excel in JSP. so the excel like document can be published in the internet. the user will be able to enter the information and click the save button
How to create an area chart using jfreecharts?
How to create an area chart using jfreecharts?  i want to create an area chart that represents ip addresses of top countries. i have gone thru the area chart example using jfreechart but i am still not clear with its method. If u
how to create a progarame using jboss drools rules
how to create a progarame using jboss drools rules  Using Jboss Drools develop a simple utility which will allow the following http...;Address>,City,ZipCode,> , create a rule within drools that can allow me to filter
How to create new arraylist using Java
How to create new arraylist using Java  hi, I want to develop an small application where i trying to create new arraylist inside the arraylist. Can someone provides online example how to create new arraylist in java programming
how can create album in java by using Stack ....
how can create album in java by using Stack ....  hi all , if i press push button put the image to the stack , and when i press pop button remove the image ..??? please help me please
How to create Discussion Forum? - JSP-Servlet
How to create Discussion Forum?  Hi, Can u tell me what do you mean by requirement regarding discussion forum???? Hitendra  Hi, Which technologies you want to use. Please explain (1.) JSP (2.) Servlets