DEV BHOOMI INSTITUTE OF TECHNOLOGY. Department of Computer Science and Engineering. WEB-TECH Lab-PCS-852 LAB MANUAL

Size: px
Start display at page:

Download "DEV BHOOMI INSTITUTE OF TECHNOLOGY. Department of Computer Science and Engineering. WEB-TECH Lab-PCS-852 LAB MANUAL"

Transcription

1 DEV BHOOMI INSTITUTE OF TECHNOLOGY Department of Computer Science and Engineering Year: 4th Semester: 8th WEB-TECH Lab-PCS-852 LAB MANUAL Prepared By: <Name> HOD(CSE) <Name>

2 DEV BHOOMI INSTITUTE OF TECHNOLOGY Department of Computer Science and Engineering INDEX S.No Practical s Name Date Remark 1 Home page Development static pages (using Only HTML) of an online Book store. 2 Validate the Registration, user login and payment by credit card pages using JavaScript. 3 To write a program, which takes user id as input and displays the user details by taking the user information from the XML document. 4 To create a JavaBean so that it converts value of INR(IndianRupees) into equivalent American/Canadian/Australian Dollar value. 5 To create a simple Bean with a label - which is the count of number of clicks and a BeanInfo class such that only the count property is visible in the Property Window. 6 To create two Beans Traffic Light which implemented as a Label with only three background colours- Red,Green,Yellow and Automobile which is implemented as a TextBox which states its state/movement with above stated conditions. 7 To convert the static web pages online library into dynamic web pages using servlets and cookies.

3 DEV BHOOMI INSTITUTE OF TECHNOLOGY LAB MANUAL Course Name: Web Technology Lab Course Code : PCS-852 Faculty : Ms. Abhilasha Rathore Experiment No. 1 Branch: CSE Semester: 8 Objective: Home page Development static pages (using Only HTML) of an online Book store. The website should consist the following pages. Registration and user Login User Profile Page Books catalog Shopping Cart Payment By credit card Order Conformation PROGRAM: Source Code for home page <html> <head> <title> ONLINE BOOK STORES</title> </head> <body bgcolor="pink"> <FRAMESET ROWS="20%,*"> <FRAME NAME="A2" SCROLLING="YES" SRC="head.html"> </FRAMESET><H1 ALIGN="CENTER"><U><FONT COLOR="PURPLE">WELCOME TO ONLINE BOOK SHOPPING<ITALIC></ITALIC> </U></FONT></H1> <H2> <FONT COLOR="WHITE"></FONT></H2> <H3 ALIGN="CENTER"><A HREF="reg.html"><BR><BR> <FONT COLOR="black"><ITALIC>REGISTRATION FORM</FONT></ITALIC><BR><BR> <BR><BR><A HREF="user profile.html"><font COLOR="black"><ITALIC>USER PROFILE</FONT></ITALIC><BR> <BR><BR><A HREF="user login.html"><font COLOR="black"><ITALIC>USER LOGIN</FONT></ITALIC><BR> <BR><BR><A HREF="book catalog.html"><font COLOR="black"><ITALIC>BOOKS CATALOG</FONT></ITALIC><BR> <BR><BR><A HREF="confim.HTML"><FONT COLOR="black"><ITALIC>BOOKS CART</FONT></ITALIC><BR> <BR><BR><A HREF="payment.HTML"><FONT COLOR="black"><ITALIC>PAYMENT</H3></FONT></ITALIC><BR> </BODY> </HTML>

4 OUTPUT SCREEN: Source Code for Registration and user Login <html> <head> <center><u><h1>registration Form</h1></u></center> </head> <body> <fieldset width=300><legend class=heading>registration Form</legend> <form actions=" <pre class="reg"> First Name : <input type="text" size=30> Last Name : <input type="text" size=30> Age : <input type="text" size=30 onfocus="kirandisp()"> Id : <input type=" " size=30> Alternate Id : <input type=" " size=30> Address :<textarea cols=50 rows=3></textarea> Phone : <input type="text" size=30> Occupation : <input type="text" size=30> <input type="radio" name="agree" value="i agree">i Agree Terms & conditions <input type="radio" name="agree" value="i disagree">i DisAgree <input type="submit" value=submit> <input type="reset" value=" reset ">

5 </form> </fieldset> </body> </html> OUTPUT SCREEN FOR REGISTRATION FORM Source-Code for User-login <html> <head><center> <font size="6" color="black" ><h1><u>user login...</u><h1></font></center> </head> <form method="post" ACTION="

6 <body bgcolor="0x1ff0f2"> <pre> Enter Name : <input type="text" name="name" size=15 > Enter Password : <input type="password" name="pwd" size=15> <input type= Submit name=sbmt value="login"> </pre> </form></body> </html> OUTPUT SCREEN FOR USERLOGIN <html> Source code for books catalog

7 <head> </head> <body> <center><font color="red" size=7 face="vivaldi"><b><i>book Catlog</i></font></center></b> <table> <td><img src=java.jpg width=100></td><td><b>java Complete references</b> <ul><pre><li><font color=blue>author :Gangadhar</font> <li><font color=blue>edition :2007</font> <li><font color=blue>price :450</font> <li><font color=blue>publicher :Ideal publishers</pre></font></pre> </ul> <td><pre><b>add to cart</b> <img src="click.gif"></pre></td> </td> <tr> <td><img src="vbnet.gif" width=80></td><td><b>visual Basics</b> <ul><pre><li><font color=blue>author :Kiran</font> <li><font color=blue>edition :2007</font> <li><font color=blue>price :950</font> <li><font color=blue>publicher :gangii publishers</pre></font></pre> </ul> <td><pre><b>add to cart</b> <img src="click.gif"></pre></td> </tr> <tr> <td><img src="web tech.gif" width=80></td><td><b>web Technology & Designing</b> <ul><pre><li><font color=blue>author :Kiran-Gangadhar</font> <li><font color=blue>edition :2007</font> <li><font color=blue>price :5950</font> <li><font color=blue>publicher :jyothi publishers</pre></font></pre> </ul> <td><pre><b>add to cart</b> <img src="click.gif"></pre></td> </tr> <tr> <td><img src="quick.gif" width=80></td><td><b>web Technology & Designing</b> <ul><pre><li><font color=blue>author :Kiran-Gangadhar</font> <li><font color=blue>edition :2007</font> <li><font color=blue>price :5950</font> <li><font color=blue>publicher :jyothi publishers</pre></font></pre> </ul> <td><pre><b>add to cart</b> <img src="click.gif"></pre></td> </tr> <tr> <td><img src="harry.jpg" width=80></td><td><b>harry reference to java</b> <ul><pre><li><font color=blue>author :Harry Potter</font> <li><font color=blue>edition :2007</font> <li><font color=blue>price :950</font> <li><font color=blue>publicher :jyothi publishers</pre></font></pre> </ul> <td><pre><b>add to cart</b> <img src="click.gif"></pre></td> </tr> </table> </body> </html>

8 OUTPUT SCREEN FOR BOOKCATLOG Outcome: To Learn the development process of Home page using only HTML.

9 DEV BHOOMI INSTITUTE OF TECHNOLOGY LAB MANUAL Course Name: Web Technology Lab Course Code : PCS-852 Faculty : Ms. Abhilasha Rathore Experiment No. 2 Branch: CSE Semester: 8 Objective: Validate the Registration, user login and payment by credit card pages using JavaScript. Program: Registration <html> <head><title> register</title> <SCRIPT LANGUAGE="JAVASCRIPT"> function essentials_of_validation(form1) var return_value=true; var username1=form1.txtusername1.value; var username2=form1.txtusername2.value; var password1=form1.txtpassword1.value; var password2=form1.txtpassword2.value; if(username1.length < 8) return_value=false; window.alert("user name less than 8 chars"); if(username1==username2) return_value=false; window.alert("both ids are same"); form1.txtusername2.value=""; if(password1.length<6) return_value=false; window.alert(" pwd should be > 6 char's "); form1.txtpassword1.value=""; form1.txtpassword2.value=""; if(password1!=password2) return_ value=false; window.alert("ur password mismatched "); form1.txtpassword1.value=""; form1.txtpassword2.value=""; return return_value; </script> </head> <body BGCOLOR="YELLOW"> <CENTER><u>

10 <marquee><font name="mistral" size="+1">registration FORM</font></marquee> </u></center> <form name="form1" onsubmit="essentials_of_validation(this)"> Name:<input name="name" type="text" size="10"> Age:<input type="text" size="3"> Sex: <input name ="gen" type="radio" value="male">male <input name="gen" type="radio" value="female">female Address:<textarea name="address" rows="3" cols="3"></textarea> Enter id u want :<sup>*</sup> <input type="text" name="txtusername1" size="15"> Password:<sup>*</sup> <input type="password" name="txtpassword1" size="15">(password should exceed 6 characters) Confirm password:<input type="password" name="txtpassword2" size=20> Alternate mail:<sup>*</sup> <input type="text" name="txtusername2" size="15"> Known This Site Through <input name="things" type="checkbox" value="srts"> internet <input name="things" type="checkbox" value="sp">newspapers <input name="things" type="checkbox" value="spor"> friends Rate ur site <select name="rating"> <option selected>good <option>average <option>bad <option>no rating </select> Enter the code<input name="code" type="text" size="5"> <table border="1" width="10%" height="10%"> <thead><tr><th> 1123</th></tr> </thead> </table> <input type="submit" value="submit "> <input type ="reset" value="clear ur entries"> </form> <font size="+1"> <A Href="E:\cs540\online.html">Home</A> <A Href="E:\cs540\user.html">Login</A> </font> </body> </html> User Login <html> <head> <SCRIPT LANGUAGE="JAVASCRIPT"> function essentials_of_validation(form1)

11 var return_value=true; var username=form1.txtusername.value; var password1=form1.txtpassword1.value; var password2=form1.txtpassword2.value; if(username.length < 8) return_value=false; window.alert("user name less thn 8 chars"); if(password1.length<6) return_value=false; window.alert(" pwd should be > 6 char's "); form1.txtpassword1.value=""; form1.txtpassword2.value=""; if(password1!=password2) return_value=false; window.alert("ur password mismatched "); form1.txtpassword1.value=""; form1.txtpassword2.value=""; return return_value; </script> </head> <body bgcolor="skyblue"> <marquee><b><u><font face="comic sans ms" color="light blue">login here</font></u></b></marquee> <form name="form1" onsubmit="essentials_of_validation(this)"> Username <input type="text" name="txtusername" size=20> Password: <input type="password" name="txtpassword1" size=20> Confirm password:<input type="password" name="txtpassword2" size=20> <input type="submit" value="submit"> <input type="reset" value="reset"> </form> </body> </html> Payment by credit card <html> <head><title> payment</title> <SCRIPT LANGUAGE="JAVASCRIPT"> function essentials_of_validation(form1) var current=new Date(); var return_value=true; var username=form1.txtusername.value; var password1=form1.txtpassword1.value; var a=form1.dd.value; var b=form1.mm.value; var c=form1.yyyy.value; if(isnan(username)) window.alert("not a valid account number"); if(a<32 && b<13&& c>=current.getfullyear())

12 if(c>current.getfullyear()) window.alert(" you are validated"); else if(c=current.getfullyear()) if(b>current.getmonth()) window.alert(" you are validated"); else if(b=current.getmonth()) if(a>current.getdate()) window.alert("you are validated"); else window.alert("your card has expired"); else window.alert(" card has expired"); </script> </head> <body bgcolor="pink"> <marquee><strong>enjoy the Shopping with special Offers</strong></marquee> <form name="form1" onsubmit="essentials_of_validation(this)"> <font size="+2"> Payment Through <input name="pay" type="radio" >Credit card <input name="pay" type="radio" >Debit card Bank <select name="bank"> <option selected>sbi <option>hsbc <option>icici <option>others </select> Account/Card number: <input name="txtusername" type="textbox"> Net banking id/password<input name="txtpassword1" type="password"> Enter date of expiryof account/card<input name="dd" type="text" size=2>(dd) <input name="mm" type="text" size=2>(mm) <input name="yyyy" type="text" size=4>(yyyy) <input type="submit" value="accept"> <input type="reset" value="reject"> </form> <A Href="e:\cs540\online.html">Home</A> <A Href="e:\cs540\shop.html">back</A>

13 </body> </html> Output screens for validations

14

15 Outcome: To learn the process to Validate the Registration, user login and payment by credit card pages using JavaScript.

16 DEV BHOOMI INSTITUTE OF TECHNOLOGY LAB MANUAL Course Name: Web Technology Lab Course Code : PCS-852 Faculty : Ms. Abhilasha Rathore Experiment No. 3 Branch: CSE Semester: 8 Objective: To write a program which takes user id as input and displays the user details by taking the user information from the XML document. Program: User Information <?xml version="1.0"?> <userdata> <user1> <jntuno>561</jntuno> <name> chandu</name> <phno> </phno> <address>srikakulam</address> </user1> <user2> <jntuno>540</jntuno> <name> karteek</name> <phno> </phno> <address>srikakulam1</address> </user2> <user3> <jntuno>525</jntuno> <name> giri</name> <phno> </phno> <address>rajam</address> </user3> <user4> <jntuno>526</jntuno> <name>gopi</name> <phno> </phno> <address>parlakimidi</address> </user4> <user5> <jntuno>513</jntuno> <name> manoj</name> <phno> </phno> <address>hyderabad</address> </user5> <user6> <jntuno>514</jntuno> <name> balaji</name> <phno> </phno> <address>vizag</address> </user6> <user7> <jntuno>567</jntuno> <name>kiran </name>

17 <phno> </phno> <address>vijayanagaram</address> </user7> <user8> <jntuno>518</jntuno> <name> sekhar</name> <phno>789580</phno> <address>bobili</address> </user8> <user9> <jntuno>517</jntuno> <name>chaitu</name> <phno>789590</phno> <address>sallur</address> </user9> <user10> <jntuno>595</jntuno> <name> sravan</name> <phno> </phno> <address>sklm</address> </user10> </userdata> Information Retrival <html> <!--DOM with javascript> <head> <title>user profile example</title> </head> <body> <script type="text/javascript"> var xmldoc=new ActiveXObject("Microsoft.XMLDOM"); xmldoc.load("data.xml"); var ele=xmldoc.documentelement; var y=window.prompt("eneter user num",1); var node=ele.childnodes.item(y-1); for(var i=0;i<node.childnodes.length;i++) var child=node.childnodes.item(i); var val=child.firstchild; document.write("<h2>"+child.nodename+":"+val.nodevalue); </script> </body> </html>

18 Output screens for XML document

19 DEV BHOOMI INSTITUTE OF TECHNOLOGY LAB MANUAL Course Name: Web Technology Lab Course Code : PCS-852 Faculty : Ms. Abhilasha Rathore Experiment No. 4 Branch: CSE Semester: 8 Objective: To create a JavaBean so that it converts value of INR(Indian Rupees) into equivalent American/Canadian/Australian Dollar value. Program: package sunw.demo.kiranrupee; import java.awt.*; import java.awt.event.*; public class KiranRupee extends Canvas private double Rupee; public KiranRupee() addmouselistener(new MouseAdapter() public void mousepressed(mouseevent me) repaint(); ); setsize(300,300); public double getrupee() return Rupee; public void setrupee(double r) Rupee=r; repaint(); public void paint(graphics g) double Ausdollar,Usadollar,Candiandollar; Usadollar=(Rupee*39.72); Ausdollar=(Rupee* ); Candiandollar=(Rupee* ); Dimension d=getsize(); int h=d.height; int w=d.width; g.setfont(new Font("SansSerif",Font.PLAIN,22)); g.drawstring("indian Rupee :"+Rupee,50,50); g.drawstring("aus Dollar :"+Ausdollar,50,150); g.drawstring("candian Dollar :"+Candiandollar,50,200);

20 Output screen for javabean Outcome: To understand the process of creating a JavaBean so that it converts value of INR(Indian Rupees) into equivalent American/Canadian/Australian Dollar value.

21 DEV BHOOMI INSTITUTE OF TECHNOLOGY LAB MANUAL Course Name: Web Technology Lab Course Code : PCS-852 Faculty : Ms. Abhilasha Rathore Experiment No. 5 Branch: CSE Semester: 8 Objective: To create a simple Bean with a label - which is the count of number of clicks and a BeanInfo class such that only the count property is visible in the Property Window. Program: package sunw.demo.kirancount; import java.awt.*; import java.awt.event.*; public class KiranCount extends Canvas private int count; public KiranCount() addmouselistener(new MouseAdapter() public void mousepressed(mouseevent me) count++; repaint(); ); setsize(200,300); public void paint(graphics g) Dimension d=getsize(); int h=d.height; int w=d.width; g.setfont(new Font("SansSerif",Font.PLAIN,22)); g.drawstring("count :"+count,150,150);

22 Outputscreen for Using bean info class: Outcome: To understand the process of creating a simple Bean with a label - which is the count of number of clicks and a BeanInfo class such that only the count property is visible in the Property Window.

23 DEV BHOOMI INSTITUTE OF TECHNOLOGY LAB MANUAL Course Name: Web Technology Lab Course Code : PCS-852 Faculty : Ms. Abhilasha Rathore Experiment No. 6 Branch: CSE Semester: 8 Objective: To create two Beans Traffic Light which implemented as a Label with only three background colours-red,green,yellow and Automobile which is implemented as a TextBox which states its state/movement with above stated conditions. Program: package sunw.demo.colors; import java.awt.*; import java.awt.event.*; public class Colors extends Canvas transient private Color color; private boolean rectangular; public Colors() addmouselistener(new MouseAdapter() public void mousepressed(mouseevent me) change(); ); rectangular=false; setsize(200,100); change(); public boolean getrectangular() return rectangular; public void setrectangular(boolean flag) this.rectangular=flag; repaint(); public void change() color=randomcolor(); repaint(); private Color randomcolor() int r=(int) (255*Math.random()); int g=(int) (255*Math.random()); int b=(int) (255*Math.random()); return new Color(r, g, b); public void paint(graphics g)

24 Dimension d=getsize(); int h=d.height; int w=d.width; g.setcolor(color); if(rectangular) g.fillrect(0, 0, w-1, h-1); else g.filloval(0, 0, w-1, h-1); Output screens Outcome: To understand the process of creating Two Beans Traffic Light which implemented as a Label with only three background colours-red,green,yellow and Automobile which is implemented as a TextBox which states its state/movement with above stated conditions.

25 DEV BHOOMI INSTITUTE OF TECHNOLOGY LAB MANUAL Course Name: Web Technology Lab Course Code : PCS-852 Faculty : Ms. Abhilasha Rathore Experiment No. 7 Branch: CSE Semester: 7 Objective: To convert the static web pages online library into dynamic web pages using servlets and cookies. Program: Shopping page: <html> <head> <title> ONLINE BOOK STORES</title> </head> <body bgcolor="pink"> <FRAMESET ROWS="20%,*"> <FRAME NAME="A2" SCROLLING="YES" SRC="head.html"> </FRAMESET><H1 ALIGN="CENTER"><U><FONT COLOR="PURPLE">WELCOME TO ONLINE BOOK SHOPPING<ITALIC></ITALIC> </U></FONT></H1> <H2> <FONT COLOR="WHITE"></FONT></H2> <H3 ALIGN="CENTER"><A HREF="reg.html"><BR><BR> <FONT COLOR="black"><ITALIC>REGISTRATION FORM</FONT></ITALIC><BR><BR> <BR><BR><A HREF="user profile.html"><font COLOR="black"><ITALIC>USER PROFILE</FONT></ITALIC><BR> <BR><BR><A HREF="user login.html"><font COLOR="black"><ITALIC>USER LOGIN</FONT></ITALIC><BR> <BR><BR><A HREF="book catalog.html"><font COLOR="black"><ITALIC>BOOKS CATALOG</FONT></ITALIC><BR> <BR><BR><A HREF="confim.HTML"><FONT COLOR="black"><ITALIC>BOOKS CART</FONT></ITALIC><BR> <BR><BR><A HREF="payment.HTML"><FONT COLOR="black"><ITALIC>PAYMENT</H3></FONT></ITALIC><BR> </BODY> </HTML> Registration: <html> <head> <center><u><h1>registration Form</h1></u></center> </head> <body> <fieldset width=300><legend class=heading>registration Form</legend> <form actions=" <pre class="reg"> First Name : <input type="text" size=30>

26 Last Name : <input type="text" size=30> Age : <input type="text" size=30 onfocus="kirandisp()"> Id : <input type=" " size=30> Alternate Id : <input type=" " size=30> Address : <textarea cols=50 rows=3></textarea> Phone : <input type="text" size=30> Occupation : <input type="text" size=30> <input type="radio" name="agree" value="i agree">i Agree Terms & conditions <input type="radio" name="agree" value="i disagree">i DisAgree <input type="submit" value=submit> <input type="reset" value=" reset "> </form> </fieldset> </body> </html> Sign in: <html> <head><center> <font size="6" color="black" ><h1><u>user login...</u><h1></font></center> </head> <form method="post" ACTION=" <body bgcolor="0x1ff0f2"> <pre> Enter Name : <input type="text" name="name" size=15 > Enter Password : <input type="password" name="pwd" size=15> <input type= Submit name=sbmt value="login"> </pre> </form></body> </html> //servlet program import java.util.*; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class KiranParameters1 extends HttpServlet public void doget(httpservletrequest req,httpservletresponse res)throws ServletException,IOException res.setcontenttype("text/html"); PrintWriter out=res.getwriter(); String name=res.getparameter(" "); String pass=res.getparameter("password"); if(name.equals(name)&&pass.equals(pass)) res.setheader("refresh", "5; URL=KiranBooksShopping.htm"); else res.setheader("refresh","5;url=kiranuserlogininvlid.htm"); public void dopost(httpservletrequest request,httpservletresponse response) throws ServletException, IOException

27 doget(request, response); Books Catalog: <html> <head> </head> <body> <center><font color="red" size=7 face="vivaldi"><b><i>book Catlog</i></font></center></b> <table> <td><img src=java.jpg width=100></td><td><b>java Complete references</b> <ul><pre><li><font color=blue>author :Gangadhar</font> <li><font color=blue>edition :2007</font> <li><font color=blue>price :450</font> <li><font color=blue>publicher :Ideal publishers</pre></font></pre> </ul> <td><pre><b>add to cart</b> <img src="click.gif"></pre></td> </td> <tr> <td><img src="vbnet.gif" width=80></td><td><b>visual Basics</b> <ul><pre><li><font color=blue>author :Kiran</font> <li><font color=blue>edition :2007</font> <li><font color=blue>price :950</font> <li><font color=blue>publicher :gangii publishers</pre></font></pre> </ul> <td><pre><b>add to cart</b> <img src="click.gif"></pre></td> </tr> <tr> <td><img src="web tech.gif" width=80></td><td><b>web Technology & Designing</b> <ul><pre><li><font color=blue>author :Kiran-Gangadhar</font> <li><font color=blue>edition :2007</font> <li><font color=blue>price :5950</font> <li><font color=blue>publicher :jyothi publishers</pre></font></pre> </ul> <td><pre><b>add to cart</b> <img src="click.gif"></pre></td> </tr> <tr> <td><img src="quick.gif" width=80></td><td><b>web Technology & Designing</b> <ul><pre><li><font color=blue>author :Kiran-Gangadhar</font> <li><font color=blue>edition :2007</font> <li><font color=blue>price :5950</font> <li><font color=blue>publicher :jyothi publishers</pre></font></pre> </ul> <td><pre><b>add to cart</b> <img src="click.gif"></pre></td> </tr> <tr> <td><img src="harry.jpg" width=80></td><td><b>harry reference to java</b> <ul><pre><li><font color=blue>author :Harry Potter</font> <li><font color=blue>edition :2007</font> <li><font color=blue>price :950</font> <li><font color=blue>publicher :jyothi publishers</pre></font></pre> </ul>

28 <td><pre><b>add to cart</b> <img src="click.gif"></pre></td> </tr> </table> </body> </html> //servlet program import java.util.*; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class KiranParameters1 extends HttpServlet public void doget(httpservletrequest req,httpservletresponse res)throws ServletException,IOException res.setcontenttype("text/html"); PrintWriter out=res.getwriter(); Enumeration ki=req.getparameternames(); out.println("<html><body><center>books Selected</center><table>"); while(ki.hasmoreelements()) String name=""+ki.nextelement(); String value=req.getparameter(name); out.println("<td>"+name+" : "+value +"</td></tr>"); out.println("</table>");

29 Output screens

30

31 Outcome: To convert the static web pages online library into dynamic web pages using servlets and cookies.

32

M.Tech. CSE - I Yr I Semester (19)

M.Tech. CSE - I Yr I Semester (19) M.Tech. CSE - I Yr I Semester - 2010-11 (19) //service public ServletConfig getservletconfig() return sc; public String getservletinfo() return "Guide - T.PoornaShekhar, M.Tech CS & CSE Coordinator - www.scce.ac.in";

More information

Advanced Internet Technology Lab # 5 Handling Client Requests

Advanced Internet Technology Lab # 5 Handling Client Requests Faculty of Engineering Computer Engineering Department Islamic University of Gaza 2011 Advanced Internet Technology Lab # 5 Handling Client Requests Eng. Doaa Abu Jabal Advanced Internet Technology Lab

More information

AJP. CHAPTER 5: SERVLET -20 marks

AJP. CHAPTER 5: SERVLET -20 marks 1) Draw and explain the life cycle of servlet. (Explanation 3 Marks, Diagram -1 Marks) AJP CHAPTER 5: SERVLET -20 marks Ans : Three methods are central to the life cycle of a servlet. These are init( ),

More information

INTERNET PROGRAMMING TEST-3 SCHEME OF EVALUATION 1.A 3 LIFE CYCLE METHODS - 3M 1.B HTML FORM CREATION - 2 M

INTERNET PROGRAMMING TEST-3 SCHEME OF EVALUATION 1.A 3 LIFE CYCLE METHODS - 3M 1.B HTML FORM CREATION - 2 M INTERNET PROGRAMMING TEST-3 SCHEME OF EVALUATION 1.A 3 LIFE CYCLE METHODS - 3M EXPLANATION - 1.B HTML FORM CREATION - 2 M SERVLET CODE IN POST METHOD IMPORT STATEMENTS - CLASS NAME AND METHOD (POST) -

More information

Chettinad College of Engineering and Technology CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF COMPUTER SCIENCE AND TECHNOLOGY

Chettinad College of Engineering and Technology CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF COMPUTER SCIENCE AND TECHNOLOGY CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF COMPUTER SCIENCE AND TECHNOLOGY UNIT IV SERVLETS 1. What is Servlets? a. Servlets are server side components that provide a powerful mechanism

More information

LAB MANUAL SUBJECT: WEB TECHNOLOGY CLASS : T.E (COMPUTER) SEMESTER: VI

LAB MANUAL SUBJECT: WEB TECHNOLOGY CLASS : T.E (COMPUTER) SEMESTER: VI LAB MANUAL SUBJECT: WEB TECHNOLOGY CLASS : T.E (COMPUTER) SEMESTER: VI INDEX No. Title Pag e No. 1 Implements Basic HTML Tags 3 2 Implementation Of Table Tag 4 3 Implementation Of FRAMES 5 4 Design A FORM

More information

Spring 2014 Interim. HTML forms

Spring 2014 Interim. HTML forms HTML forms Forms are used very often when the user needs to provide information to the web server: Entering keywords in a search box Placing an order Subscribing to a mailing list Posting a comment Filling

More information

Chapter #1. Program to demonstrate applet life cycle

Chapter #1. Program to demonstrate applet life cycle Chapter #1. Program to demonstrate applet life cycle import java.applet.applet; import java.awt.*; public class LifeCycle extends Applet{ public void init(){ System.out.println(" init()"); public void

More information

HTML Forms. By Jaroslav Mohapl

HTML Forms. By Jaroslav Mohapl HTML Forms By Jaroslav Mohapl Abstract How to write an HTML form, create control buttons, a text input and a text area. How to input data from a list of items, a drop down list, and a list box. Simply

More information

Summary 4/5. (contains info about the html)

Summary 4/5. (contains info about the html) Summary Tag Info Version Attributes Comment 4/5

More information

The Hypertext Markup Language (HTML) Part II. Hamid Zarrabi-Zadeh Web Programming Fall 2013

The Hypertext Markup Language (HTML) Part II. Hamid Zarrabi-Zadeh Web Programming Fall 2013 The Hypertext Markup Language (HTML) Part II Hamid Zarrabi-Zadeh Web Programming Fall 2013 2 Outline HTML Structures Tables Forms New HTML5 Elements Summary HTML Tables 4 Tables Tables are created with

More information

DEV BHOOMI INSTITUTE OF TECHNOLOGY Department of Computer Science and Engineering. Algorithm lab- PCS-553 LAB MANUAL

DEV BHOOMI INSTITUTE OF TECHNOLOGY Department of Computer Science and Engineering. Algorithm lab- PCS-553 LAB MANUAL Department of Computer Science and Engineering Year: 3rd Semester: 5th Algorithm lab- PCS-553 Prepared By: HOD(CSE) 1 Department of Computer Science and Engineering INDEX S.No Practical s Name Tools Remark

More information

COMPUTER APPLICATIONS IN BUSINESS FYBMS SEM II

COMPUTER APPLICATIONS IN BUSINESS FYBMS SEM II CHAPTER 1: HTML 1. What is HTML? Define its structure. a. HTML [Hypertext Markup Language] is the main markup language for creating web pages and other information that can be displayed in a web browser.

More information

Unit-4: Servlet Sessions:

Unit-4: Servlet Sessions: 4.1 What Is Session Tracking? Unit-4: Servlet Sessions: Session tracking is the capability of a server to maintain the current state of a single client s sequential requests. Session simply means a particular

More information

WHITE LABELING IN PROGRESS ROLLBASE PRIVATE CLOUD

WHITE LABELING IN PROGRESS ROLLBASE PRIVATE CLOUD W HI TEPAPER www. p rogres s.com WHITE LABELING IN PROGRESS ROLLBASE PRIVATE CLOUD In this whitepaper, we describe how to white label Progress Rollbase private cloud with your brand name by following a

More information

Islamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM Advanced Internet Technology Lab.

Islamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM Advanced Internet Technology Lab. Islamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM 5049 Advanced Internet Technology Lab Lab # 1 Eng. Haneen El-masry February, 2015 Objective To be familiar with

More information

Accessing EJB in Web applications

Accessing EJB in Web applications Accessing EJB in Web applications 1. 2. 3. 4. Developing Web applications Accessing JDBC in Web applications To run this tutorial, as a minimum you will be required to have installed the following prerequisite

More information

Overview of Forms. Forms are used all over the Web to: Types of forms: Accept information Provide interactivity

Overview of Forms. Forms are used all over the Web to: Types of forms: Accept information Provide interactivity HTML Forms Overview of Forms Forms are used all over the Web to: Accept information Provide interactivity Types of forms: Search form, Order form, Newsletter sign-up form, Survey form, Add to Cart form,

More information

EXPERIMENT- 9. Login.html

EXPERIMENT- 9. Login.html EXPERIMENT- 9 To write a program that takes a name as input and on submit it shows a hello page with name taken from the request. And it shows starting time at the right top corner of the page and provides

More information

Introduction. Literature: Steelman & Murach, Murach s Java Servlets and JSP. Mike Murach & Associates Inc, 2003

Introduction. Literature: Steelman & Murach, Murach s Java Servlets and JSP. Mike Murach & Associates Inc, 2003 Introduction This course Software Architecture with Java will discuss the following topics: Java servlets Java Server Pages (JSP s) Java Beans JDBC, connections to RDBMS and SQL XML and XML translations

More information

SYBMM ADVANCED COMPUTERS QUESTION BANK 2013

SYBMM ADVANCED COMPUTERS QUESTION BANK 2013 CHAPTER 1: BASIC CONCEPTS OF WEB DESIGNING 1. What is the web? What are the three ways you can build a webpage? The World Wide Web (abbreviated as WWW or W3, commonly known as the web), is a system of

More information

Servlet. Web Server. Servlets are modules of Java code that run in web server. Internet Explorer. Servlet. Fire Fox. Servlet.

Servlet. Web Server. Servlets are modules of Java code that run in web server. Internet Explorer. Servlet. Fire Fox. Servlet. Servlet OOS Lab Servlet OOS Servlets are modules of Java code that run in web server. Internet Explorer Web Server Fire Fox Servlet Servlet Servlet Java Application 2 Servlet - Example OOS import java.io.*;

More information

Introduction. This course Software Architecture with Java will discuss the following topics:

Introduction. This course Software Architecture with Java will discuss the following topics: Introduction This course Software Architecture with Java will discuss the following topics: Java servlets Java Server Pages (JSP s) Java Beans JDBC, connections to RDBMS and SQL XML and XML translations

More information

Chapter 1 FORMS. SYS-ED/ Computer Education Techniques, Inc.

Chapter 1 FORMS. SYS-ED/ Computer Education Techniques, Inc. Chapter 1 FORMS SYS-ED/ Computer Education Techniques, Inc. Objectives You will learn: How to use forms and the related form types. Controls for interacting with forms. Menus and presenting users with

More information

HTML Forms IT WS I - Lecture 11

HTML Forms IT WS I - Lecture 11 HTML Forms IT WS I - Lecture 11 Saurabh Barjatiya International Institute Of Information Technology, Hyderabad 04 October, 2009 Contents Seeing submitted values 1 Seeing submitted values 2 3 Seeing submitted

More information

COMP1000 Mid-Session Test 2017s1

COMP1000 Mid-Session Test 2017s1 COMP1000 Mid-Session Test 2017s1 Total Marks: 45 Duration: 55 minutes + 10 min reading time This examination has three parts: Part 1: 15 Multiple Choice Questions (15 marks /45) Part 2: Practical Excel

More information

Kamnoetvidya Science Academy. Object Oriented Programming using Java. Ferdin Joe John Joseph. Java Session

Kamnoetvidya Science Academy. Object Oriented Programming using Java. Ferdin Joe John Joseph. Java Session Kamnoetvidya Science Academy Object Oriented Programming using Java Ferdin Joe John Joseph Java Session Create the files as required in the below code and try using sessions in java servlets web.xml

More information

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad - 500 043 INFORMATION TECHNOLOGY TUTORIAL QUESTION BANK Course Name Course Code Class Branch : Web Technologies : ACS006 : B. Tech

More information

TUTORIAL QUESTION BANK

TUTORIAL QUESTION BANK + INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad - 500 043 COMPUTER SCIENCE AND ENGINEERING TUTORIAL QUESTION BANK Course Name Course Code Class Branch : Web Technologies : ACS006

More information

Javascript. UNIVERSITY OF MASSACHUSETTS AMHERST CMPSCI 120 Fall 2010

Javascript. UNIVERSITY OF MASSACHUSETTS AMHERST CMPSCI 120 Fall 2010 Lecture 21 Javascript Announcements Reminder: beginning with Homework #7, Javascript assignments must be submitted using a format described in an attachment to HW#7 3rd Exam date set for 12/14 in Goessmann

More information

HTML Tables and Forms. Outline. Review. Review. Example Demo/ Walkthrough. CS 418/518 Web Programming Spring Tables to Display Data"

HTML Tables and Forms. Outline. Review. Review. Example Demo/ Walkthrough. CS 418/518 Web Programming Spring Tables to Display Data CS 418/518 Web Programming Spring 2014 HTML Tables and Forms Dr. Michele Weigle http://www.cs.odu.edu/~mweigle/cs418-s14/ Outline! Assigned Reading! Chapter 4 "Using Tables to Display Data"! Chapter 5

More information

CE212 Web Application Programming Part 3

CE212 Web Application Programming Part 3 CE212 Web Application Programming Part 3 30/01/2018 CE212 Part 4 1 Servlets 1 A servlet is a Java program running in a server engine containing methods that respond to requests from browsers by generating

More information

Module 4: SERVLET and JSP

Module 4: SERVLET and JSP 1.What Is a Servlet? Module 4: SERVLET and JSP A servlet is a small Java program that runs within a Web server. Servlets receive and respond to requests from Web clients, usually across HTTP, the Hyper

More information

Internet Technologies 5-Dynamic Web. F. Ricci 2010/2011

Internet Technologies 5-Dynamic Web. F. Ricci 2010/2011 Internet Technologies 5-Dynamic Web F. Ricci 2010/2011 Content The "meanings" of dynamic Building dynamic content with Java EE (server side) HTML forms: how to send to the server the input PHP: a simpler

More information

Advanced HTML 5.1 INTRODUCTION 5.2 OBJECTIVES

Advanced HTML 5.1 INTRODUCTION 5.2 OBJECTIVES 5 Advanced HTML 5.1 INTRODUCTION An effective way to organize web documents, visually, and also logically, by dividing the page into different parts is the necessity of the website today. In each part

More information

J2EE Web Development 13/1/ Application Servers. Application Servers. Agenda. In the beginning, there was darkness and cold.

J2EE Web Development 13/1/ Application Servers. Application Servers. Agenda. In the beginning, there was darkness and cold. 1. Application Servers J2EE Web Development In the beginning, there was darkness and cold. Then, mainframe terminals terminals Centralized, non-distributed Agenda Application servers What is J2EE? Main

More information

AIM: PROCEDURE: Main page:

AIM: PROCEDURE: Main page: AIM: 1. Develop static pages (using Only HTML) of an online Book store.the pages should resemble:www.amazon.com.the website should consists the following pages. Home page Registration User Login Books

More information

Chapter4: HTML Table and Script page, HTML5 new forms. Asst. Prof. Dr. Supakit Nootyaskool Information Technology, KMITL

Chapter4: HTML Table and Script page, HTML5 new forms. Asst. Prof. Dr. Supakit Nootyaskool Information Technology, KMITL Chapter4: HTML Table and Script page, HTML5 new forms Asst. Prof. Dr. Supakit Nootyaskool Information Technology, KMITL Objective To know HTML5 creating a new style form. To understand HTML table benefits

More information

Lesson 3. Form By Raymond Tsang. Certificate Programme in Cyber Security

Lesson 3. Form By Raymond Tsang. Certificate Programme in Cyber Security Lesson 3 Form By Raymond Tsang Certificate Programme in Cyber Security What is a form How to create a form Getting input from users Generate a result It s a section of a document containing normal content,

More information

How to Set Up a Custom Challenge Page for Authentication

How to Set Up a Custom Challenge Page for Authentication How to Set Up a Custom Challenge Page for Authentication Setting up a custom challenge page is a three step process: 1. Create a custom challenge page. Deploy the created custom challenge page on your

More information

Form Overview. Form Processing. The Form Element. CMPT 165: Form Basics

Form Overview. Form Processing. The Form Element. CMPT 165: Form Basics Form Overview CMPT 165: Form Basics Tamara Smyth, tamaras@cs.sfu.ca School of Computing Science, Simon Fraser University October 26, 2011 A form is an HTML element that contains and organizes objects called

More information

Handout 31 Web Design & Development

Handout 31 Web Design & Development Lecture 31 Session Tracking We have discussed the importance of session tracking in the previous handout. Now, we ll discover the basic techniques used for session tracking. Cookies are one of these techniques

More information

WEB TECHNOLOGIES LAB MANUAL FOR CSE & IT

WEB TECHNOLOGIES LAB MANUAL FOR CSE & IT WEB TECHNOLOGIES LAB MANUAL FOR CSE & IT Page 1 INDEX S. No Contents Page. No 1 Lab Objective 3 2 Introduction About Lab 4 3 Guidelines to Students 6 4 6 List of Lab Exercises Syllabus Programs (JNTU)

More information

core programming HTML Forms Sending Data to Server-Side Programs Marty Hall, Larry Brown

core programming HTML Forms Sending Data to Server-Side Programs Marty Hall, Larry Brown core programming HTML Forms Sending Data to Server-Side Programs 1 2001-2003 Marty Hall, Larry Brown http:// Agenda Sending data from forms The FORM element Text controls Push buttons Check boxes and radio

More information

CHAPTER 6: CREATING A WEB FORM CREATED BY L. ASMA RIKLI (ADAPTED FROM HTML, CSS, AND DYNAMIC HTML BY CAREY)

CHAPTER 6: CREATING A WEB FORM CREATED BY L. ASMA RIKLI (ADAPTED FROM HTML, CSS, AND DYNAMIC HTML BY CAREY) CHAPTER 6: CREATING A WEB FORM INTERACTION BETWEEN A WEB FORM AND A WEB SERVER Without a form, a website is read-only. It only provides information. EXAMPLES OF FORMS USAGE Performing searches Posting

More information

Department Of CSE/IT/MCA

Department Of CSE/IT/MCA Department Of CSE/IT/MCA MANUAL WEB TECHNOLOGIES LAB B.Tech CSE & IT JYOTHISHMATHI INSTITUTE OF TECHNOLOGY & SCIENCE NUSTULAPUR, KARIMNAGAR 1 INDEX SNO 1 PROGRAM PNO 3 Develop static pages (using Only

More information

SREE CHAITANYA COLLEGE OF ENGINEERING

SREE CHAITANYA COLLEGE OF ENGINEERING SREE CHAITANYA COLLEGE OF ENGINEERING COMPUTER SCIENCE & ENGINEERING WT LAB MANUAL ( R13 REGULATION) 1. Install the following on the local machine a. Apache Web Server b. Tomcat Application Server locally

More information

HTML Tables and. Chapter Pearson. Fundamentals of Web Development. Randy Connolly and Ricardo Hoar

HTML Tables and. Chapter Pearson. Fundamentals of Web Development. Randy Connolly and Ricardo Hoar HTML Tables and Forms Chapter 5 2017 Pearson http://www.funwebdev.com - 2 nd Ed. HTML Tables A grid of cells A table in HTML is created using the element Tables can be used to display: Many types

More information

CREATE A SERVLET PROGRAM TO DISPLAY THE STUDENTS MARKS. To create a servlet program to display the students marks

CREATE A SERVLET PROGRAM TO DISPLAY THE STUDENTS MARKS. To create a servlet program to display the students marks CREATE A SERVLET PROGRAM TO DISPLAY THE STUDENTS MARKS DATE: 30.9.11 Aim: To create a servlet program to display the students marks Hardware requirements: Intel Core 2 Quad 2GB RAM Software requirements:

More information

CSS CSS how to display to solve a problem External Style Sheets CSS files CSS Syntax

CSS CSS how to display to solve a problem External Style Sheets CSS files CSS Syntax CSS CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to solve a problem External Style Sheets can save a lot of work External Style Sheets

More information

Building Web Based Application using HTML

Building Web Based Application using HTML Introduction to Hypertext Building Web Based Application using HTML HTML: Hypertext Markup Language Hypertext links within and among Web documents connect one document to another Origins of HTML HTML is

More information

ServletConfig Interface

ServletConfig Interface ServletConfig Interface Author : Rajat Categories : Advance Java An object of ServletConfig is created by the web container for each servlet. This object can be used to get configuration information from

More information

HTML forms and the dynamic web

HTML forms and the dynamic web HTML forms and the dynamic web Antonio Lioy < lioy@polito.it > english version created by Marco D. Aime < m.aime@polito.it > Politecnico di Torino Dip. Automatica e Informatica timetable.html departure

More information

Sub: Advance Java Programming Laboratory

Sub: Advance Java Programming Laboratory 1. Write a JAVA Servlet program to implement a dynamic HTML, using the servlet. (user name and password should be accepted using HTML and displayed using a Servlet) /**************** HTML CODE ******************/

More information

CSE 154 LECTURE 8: FORMS

CSE 154 LECTURE 8: FORMS CSE 154 LECTURE 8: FORMS Web data most interesting web pages revolve around data examples: Google, IMDB, Digg, Facebook, YouTube, Rotten Tomatoes can take many formats: text, HTML, XML, multimedia many

More information

PARTIAL Final Exam Reference Packet

PARTIAL Final Exam Reference Packet PARTIAL Final Exam Reference Packet (Note that some items here may be more pertinent than others; you'll need to be discerning.) Example 1 - St10CommonImportTop.jsp (with comments removed)

More information

1 Form Basics CSC309

1 Form Basics CSC309 1 Form Basics Web Data 2! Most interesting web pages revolve around data! examples: Google, IMDB, Digg, Facebook, YouTube! can take many formats: text, HTML, XML, multimedia! Many of them allow us to access

More information

Java Enterprise Edition. Java EE Oct Dec 2016 EFREI/M1 Jacques André Augustin Page 1

Java Enterprise Edition. Java EE Oct Dec 2016 EFREI/M1 Jacques André Augustin Page 1 Java Enterprise Edition Java EE Oct Dec 2016 EFREI/M1 Jacques André Augustin Page 1 Java Beans Java EE Oct Dec 2016 EFREI/M1 Jacques André Augustin Page 2 Java Bean POJO class : private Attributes public

More information

AIM: PROCEDURE: Home page

AIM: PROCEDURE: Home page 1 1. AIM: Develop static pages (using only HTML) of an online Book store. The pages should resemble :www.amazon.com. The website should consist the following pages. Home page Registration and user Login

More information

Web Technologies - by G. Sreenivasulu Handout - 1 UNIT - I

Web Technologies - by G. Sreenivasulu Handout - 1 UNIT - I INTRODUCTION: UNIT - I HTML stands for Hyper Text Markup Language.HTML is a language for describing web pages.html is a language for describing web pages.html instructions divide the text of a document

More information

Practice problems. 1 Draw the output for the following code. 2. Draw the output for the following code.

Practice problems. 1 Draw the output for the following code. 2. Draw the output for the following code. Practice problems. 1 Draw the output for the following code. form for Spring Retreat Jacket company Spring Retreat Jacket Order Form please fill in this form and click on

More information

HTML: Fragments, Frames, and Forms. Overview

HTML: Fragments, Frames, and Forms. Overview HTML: Fragments, Frames, and Forms Michael B. Spring Department of Information Science and Telecommunications University of Pittsburgh spring@ imap.pitt.edu http://www.sis. pitt.edu/~spring Overview Fragment

More information

Chapter 2 How to structure a web application with the MVC pattern

Chapter 2 How to structure a web application with the MVC pattern Chapter 2 How to structure a web application with the MVC pattern Murach's Java Servlets/JSP (3rd Ed.), C2 2014, Mike Murach & Associates, Inc. Slide 1 Objectives Knowledge 1. Describe the Model 1 pattern.

More information

Creating and Building Websites

Creating and Building Websites Creating and Building Websites Stanford University Continuing Studies CS 21 Mark Branom branom@alumni.stanford.edu Course Web Site: http://web.stanford.edu/group/csp/cs21 Week 7 Slide 1 of 25 Week 7 Unfinished

More information

Forms, CGI. Objectives

Forms, CGI. Objectives Forms, CGI Objectives The basics of HTML forms How form content is submitted GET, POST Elements that you can have in forms Responding to forms Common Gateway Interface (CGI) Later: Servlets Generation

More information

Scheme G Sample Question Paper Unit Test 2

Scheme G Sample Question Paper Unit Test 2 Scheme G Sample Question Paper Unit Test 2 Course Name: Computer Engineering Group Course Code: CO/CD/CM/CW/IF Semester: Sixth Subject Title: Advanced Java Programming Marks: 25 Marks 17625 ---------------------------------------------------------------------------------------------------------------------------

More information

WEBD 236 Web Information Systems Programming

WEBD 236 Web Information Systems Programming WEBD 236 Web Information Systems Programming Week 4 Copyright 2013-2017 Todd Whittaker and Scott Sharkey (sharkesc@franklin.edu) Agenda This week s expected outcomes This week s topics This week s homework

More information

SWE642 Oct. 22, 2003

SWE642 Oct. 22, 2003 import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.arraylist; DataServlet.java /** * First servlet in a two servlet application. It is responsible

More information

Dynamic HTML becomes HTML5. HTML Forms and Server Processing. Form Submission to Web Server. DHTML - Mouse Events. CMST385: Slide Set 8: Forms

Dynamic HTML becomes HTML5. HTML Forms and Server Processing. Form Submission to Web Server. DHTML - Mouse Events. CMST385: Slide Set 8: Forms HTML Forms and Server Processing Forms provide a standard data entry method for users to send information to a web server Clicking button calls a script on server CGI = Common Gateway Interface CGI scripts

More information

HTML Form. Kanida Sinmai

HTML Form. Kanida Sinmai HTML Form Kanida Sinmai ksinmai@tsu.ac.th http://mis.csit.sci.tsu.ac.th/kanida HTML Form HTML forms are used to collect user input. The element defines an HTML form: . form elements. Form

More information

EXPERIMENT OBJECTIVE:

EXPERIMENT OBJECTIVE: EXPERIMENT-1 1.1 To accept a number from one text field in the range of 0 to 999 and shows it in another text field in words. If the number is out of range, it should show out of range and if it is not

More information

LAB Test 1. Rules and Regulations:-

LAB Test 1. Rules and Regulations:- LAB Test 1 Rules and Regulations:- 1. Individual Test 2. Start at 3.10 pm until 4.40 pm (1 Hour and 30 Minutes) 3. Open note test 4. Send the answer to h.a.sulaiman@ieee.org a. Subject: [LabTest] Your

More information

CSC Web Technologies, Spring HTML Review

CSC Web Technologies, Spring HTML Review CSC 342 - Web Technologies, Spring 2017 HTML Review HTML elements content : is an opening tag : is a closing tag element: is the name of the element attribute:

More information

JavaServer Pages (JSP)

JavaServer Pages (JSP) JavaServer Pages (JSP) The Context The Presentation Layer of a Web App the graphical (web) user interface frequent design changes usually, dynamically generated HTML pages Should we use servlets? No difficult

More information

Dynamic Form Processing Tool Version 5.0 November 2014

Dynamic Form Processing Tool Version 5.0 November 2014 Dynamic Form Processing Tool Version 5.0 November 2014 Need more help, watch the video! Interlogic Graphics & Marketing (719) 884-1137 This tool allows an ICWS administrator to create forms that will be

More information

Backend. (Very) Simple server examples

Backend. (Very) Simple server examples Backend (Very) Simple server examples Web server example Browser HTML form HTTP/GET Webserver / Servlet JDBC DB Student example sqlite>.schema CREATE TABLE students(id integer primary key asc,name varchar(30));

More information

D B M G. Introduction to databases. Web programming: the HTML language. Web programming. The HTML Politecnico di Torino 1

D B M G. Introduction to databases. Web programming: the HTML language. Web programming. The HTML Politecnico di Torino 1 Web programming The HTML language The HTML language Basic concepts User interfaces in HTML Forms Tables Passing parameters stored in forms @2017 Politecnico di Torino 1 Basic concepts HTML: HyperText Markup

More information

CIS 3952 [Part 2] Java Servlets and JSP tutorial

CIS 3952 [Part 2] Java Servlets and JSP tutorial Java Servlets Example 1 (Plain Servlet) SERVLET CODE import java.io.ioexception; import java.io.printwriter; import javax.servlet.servletexception; import javax.servlet.annotation.webservlet; import javax.servlet.http.httpservlet;

More information

JAVA SERVLET. Server-side Programming PROGRAMMING

JAVA SERVLET. Server-side Programming PROGRAMMING JAVA SERVLET Server-side Programming PROGRAMMING 1 AGENDA Passing Parameters Session Management Cookie Hidden Form URL Rewriting HttpSession 2 HTML FORMS Form data consists of name, value pairs Values

More information

SREE CHAITANYA COLLEGE OF ENGINEERING

SREE CHAITANYA COLLEGE OF ENGINEERING SREE CHAITANYA COLLEGE OF ENGINEERING (Approved by AICTE, New Delhi, Affiliated to JNTU, Hyd) LMD COLONY, KARIMNAGAR 505 527 (A.P.) CERTIFICATE Certified that this Bonafide record of the laboratory work

More information

Hyperlinks, Tables, Forms and Frameworks

Hyperlinks, Tables, Forms and Frameworks Hyperlinks, Tables, Forms and Frameworks Web Authoring and Design Benjamin Kenwright Outline Review Previous Material HTML Tables, Forms and Frameworks Summary Review/Discussion Email? Did everyone get

More information

Javascript. UNIVERSITY OF MASSACHUSETTS AMHERST CMPSCI 120 Fall 2010

Javascript. UNIVERSITY OF MASSACHUSETTS AMHERST CMPSCI 120 Fall 2010 Lecture 22 Javascript Announcements Homework#7 now due 11/24 at noon Reminder: beginning with Homework #7, Javascript assignments must be submitted using a format described in an attachment to HW#7 I will

More information

A.1 JSP A.2 JSP JSP JSP. MyDate.jsp page contenttype="text/html; charset=windows-31j" import="java.util.calendar" %>

A.1 JSP A.2 JSP JSP JSP. MyDate.jsp page contenttype=text/html; charset=windows-31j import=java.util.calendar %> A JSP A.1 JSP Servlet Java HTML JSP HTML Java ( HTML JSP ) JSP Servlet Servlet HTML JSP MyDate.jsp

More information

Come & Join Us at VUSTUDENTS.net

Come & Join Us at VUSTUDENTS.net Come & Join Us at VUSTUDENTS.net For Assignment Solution, GDB, Online Quizzes, Helping Study material, Past Solved Papers, Solved MCQs, Current Papers, E-Books & more. Go to http://www.vustudents.net and

More information

Java4570: Session Tracking using Cookies *

Java4570: Session Tracking using Cookies * OpenStax-CNX module: m48571 1 Java4570: Session Tracking using Cookies * R.G. (Dick) Baldwin This work is produced by OpenStax-CNX and licensed under the Creative Commons Attribution License 4.0 Abstract

More information

cwhois Manual Copyright Vibralogix. All rights reserved.

cwhois Manual Copyright Vibralogix. All rights reserved. cwhoistm V2.12 cwhois Manual Copyright 2003-2015 Vibralogix. All rights reserved. This document is provided by Vibralogix for informational purposes only to licensed users of the cwhois product and is

More information

How to structure a web application with the MVC pattern

How to structure a web application with the MVC pattern Objectives Chapter 2 How to structure a web application with the MVC pattern Knowledge 1. Describe the Model 1 pattern. 2. Describe the Model 2 (MVC) pattern 3. Explain how the MVC pattern can improve

More information

J2EE Web Application Development

J2EE Web Application Development Thinking Machines J2EE Application Programming Page 1 J2EE Web Application Development This is the kind of work that most of you will get, when it comes to Indian Service Industry I will try to take you

More information

COMS 359: Interactive Media

COMS 359: Interactive Media COMS 359: Interactive Media Agenda Project #3 Review Forms (con t) CGI Validation Design Preview Project #3 report Who is your client? What is the project? Project Three action= http://...cgi method=

More information

Database Systems Lab. 11. JSP I 충남대학교컴퓨터공학과 데이타베이스시스템연구실

Database Systems Lab. 11. JSP I 충남대학교컴퓨터공학과 데이타베이스시스템연구실 데이타베이스시스템연구실 Database Systems Lab. 11. JSP I 충남대학교컴퓨터공학과 데이타베이스시스템연구실 Overview http://www.tutorialspoint.com/jsp/index.htm What is JavaServer Pages? JavaServer Pages (JSP) is a server-side programming

More information

Advanced Internet Technology Lab # 4 Servlets

Advanced Internet Technology Lab # 4 Servlets Faculty of Engineering Computer Engineering Department Islamic University of Gaza 2011 Advanced Internet Technology Lab # 4 Servlets Eng. Doaa Abu Jabal Advanced Internet Technology Lab # 4 Servlets Objective:

More information

Handling Cookies. Agenda

Handling Cookies. Agenda Handling Cookies 1 Agenda Understanding the benefits and drawbacks of cookies Sending outgoing cookies Receiving incoming cookies Tracking repeat visitors Specifying cookie attributes Differentiating between

More information

3. The pool should be added now. You can start Weblogic server and see if there s any error message.

3. The pool should be added now. You can start Weblogic server and see if there s any error message. CS 342 Software Engineering Lab: Weblogic server (w/ database pools) setup, Servlet, XMLC warming up Professor: David Wolber (wolber@usfca.edu), TA: Samson Yingfeng Su (ysu@cs.usfca.edu) Setup Weblogic

More information

Creating a Web Page with HTML

Creating a Web Page with HTML CT1501 DEVELOPMENT OF INTERNET APPLICATION Creating a Web Page with HTML Prepared By: Huda Alsuwailem Reviewed by: Rehab Alfallaj www.faculty.ksu.edu.sa/rehab-alfallaj ralfallaj@ksu.edu.sa Tables

More information

blink.html 1/1 lectures/6/src/ form.html 1/1 lectures/6/src/

blink.html 1/1 lectures/6/src/ form.html 1/1 lectures/6/src/ blink.html 1/1 3: blink.html 5: David J. Malan Computer Science E-75 7: Harvard Extension School 8: 9: --> 11:

More information

CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB

CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB Unit 8 HTML Forms and Basic CGI Slides based on course material SFU Icons their respective owners 1 Learning Objectives In this unit you will

More information

Session 10. Form Dataset. Lecture Objectives

Session 10. Form Dataset. Lecture Objectives Session 10 Form Dataset Lecture Objectives Understand the relationship between HTML form elements and parameters that are passed to the servlet, particularly the form dataset 2 10/1/2018 1 Example Form

More information

HTML. Asst. Prof. Dr. Kanda Runapongsa Saikaew Department of Computer Engineering Khon Kaen University

HTML. Asst. Prof. Dr. Kanda Runapongsa Saikaew Department of Computer Engineering Khon Kaen University HTML Asst. Prof. Dr. Kanda Runapongsa Saikaew (krunapon@kku.ac.th) Department of Computer Engineering Khon Kaen University 1 What is an HTML File? HTML stands for Hyper Text Markup Language An HTML file

More information

XmlEngine user s manual

XmlEngine user s manual XmlEngine user s manual 7 th April 2006 Revision 1.0 Visit us at www.openbravo.com Table of Contents I.Introduction... 3 II.Requirements... 4 III.License... 5 IV.Installation... 6 V.System overview...

More information