First.java: import java.io.IOException; import java.io.PrintWriter; import javax.servlet.RequestDispatcher; import javax.servlet.Servlet...
Read More
Practical 17: Write a program to demonstrate use of DataGramSocket and DataGram Packet
1) Write a program using DatagramPacket and DatagramSocket to create chat application Ans: ServerSideData.java: import java.net.*; impo...
Read More
Practical 4: Write a program to create a two-level card deck that allows the user to select component of Panel using CardLayout
import java.awt.*; import java.awt.event.*; import javax.swing.JFrame; import javax.swing.*; public class CardLayoutDemo extends JF...
Read More
Write a JavaScript Program that identifies a running browser
Program: <!DOCTYPE html> <html> <script> document.writeln("<pre>"); document.writel...
Read More
17 Create a JavaScript code to create Frame. Frame1 will take input as number and result will be Fibonacci series of that number, result will be display on Frame 2 i.e. elements of frame1 is accessed by frame2.
Program: Frameset.html : <html> <frameset cols="40%,60%"> <frame src="./accept.html" name=...
Read More
26 Create JavaScript. Program for creating overloaded method called 'Add ' to calculate the sum of two integers, two float numbers, one integer and one float.
Program: <html> <script> function add(a , b ) { var sum = a+b; alert(...
Read More
15 Create a JavaScript to change the image and its description on window using Rollover
Program: <html> <head> <script> function display() { document.getElementById("image...
Read More
25 Create a JavaScript make use of 'Radio Button' and 'Checkbox Button' to select 'Favorite Fruits' 'Favorite Color' , Also make use of button to confirm the input and display which 'Radio' and 'Checkbox button' is selected.
Program: <html> <body> <form id="form"> <input type="radio" id="...
Read More
24 Create a JavaScript using Mouse Event such that when mouse pointer is on button background image will be changed.
Program: <html> <head> <script> function clickEvent() { document.getElementById("img").src ...
Read More
23 Create a JavaScript to show Key Events and specific which event has been occurred.
Program: <html> <body> <form name="f1"> <input type="button" name="key...
Read More
22 Create a JavaScript program for moving car using 2 button 'START' and 'STOP'
Program: <html> <head> <script> var obj = null; var a ; function i...
Read More
21 Create a JavaScript program for Rotating Images using setTimeout() method. Rotate images after 1 sec.
Program: <html> <head> <script> var i , imgs , pic ; function init() ...
Read More
20 Create a JavaScript program to create webpage with 'Bio-data' and after clicking on 'View Bio-data', it will display a New Window with 'Bio-Data'.
Program: <html> <body> <center> View Bio Data : <br><br><input type="button...
Read More
19 Create a JavaScript program to create webpage with field 'User Name', 'Password' and 'Submit' button in New Window.
Program: <html> <script> var win = window.open("","","400,400"); with(win....
Read More
18 Develop a JavaScript program Creating and Reading of Cookies, After creating also delete the Cookies. Make use button.
Program: <html> <head> <title>Cookies</title> <script> function create(...
Read More
16 Create Employee Registration form also apply validation on required filled such as Mobile Number and submit it. After submitting the form, filled information will be displayed on that newly created child window.
Program: <html> <head> <script> function Sub() ...
Read More
14 Develop a JavaScript to link all the images in Banner to URLs
Program: <!DOCTYPE html> <html> <head> <script type='text/JavaScript'> Banners...
Read More
13 Develop a JavaScript to create a Slide Show.( At least 3 Slide)
Program: <html> <head> <script> var img_array = new Array('./submit.jpg','./reset.jpg',...
Read More
12 Develop a JavaScript to create the dynamically changing Menu. Take two Menu Class and Subject. If SYCO is selected then is will show subjects of SYCO only.
Program: <!DOCTYPE html> <html> <head> <script type='text/JavaScript'> syco ...
Read More
11 Develop JavaScript program with HTML to create Pull-Down menu with three option[Google, MSBTE, Yahoo].Once the user will select the one of the options then user will redirected to that site.
Program: <!DOCTYPE html> <html> <head> <script type='text/JavaScript'> functi...
Read More
10 Develop a webpage using Intrinsic Java Function and also make use of its properties
Program: <!DOCTYPE html> <html> <head> <style> img{ width:50px; ...
Read More
9 Develop a webpage for validation of form fields using regular expressions. It should also display information about Password Strength is "Weak", "Medium", "Strong"
Program: <!DOCTYPE html> <html> <head> <script type='text/JavaScript'> functi...
Read More
8 Create Form that collects the first name, last name, email, user id, password and confirms password from the user. All the inputs are mandatory and email address entered should be in correct format. Also, the values entered in the password and confirm password textboxes should be the same. After validating using JavaScript, In output display proper error messages in red color just next to the textbox where there is an error.
Program: <!DOCTYPE html> <html> <head> <script type='text/JavaScript'> ...
Read More
7 Create a webpage to implement Form Events. Part-II
Program: <!DOCTYPE html> <html> <head> <script type='text/JavaScript'> func...
Read More
6 Create a webpage to implement Form Events. Part-I
Program: <!DOCTYPE html> <html> <head> <script type='text/JavaScript'> fu...
Read More
5 Create a web-page using Form Elements and validate using JavaScript
Program: <!DOCTYPE html> <html> <head> <style> </style> <scr...
Read More
4 Develop JavaScript to implement functions.
Program: <!DOCTYPE html> <html> <head> <script> function factorial(num) ...
Read More
3 Develop JavaScript to implement Array functionalities.
Program: <!DOCTYPE html> <html> <head> <script type='text/JavaScript'> ...
Read More
2 Develop JavaScript to use decision making and looping statements
Program: <!DOCTYPE html> <html> <body> <center> <h1> Printing Odd Number from 1...
Read More
1 Develop JavaScript program with HTML for performing arithmetic operation by taking input from user.
Program: <html> <head> <script type="text/JavaScript"> var a = Number(prompt(...
Read More
Practical 22: Write a Servlet program to send username and password using HTML forms and authenticate the user
MySrv.java: import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.http.Http...
Read More
Practical 21: Write a program to demonstrate the use of HttpServlet as a parameterized Servlet
1) Develop servlet program to print Hello MSBTE in browser window. Program: import javax.servlet.http.HttpServlet; import javax.servlet....
Read More
Subscribe to:
Posts (Atom)