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

 
 


meena n
how to create using jsp
0 Answer(s)      a year and 4 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>
View Answers









Related Pages:
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
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 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
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 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 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 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 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
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
create  how to create an excel file using java
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 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 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 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 web page on jsp?
how to create web page on jsp?  how to create web page on jsp
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
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 JSP file
Create a JSP file To create a JSP file for struts, Some special (Struts specific) tags are used. And to use those tags in JSP you need to import there tag... A simple login page is give below which illustrates how to use the struts-tags
create a form using struts
create a form using struts  How can I create a form for inputting text and uploading image using struts
how to create a bar chart in jsp by fetching value from oracle databse?
how to create a bar chart in jsp by fetching value from oracle databse?  i want to show the population of various states in a bar chart in my jsp page by fetching the data from my oracle table. i am using my eclipse as my IDE
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
To create an web application using netbeans IDE
To create an web application using netbeans IDE  Hi, I'm a beginner in java and I have created an jsp code for entering the username password... username and password details should enter in to oracle database.I want to know how
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
Create dynamic page through JSP
Create dynamic page through JSP... how to create dynamic page. This code shows one by one record of student from... running this jsp code, first create a database named 'student' through the sql query
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
create html of word ,excel,ppt - JSP-Servlet
create html of word ,excel,ppt  Plzz tell me how to create html page of word , excel ,ppt document dynamically using jsp because in my project I have to store uploaded files as html page
how can i create a discussion forum?
how can i create a discussion forum?  how can i create a discussion forum for my e- mentoring site for women which can be used by a registered user only. i am using jsp and servlets and i am working with netbeans 6.8.
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 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 text file from jsp and provide downlode option
how to create text file from jsp and provide downlode option  HI... in java/j2ee tech. my question is who do i make a jsp output in the form of text... this my jsp page <%@ page language="java" contentType="text/html; charset
create bar chart in jsp using msaccess database
create bar chart in jsp using msaccess database  type Exception... org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 8 in the jsp... Foundation\Tomcat 5.0\work\Catalina\localhost\chetana\org\apache\jsp\bar_jsp.java:57
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
jsp
jsp  how to create a table in oracle using jsp and the table name is entered in text feild of jsp page
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
create a jsp program
create a jsp program  please help , create web Application using jsp and jdbc which tacking your name,id and DOB .On clicking to submit Button it stores the information into the database and Displays alll the records
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
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
how to create a reminder app using threads in Servlets?
how to create a reminder app using threads in Servlets?  I want to make a Reminder application in Servlets. When the date and/or time is matched (threads will be required!), a "pop-up window or a web-page should automatically
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 insert data in database using html+jsp
how to insert data in database using html+jsp  anyone know what is wrong with my code? print("<% /* Create string...").newInstance(); /* Create a connection by using getConnection() method
how to create web aplli
how to create web aplli  how to Create a web application using any technology to display 10 most relevant tweets from Twitter in real-time for the keyword "@cldmgc