Skip to main content

Posts

Showing posts with the label java

Addition of Two Number using servlet and jsp

index.jsp <%@page contentType="text/html" pageEncoding="UTF-8"%> <! 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=UTF-8" > < title > JSP Page </ title > </ head > < body bgcolor ="yellow" > < center >< h1 > Addition of Two Number </ h1 ></ center > < form action =" additionservlet " method ="post" > < table border ="0" width ="100" align ="center" > < tr > < td > First Number </ td > < td >< input type ="text" name ="txtnum1" value ="" /></ td > ...

How to configure JNDI step by step in NetBeans..

  Software Version Required NetBeans IDE Java bundle, 6.8 or 6.9 Java Development Kit (JDK) version 6,7 GlassFish server v3 or Open Source Edition 3.0.1 SQL Server  2005 Type 4 Driver for SQL Server 2005 sqljdbc SQL Server 2005 Type 4 driver •First Download the SQL Server 2005 Type 4 driver. •Set the classpath Database Create a database and table in SQL Server 2005 Create a new web Application index.jsp code <%-- Document : index Created on : Nov 21, 2012, 3:42:17 PM Author : NIIT --%> <%@page contentType= "text/html" pageEncoding= "UTF-8" %> <!DOCTYPE html> <html> <head> <meta http-equiv= "Content-Type" content= "text/html; charset=UTF-8" > <title>JNDI DEMO</title> </head> <body bgcolor= "pink" > <h1>Login Management System...