Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Interview-Questions how to create using jsp
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


meena n
how to create using jsp
0 Answer(s)      2 years and 10 months ago
Posted in : Java Interview Questions


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>

Advertisement
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 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
Advertisements
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
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
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... org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 10 in the jsp file: /bar.jsp Generated servlet error: C:\Program Files\Apache Software
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
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.
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
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
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
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 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 users in LDAP using java?
how to create users in LDAP using java?  how to create users in LDAP using java
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 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 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 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
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
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 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.... The below link have given step by step process of how to create quiz
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 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 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
Advertisements
 

 

 

DMCA.com