Home Jsp JSP Tutorials
Questions:Ask|Latest


 
 

Share on Google+Share on Google+

JSP Tutorials

Advertisement
Java Server Pages or JSP for short is Sun's solution for developing dynamic web sites.

JSP Tutorials

     

JSP Tutorials and examples, you will find many examples with working source code. JSP stands for Java Server Pages and is a technology to create dynamic web pages using Java technology. JSP allows you to embed the Java code in your HTML page. Basically JSP is simply a text file which contains HTML code and the Java code for easily creating the UI for web applications.

JSP pages are compiled into Java Servlet and then it runs on the Servlet enabled server. Every time you modify the JSP pages and installs on the server it recompiles the JSP page into Servlet. Here in this tutorial we have also explained you the life cycle of JSP pages.

Here in this section we have given large number of JSP articles that explains the JSP concepts with the help of example code. We have also explained how to run your JSP pages on the Tomcat Servlet container.

Here are the most complete tutorials collections of JSP:

  1. Introduction to JSP
    Java Server Pages or JSP for short is Sun's solution for developing dynamic web sites. JSP provide excellent server side scripting support for creating database driven web applications.
     
  2. JSP Tutorials - Introducing Java Server Pages Technology
    JavaServer Pages (JSP) technology is the Java platform technology for delivering dynamic content to web clients in a portable, secure and well-defined way.
     
  3. JSP Architecture
    JPS pages are high level extension of servlet and it enable the developers to embed java code in html pages. JSP files are finally compiled into a servlet by the JSP engine. Compiled servlet is used by the engine to serve the requests.
     
  4. JSP Actions
    In this section we will explain you about JSP Action tags and in the next section we will explain the uses of these tags with examples.
  5. Introduction to the JSP tags(This section also describe JSP Directives)
    In this lesson we will learn about the various tags available in JSP with suitable examples. In JSP tags can be devided into 4 different types.
      
  6. Detail introduction to JSP Declaratives
    JSP Declaratives begins with <%! and ends %> with .We can embed any amount of java code in the JSP Declaratives. Variables and functions defined in the declaratives are class level and can be used anywhere in the JSP page.
      
  7. Detail Introduction to JSP Scriptlets and JSP Expressions with examples
    JSP Scriptlets begins with <% and ends %> .We can embed any amount of java code in the JSP Scriptlets. JSP Engine places these code in the _jspService() method.
     
  8. Writing the Date JSP
    Till now you learned about the JSP syntax, now I will show you how to create a simple dynamic JSP page that prints the current date and time.
      
  9. Reading the Request Information
    When an HTTP client such as web browser sends a request to a wen server, along with the request it also sends some HTTP variables like Remote address, Remote host, Content type etc.
     
  10. Retrieving the data posted to a JSP file from HTML file
    Now I will show you how to retrieve the data posted from a HTML file in a JSP page. Consider an html page that prompts the user to enter his/her name, let's call it getname.htm.
     
  11. Accessing database from JSP
    In This article I am going to discuss the connectivity from MYSQL database with JSP.we take a example of Books database. This database contains a table named books_details.
     
  12. Implement JavaScript with JSP
    In this section we are going to implement  insert data, delete data, and update data using with JDBC database and also using of JavaScript.
     
  13. Working with JSP Sessions
    This JSP Tutorial shows you how to track the session between different JSP pages. In any web application user moves from one page to another and it becomes necessary to track the user data and objects throughout the application. JSP provide an implicit object "session", which can be use to save the data specific the particular to the user.
  14. JSP Cookies Example
    This tutorial shows how to handle cookies in JSP pages. In this tutorial you will learn how to add cookies through jsp page and then show the value of the same cookie in another JSP page.
     
  15. Cookie Example to Store and Show only 10 values
    This cookie example illustrates how you can manage cookie value in your JSP page. This example is saving and displaying cookies and also it is managing cookies size in such manner that if cookie size becomes greater than a limit (e.g 10 in this case), it will automatically deletes the oldest cookie from the list.
     
  16. Disabling Session in JSP
    In this tutorial you will learn how to disable session creation in the JSP pages. Disabling the session in some pages will improve the performance of your JSP container.
      
  17. JSP PDF books
    Collection is jsp books in the pdf format. You can download these books and study it offline.
      
  18. Free JSP Books
    Download the following JSP books.
      
  19. Free JSP Download
    BooksFree JSP Books for instant downloads.
     
  20. Authentication in Web Application
    In this example we will show you how to authenticated the user against database user name and password. This program consists of a JSP page and a Servlet to authenticate the user against database password.
     
  21. Calling Servlet to build a List of data from database and show this on the JSP page in table
    In this example we are calling a servlet to retrieve all the data from database and then add the data into list. The list is then added to the request object and sen to JSP page. On the JSP page this value is displayed.
         
  22. Access all the fields from table through JSP
    This is detailed java program to connect java application with MySql database and execute query to display data from the specified table. Before running this java code you need mysql-connector-java-3.1.6-bin.jar file and set class path to this file.
         
  23. Use Break Statement in jsp code
    The break statement is used to terminate the execution of near most enclosing loop or conditional statement. Now the next statement outside the loop is executed.
        
  24. Use Compound Statement in JSP Code
    A compound statement is collection of statements enclosed with in braces. In general, statement works without braces but it only execute single statement and rest of the statements takes as normal statement and execute them.
       
  25. Connect JSP with mysql
    Now in the following jsp code, you will see how to connect with the database.
        
  26. Create a Table in Mysql database through SQL Query in JSP
    This is detailed java code to connect a jsp page to mysql database and create a table of given name in the specified database.
       
  27. Create dynamic page through JSP
    This is detailed jsp code that shows how to create dynamic page. This code shows one by one record of student from database on click a button named 'next record'. On each click of button, application fetch next record from database.
         
  28. Retrieve image from mysql database through jsp
    In this section we will see how to retrieve image from MySQL database through jsp code.
              
  29. How To Page Refresh Using JavaScript  In JSP
    In this section, we develop an User Login application . We created five file sign.jsp,signout.jsp,user_register.jsp,userlogin.jsp and useradd.jsp. 
               
  30. Display Sum of Table Column Using In JSP
    In this section, we develop an application to Display the sum data of a Table column for a specific Date. We created five file sum_count.jsp, resultForm.jsp, result_count.jsp, sumcount.java and SumCountBean.java
             
  31. Combo Box Using Ajax In JSP
    In this section, we develop an  application to Select the Data from database using Ajax in combo box. We created two file combo.jsp and getuser.jsp.
            
  32. To Upload and insert the file Into Database with Current Date and Time In JSP
    In this tutorial, you will learn how to upload a file through JSP and insert it into the database. For this, we have created two jsp pages page.jsp and upload_page.jsp
      
  33. Calendar In JSP Using JavaScript
    In this section, we develop a Calendar application in JSP using JavaScript.
      
  34. Popup Window using Ajax In JSP
    In this section, we will develop a Popup Window application using Ajax in JSP.
       
  35. User Registration Form Using JSP(JspBeans)
    In this section you will learn about the handling of user registration form using jsp. One of the basic programming tactics of jsp is to assign as much processing as possible to java Bean component.
        
  36. Login Authentication using Bean and Servlet In JSP
    In this section, we have developed a web application of login authentication using Bean  in JSP.  
        
  37. Record user login and logout timing In JSP
    In this section, we have developed a web application of maintain record of the user Login and Logout Time  in JSP. 
        
  38. Retrieve Data from CSV file in JSP 
    In this section, we have developed a web application of maintain record of the user Login and Logout Time  in JSP.
      
  39. Export Data into CSV file uing JDBC in JSP         
    In this section, you will learn how to export data into CVS file using JDBC in jsp.
      
  40. Download CSV File from Database in JSP  
    In this section, you will learn how to download CSV  file from database in JSP.  In this example, we have developed two files "viewcsv.jsp" and "file_download.jsp" , code is given below.
      

JSP Versions:

    1. Features of JSP 2.1
      The main purpose of Java Platform,  Enterprise Edition (Java EE) 5 is to ease development. Now the Jsp2.1 includes the Java Standard Tag Library(JSTL) and JavaServerFaces technology.
         
    2. New Features in JSP 2.0
      In this tutorial you will know the features added in JSP 2.0.
         
    3. Difference between JSP 2.0 & JSP 2.1
      In this tutorial you will find the basic difference between JSP 2.0 and JSP 2.1.
       
JSTL Tutorial By R.S.RAMASWAMY.
Comments on this article may be sent to: ramrsr@rediffmail.com
    1. INTRODUCTION TO JSTL
       
    2. JSTL tags in the core-group
       
    3. JSTL XML Tags
       
    4. SQL tags in JSTL
JSP Fundamentals
This is an excellent tutorial on JSP for the beginners. Tutorial describes how to use Bean in JSP, Connection Pooling in JSP and the use of taglibs. 
    • JSP Fundamentals
      JSP termed as Java Server Pages is a technology introduced by Sun Microsystems Inc. to develop the web application in more efficient way than Servlets. It has got many advanced features than servlets, one of them itself define the JSP i.e. JSP separates the presentation logic from the business logic and provide the designer and developer of the web application to work independently without any hassle.
       
    • Using Beans in JSP
      Java Beans are reusable components. They are used to separate Business logic from the Presentation logic. Internally, a bean is just an instance of a class.
         
    • JSP Taglibraries
      JSP?s offer a unique feature of "Tag Libraries". Simply put, these are custom defined JSP tags. They are basically meant for componentizing presentation level logic. They are very similar to beans except the fact that Beans are used to separate Business logic.

JSP Tutorials Pages: JSP Tutorials Page 1 | JSP Tutorials Page 2 | JSP Tutorials Page 3

     

Advertisement

Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: February 6, 2008

Ask Questions?    Discuss: JSP Tutorials   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments
Aswin
April 20, 2011
JSP

I studied about the architecture of JSP.But IF you have diagram for architecture then suggest me which one is Good for understand the concept very clearly Thank You
pramoj
May 27, 2011
how to upload & down load a Pdf File Using java

I need this java code help me
Mahaboob Khan
May 28, 2011
Request for JSP Tutorials

Your site prvides an extra ordinary tutorials on the JSP.
manish
July 9, 2011
online shoping website development project

sir, i am a student of b.tech.3rd yr after the completion of my 2nd yr summer training,a project is assigned to me to develope an online shoping website in JSP. so pleas sir give me lay out for creating website in JSP. and some good links or some other resources from where i can get help during my project.
Apratibha Bhattacharya
July 4, 2011
need help

sir, I need a project on "payroll management system" using servlet or jsp & mysql.please help me sir.Actually it is my summer training project. so please please help me sir & I hope for your early reply.
soo
June 4, 2013
charts in jsp

hello everybody i need your help please i want to make a little program which draw charts in jsp by getting values from database ! something very simple like how much rows are insert in a table every day or week somthing like that ! and thanks you very much .
Parag Shirbhate
December 13, 2011
Web Development in JSP

I am making a web site that I required all material required for development. I am new to develop the the web site. So please share all the required for this
prasad
December 28, 2011
file uploading

how to upload a file from a disk and store it in harddisk...................
Karthik
January 4, 2012
Thanks a lot

It has really helped me a lot. I don't even visit Google if i need any help in Java. I first visit roseindia.net.
chandana
March 13, 2012
jsp with multi record fields

Hi, I have to write a JSP which has 20 fields. And every time I enter the inputs in these fields it should get saved in a row format in the same page and i should be able to add more rows & edit the same. pls can anybody tell me how this is done. it will be really helpfull. Regards, Chandana
Bhavik
March 19, 2012
Jsp-servlet

I want to retrieve data from table on the checked event on checkbox on the same page Here is my code bt I can not do so <%@page import="org.w3c.dom.Document"%> <%@page import="java.io.PrintWriter"%> <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@page import="java.sql.*"%> <!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>New Project</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="keywords" content="web design, website development, web application development, print design, database development, ecommerce websites, search engine optimization, packaging design" /> <meta name="description" content="Tutorial demo showing how to add jquery animated validation to any form" /> <meta name="robots" content="all" /> <link rel="stylesheet" href="homepagecss_files/css3menu1/style.css" type="text/css" /> <style> ._css3m { display: none } </style> <link rel="stylesheet" href="jquery.ui.all.css"> <script src="jquery-1.7.1.js"></script> <script src="jquery.ui.core.js"></script> <script src="jquery.ui.widget.js"></script> <script src="jquery.ui.datepicker.js"></script> <link rel="stylesheet" href="demos.css"> <script> $(function() { $("#datepicker").datepicker(); $("#datepicker1").datepicker(); }); function getRadioValue() { for (index=0; index < document.frm.tech.length; index++) { if (document.frm.tech[index].checked) { var radioValue = document.frm.tech[index].value; document.frm.rad.value = radioValue; } } var text="null"; text=radioValue; } function showhidefield() { { if (document.frm.chkbox.checked) { document.getElementById("hideablearea").style.visibility = "visible"; } else { document.getElementById("hideablearea").style.visibility = "hidden"; } } } function showhidefield1() { { if (document.frm.chkbox1.checked) { document.getElementById("hideablearea1").style.visibility = "visible"; } else { document.getElementById("hideablearea1").style.visibility = "hidden"; } } } function showhidefield2() { { if (document.frm.chkbox2.checked) { document.getElementById("hideablearea2").style.visibility = "visible"; } else { document.getElementById("hideablearea2").style.visibility = "hidden"; } } } </script> <link rel="stylesheet" type="text/css" href="style.css" /> <link rel="stylesheet" href="homepagecss_files/css3menu1/style.css" type="text/css" /><style>._css3m{display:none}</style> <script type="text/javascript" src="jquery.min.js"></script> <script type="text/JavaScript"> $(document).ready(function() { $('.btn-submit').click(function(e){ // Declare the function variables: // Parent form, form URL, email regex and the error HTML var $formId = $(this).parents('form'); var $error = $('<span class="error"></span>'); var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/; // Prepare the form for validation - remove previous errors $('li',$formId).removeClass('error'); $('span.error').remove(); // Validate all inputs with the class "required" $('.required',$formId).each(function(){ var inputVal = $(this).val(); var value = $('.category').val(); var $parentTag = $(this).parent(); if(inputVal == ''){ $parentTag.addClass('error').append($error.clone().text('Required Field')); } if($(this).hasClass('category')==true){ if(value == ''){ $parentTag.addClass('error').append($error.clone().text('Please Select Anyone....')); } } // Run the email validation using the regex for those input items also having class "email" if($(this).hasClass('email') == true){ if(!emailReg.test(inputVal)){ $parentTag.addClass('error').append($error.clone().text('Enter valid email')); } } }); // All validation complete - Check if any errors exist // If has errors if ($('span.error').length > 0) { $('span.error').each(function(){ // Set the distance for the error animation var distance = 5; // Get the error dimensions var width = $(this).outerWidth(); // Calculate starting position var start = width + distance; // Set the initial CSS $(this).show().css({ display: 'block', opacity: 0, right: -start+'px' }) // Animate the error message .animate({ right: -width+'px', opacity: 1 }, 'slow'); }); } else { $formId.submit(); } // Prevent form submission e.preventDefault(); }); // Fade out error message when input field gains focus $('.required').focus(function(){ var $parent = $(this).parent(); $parent.removeClass('error'); $('span.error',$parent).fadeOut(); }); }); </script> <style type="text/css"> html,div,blockquote,img,label,p,h1,h2,h3,h4,h5,h6,pre,ul,ol,li,dl,dt,dd,form,a,fieldset,input,th,td{border:0;outline:none;margin:0;padding:0;} ul, ol{list-style:none;} .text-center {text-align: center; padding: 10px 0;} /* Tutorial CSS */ /*Form styles*/ .styled { font: 13px Arial, sans-serif; width: 350px; margin: 40px auto; background: url(images/right_box_center.gif) no-repeat 100% 100%; padding-top: 20px; } .styled fieldset { background: url(images/right_box_center.gif) repeat 100% 100%; padding: 0 15px 20px 15px; position: relative; } #1 { background-image: url("ggraphics/topleft.gif"); } #2 { background-image: url("ggraphics/topright.gif"); } #3 { background-image: url("ggraphics/botleft.gif"); } #4 { background-image: url("ggraphics/botright.gif"); } .styled fieldset h3 { font: 24px bold Arial, sans-serif; color: white; margin-bottom: 0.5em; } /* Form rows */ .styled fieldset li.form-row { margin-bottom: 5px; padding: 3px 0; clear: both; position: relative; } .styled label { display: block; font-weight: bold; float: left; width: 100px; line-height: 24px; padding-top: 4px; color: white; } .styled label.double { padding-top: 0; line-height: 20px; margin-top: -3px; } .styled fieldset li.button-row { margin-bottom: 0; padding: 5px 0 0; text-align:center; } /* Text input styles */ /* Default */ .styled input.text-input { height: 22px; width: 200px; padding-top:5px; padding-left:2px; background: url(images/bg_input.png) no-repeat 0 0; border: none; font: normal 13px Verdana, sans-serif; color: purple; } /* Form Validation */ .styled span.error { font: bold 11px Verdana, sans-serif; color:#fff; text-shadow: 1px 1px 1px #000; display: none; background: url(images/arrow_error1.png) no-repeat 0 center; height: 8px; width: 50%; padding: 7px 14px 10px 20px; line-height: 1em; position: absolute; top: 3px; right: 0; border-right: 1px solid #6c0202; } .styled fieldset li.error input.text-input { background-position: 0 -64px; } </style> </head> <body> <div id="main_container"> <div id="header"> <div id="logo"><a href="index.html"><img src="images/bsg.png" alt="" title="" border="0" /></a> </div> <div style="font-size:400%; margin-left: 20%;" > <table> <tr> <td><center> <h1><b> Bhaskaracharya Institute For Space Applications and Geo-Informatics </b></h1> </center> </td> <td> <div id="kalas"><img src="images/kalas1.gif" alt="" title="" border="0" /> </div> </td> </tr> </table> </div> <table> <tr> </tr> <tr> </tr> </table> <div id="menu_tab" align="center" > <ul id="css3menu1" class="topmenu"> <li class="topfirst"><a href="home.jsp" style="height:37px;line-height:37px;"><img src="homepagecss_files/css3menu1/menu_icon11.gif" alt="HOME"/>HOME</a></li> <li class="topmenu"><a href="project.jsp" style="height:37px;line-height:37px;"><img src="homepagecss_files/css3menu1/icon_team1.gif" alt="ABOUT US"/>PROJECT</a></li> <li class="topmenu"><a href="profile.jsp" style="height:37px;line-height:37px;"><img src="homepagecss_files/css3menu1/menu_icon3.gif" alt="PROFILE"/>PROFILE</a> </li> <li class="topmenu"><a href="view.jsp" style="height:37px;line-height:37px;"><span><img src="homepagecss_files/css3menu1/view13.gif" alt="VIEW"/>VIEW</span></a> </li> <li class="toplast"><a href="admin.jsp" style="height:37px;line-height:37px;"><img src="homepagecss_files/css3menu1/menu_icon5.gif" alt="CONTACT US"/>ADMIN</a></li> <li class="toplast"><a href="userlogout.jsp" style="height:37px;line-height:37px;"><img src="homepagecss_files/css3menu1/login.png" alt="LOGOUT"/>LOGOUT</a></li> </ul> </div> </div><!-- Header Ends --> <div class="newproj" align="center"> <div class="right_box"> <div class="right_box_top"></div> <div class="right_box_center"> <form id="form-sign-up" class="styled" action="checkSer" name="frm"> <fieldset> <ol> <li class="form-row"><label>Project Name:</label> <input type="text" id="proj_name" name="proj_name" class="text-input required"/> </li> <li class="form-row"><label>Description:</label> <textarea rows="5" cols="23" name="desc" class="text-input required"></textarea> </li> <li class="form-row"><label>Start Date:</label> <input type="text" id="datepicker" name="datepicker" class="text-input required"/> </li> <li class="form-row"><label>End Date:</label> <input type="text" id="datepicker1" name="datepicker" class="text-input required"/> </li> <li class="form-row"><label>Category</label> <table width="50%" style="float: left;"> <tr> <td> <select name="category" class="required category"> <option value="">Please Select Anyone</option> <option value="00">MAKE</option> <option value="01">BUY</option> <option value="02">REUSE</option> </select> </td> </tr> </table> </li> <li class="form-row"><label>Department:</label> <input type="text" id="dept" name="dept" class="text-input required"/> </li> <li class="form-row"><label>Technology:</label> <table align="left"> <tr> </tr> <tr> </tr><tr> </tr><tr> </tr><tr> </tr> <tr> <td> </td><td></td><td></td><td></td> <td> <input type="radio" name="tech" value="Java" onclick="getRadioValue()"/><lable>&nbsp;&nbsp;JAVA</lable> </td> <td></td><td></td><td></td><td></td><td></td><td></td><td></td> <td > <input type="radio" name="tech" value=".Net" onclick="getRadioValue()"/><lable>&nbsp;&nbsp;.NET</lable> </td> <td></td><td></td><td></td><td></td><td></td><td></td><td></td> <td > <input type="radio" name="tech" value="Php" onclick="getRadioValue()"/><lable>&nbsp;&nbsp;PHP</lable> </td> </tr> <tr class="form-row"> <input type="text" name="rad" id="rad" class="text-input"/> </tr> </table> </li> <li class="form-row"> <h1> <center>Staff Requirements:</center> </h1> </li> <li class="form-row"><label>Staff Required:</label></li> <li class="form-row"> <label> <table class="required"> <tr> <td align="left"> <input type="checkbox" name="chkbox" onclick="showhidefield()"/>&nbsp;&nbsp;Project Manager <div id='hideablearea' style='visibility:hidden;'> <select name="pname" multiple="multiple"> <% String str2="Developer"; String s4=request.getParameter("rad"); Class.forName("com.mysql.jdbc.Driver").newInstance(); Connection cn2=(Connection) DriverManager.getConnection("jdbc:mysql://localhost:3309/dms","root","admin"); Statement stmt2 = cn2.createStatement(); ResultSet rs2 = stmt2.executeQuery("select user_fname from dms_login where designation='"+str2+"' "); while (rs2.next()) {%> <option value="<%= rs2.getString(1)%>"><%= rs2.getString(1)%> </option> <% }%> %> </select> </div> </td> <td align="center"> <input type="checkbox" name="chkbox1" onclick="showhidefield1()"/>&nbsp;&nbsp;Team Leader <div id='hideablearea1' style='visibility:hidden;'> <select name="tname" multiple="multiple"> <% String str1="Team Leader"; String s3=request.getParameter("rad"); Class.forName("com.mysql.jdbc.Driver").newInstance(); Connection cn1=(Connection) DriverManager.getConnection("jdbc:mysql://localhost:3309/dms","root","admin"); Statement stmt1 = cn1.createStatement(); ResultSet rs1 = stmt1.executeQuery("select user_fname from dms_login where designation='"+str1+"'"); while (rs1.next()) {%> <option value="<%= rs1.getString(1)%>"><%= rs1.getString(1)%> </option> <% }%> </select> </div> </td> <td align="justify" style="float: right;"> <input type="checkbox" name="chkbox2" onclick="showhidefield2()"/>&nbsp;&nbsp;Developer <div id='hideablearea2' style='visibility:hidden;'> <select name="dname" multiple="multiple"> <% String str2="Developer"; String s4=request.getParameter("rad"); Class.forName("com.mysql.jdbc.Driver").newInstance(); Connection cn2=(Connection) DriverManager.getConnection("jdbc:mysql://localhost:3309/dms","root","admin"); Statement stmt2 = cn2.createStatement(); ResultSet rs2 = stmt2.executeQuery("select user_fname from dms_login where designation='"+str2+"' "); while (rs2.next()) {%> <option value="<%= rs2.getString(1)%>"><%= rs2.getString(1)%> </option> <% }%> </select> </div> </td> </tr> </table> <table> </table> </label> </li> <li class="form-row"><label>Name:</label> <input type="text" id="staff_name" name="staff_name" class="text-input required"/> </li> <li class="form-row"><label>Address:</label> <textarea rows="5" cols="23" name="addr" id="addr" class="text-input required"></textarea> </li> <li class="form-row"><label>Concerned Person Name:</label> <input type="text" id="person_name" name="person_name" class="text-input required"/> </li> <li class="form-row"><label>Contact No:</label> <input type="text" id="mob_no" name="mob_no" class="text-input required "/> </li> <li class="form-row"><label>Email:</label> <input type="text" id="email" name="emsil" class="text-input required email"/> </li> <li class="button-row"> <input type="submit" value="Save" class="btn-submit img-swap loginbrn" /> </li> &nbsp; <li> <a href="register.jsp"><font color="WHITE" >New User...!Register Here</font></a> </li> </ol> </fieldset> </form> <div class="clear"></div> </div> <div class="right_box_bottom"></div> </div> </div> <div id="main_content"> </div> </div> </body> </html>
kaka profs
April 19, 2012
Problem need solution

A new bus company in town would like to know if it is making profits per day. The buses use a number of routes during the day. Different routes have different distances and so is the fuel consumption of the buses that work along these routes. A route is identified by route number e.g. route 001, route 002 etc, starting point and destination. One route can have up to 10 buses assigned. Each bus is identified by a number plate and route. Two employees are assigned to each bus per day. Whenever the bus moves from the source to the destination and back to the source, a round is counted. And for each and every round, each bus registers its collections (money) and fuel consumed. At the end of the day, the rounds that the bus made is computed and the total collections per bus is also computed. The total collection from all the routes is computed. Since the fuel is paid per month, the amount for the fuel is computed and deducted from the total collections. At the end of the day, each of the bus employees (2 per bus) gets a fraction of 40% of the remaining collections minus fuel deductions. Implement a system that solves the above problems that prints the following How bus workers are required per day How much will be required to pay bus workers Which route is making the biggest profit Which bus is making the least and which is making the highest profit Enable user to search for the details of a given route e.g. the drivers on that route, source and destination, distance of route Use (JSP, Servlets, html, Javascript for validation, CSS, MySQL database and any other techonology when picking data from the database only core tag libraries should be used. ). Design your own template using any software of your choice. You are required to present the png file of the template. You should also know how to slice the png file. Identify the components of the problem that can become beans for better reusability..... help me out,pliz!!!
Keshava Valluri
June 3, 2012
Jsp

I want code for instant userid validation in jsp... plz help me ....
Mariausz
June 4, 2012
jsp fundamentals

very nice explanation...keep it up
Gourab Mukherjee
June 7, 2012
About href

Sir,how can a comment box can generate after just clicking the "comment" word(I mean to say that how can it be generated using jsp).
Chris Perera
June 25, 2012
Hi

I didn't get ideas about jsp form your tutorial your tutorials. I need to know how create very attractive jsp interface. How can I go to design view when I am designing interfaces???
vikas
August 17, 2012
mca

i have to lern
Jan
September 7, 2012
Email

Good Morning, I'm creating a website and I want viewers to send me email from the website to my email straight. How can I do that because I checked your site it doesn't have what I want. Can you pleas send me the code for that. Thanks Jan
eesh suneja
March 25, 2013
menu bar using struts

how can i show menu bar using struts
Arav
April 11, 2013
Remaining time showing on JSP page

Hello can any one help with to showing remainin time (not using js) on jsp page..and After finishing time it would lead me on another jsp page Pls Help
Gopi Krishna Jasti
June 26, 2013
jsp with database application

good morning sir/madam, i am trying to develop an online examination application using jsp and ms-access database........... in this when i am retriving questions from the database it displaying all questions in one page but i need to display one question and after submitting the submit button next question will be dispaly............. and last the result must be display.......... can u please help me to get out of this confussion and to success in completing the application........ can u please send this to my email id.. jastigopikrishna@gmail.com thank you.
Kiran Mohan Reddy
July 8, 2013
jsp

how to execute the methods in jsp so which method first executed in jsp file
Raman Singh
August 13, 2013
Can we disable browser back button using JSTL ?

I have an existing code developed using complex JSTL. Now I need to disable browser back button on JSPs. I do not want to call onLoad() function. Is there any way so that I can disable back button using JSTL or JSP other than session.
suraj
August 15, 2013
jsp

i read jsp if you know any latest news about jsp so pleasediscuse me
Manish
September 11, 2013
Error in connectivity

Sir may i create a signup page and insert values into oracle database but one error are Accure so what can i do.... and error is ---------------------------- java.sql.SQLException: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor The Connection descriptor used by the client was: localhost:1521:xe --------------------------------- and my code is <%@page import="java.sql.*,java.util.*"%> <% try { String user=request.getParameter("uname"); String pass=request.getParameter("sem"); DriverManager.registerDriver(new oracle .jdbc.driver.OracleDriver()); Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","system","password"); Statement stmt = con.createStatement(); ResultSet rs=stmt.executeQuery("select * from signup1 where uname='"+user+"' and sem='"+pass+"'"); int count=0; while(rs.next()) { count++; } if(count>0) { response.sendRedirect("maism2.html"); } else {%><body > <TABLE width="1300"height="30" bgcolor="#ffffcc" > <tr> <td> <marquee ><font size="+3" color="GREEN">YOU ARE NOT VALID USER SIGNUP FIRST</font></marquee><td></tr> <tr><td><br/><br/><a href="signupnew.html" ><font size="+3" color="GREEN">Signup</font></a><tr><td><h3>WEL-COME www.manishjoshijsp.net !</h3></td></tr> </table> </body> <% out.println("Error/405"); } } catch(Exception e) { out.println(e); }%>
Manish
September 11, 2013
Error in connectivity

Sir may i create a signup page and insert values into oracle database but one error are Accure so what can i do.... and error is ---------------------------- java.sql.SQLException: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor The Connection descriptor used by the client was: localhost:1521:xe --------------------------------- and my code is <%@page import="java.sql.*,java.util.*"%> <% try { String user=request.getParameter("uname"); String pass=request.getParameter("sem"); DriverManager.registerDriver(new oracle .jdbc.driver.OracleDriver()); Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","system","password"); Statement stmt = con.createStatement(); ResultSet rs=stmt.executeQuery("select * from signup1 where uname='"+user+"' and sem='"+pass+"'"); int count=0; while(rs.next()) { count++; } if(count>0) { response.sendRedirect("maism2.html"); } else {%><body > <TABLE width="1300"height="30" bgcolor="#ffffcc" > <tr> <td> <marquee ><font size="+3" color="GREEN">YOU ARE NOT VALID USER SIGNUP FIRST</font></marquee><td></tr> <tr><td><br/><br/><a href="signupnew.html" ><font size="+3" color="GREEN">Signup</font></a><tr><td><h3>WEL-COME www.manishjoshijsp.net !</h3></td></tr> </table> </body> <% out.println("Error/405"); } } catch(Exception e) { out.println(e); }%>
manish
September 11, 2013
Error in connectivity

Sir may i create a signup page and insert values into oracle database but one error are Accure so what can i do.... and error is ---------------------------- java.sql.SQLException: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor The Connection descriptor used by the client was: localhost:1521:xe --------------------------------- and my code is <%@page import="java.sql.*,java.util.*"%> <% try { String user=request.getParameter("uname"); String pass=request.getParameter("sem"); DriverManager.registerDriver(new oracle .jdbc.driver.OracleDriver()); Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","system","password"); Statement stmt = con.createStatement(); ResultSet rs=stmt.executeQuery("select * from signup1 where uname='"+user+"' and sem='"+pass+"'"); int count=0; while(rs.next()) { count++; } if(count>0) { response.sendRedirect("maism2.html"); } else {%><body > <TABLE width="1300"height="30" bgcolor="#ffffcc" > <tr> <td> <marquee ><font size="+3" color="GREEN">YOU ARE NOT VALID USER SIGNUP FIRST</font></marquee><td></tr> <tr><td><br/><br/><a href="signupnew.html" ><font size="+3" color="GREEN">Signup</font></a><tr><td><h3>WEL-COME www.manishjoshijsp.net !</h3></td></tr> </table> </body> <% out.println("Error/405"); } } catch(Exception e) { out.println(e); }%>
Prem
September 11, 2013
i need Ajax program in javascript

for 1. Hello world application 2. server date and time 3. search page
riju
October 17, 2013
j2ee

hello, i am a student of mca my project in aadhar card so please explain the used in struts and jsp code in my project so biometric information store in database and some good links or some other resources from where i can get help during my project.
arasu
March 28, 2014
JSP

how to search and fetch data in jsp page using MYSQL database plz help me..................
DMCA.com