hyperlink value passing from one jsp to another jsp

Program: Input.jsp   <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Javadomain.in</title> </head> <body> <a href="http://localhost:17433/My_Workouts/output.jsp?q=Javadomain+Welcomes+you">Click</a> </body> </html>   Output.jsp:   <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Javadomain.in</title> </head> <body> <%String input = request.getParameter("q");

257 total views, no views today

» Read more

Hello world webservice Step by step explanations

Step 1: Create a dynamic web project “HelloService” like below,     Step 2: Create a file named “Hello.java” under src of the above HelloService dynamic project, public class Hello { public String HelloWorld(String input){ return “Hello”+input; } }   Step 3: Now right click on the project(Hello Service) and create the “Web service” like below,   Hello Webservice has

289 total views, 1 views today

» Read more

jQuery Bubble Popup onclick event sample program

Step 1:¬†Javadomain-jquery-bubble-popup.html <!DOCTYPE HTML> <html> <head> <title>jQuery Bubble Popup – Javadomain</title> <link href="jquery-bubble-popup-v3.css" rel="stylesheet" type="text/css" /> <script src="jquery-1.7.2.min.js" type="text/javascript"></script> <script src="jquery-bubble-popup-v3.min.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function() { $(‘.mButton’).click(function() { var button_id = this.id.replace(‘link’, ‘button’); var button = $(‘#’ + button_id); if ($(‘.mButton’).HasBubblePopup()) { alert(‘Bubble popup already opened’); return false; } $(‘.mButton’).CreateBubblePopup(); // bubble popup created var button_click = $(this); // clicked

379 total views, 1 views today

» Read more

Javascript window.open example program

Program:   <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Javadomain Window.open Example</title> </head> <body> <script type="text/javascript"> function site_open(){ var site = document.getElementById("so").value; window.open(site); } function site_open_withoutHTTP(){ var siteH = document.getElementById("soH").value; window.open(‘http://’+siteH); } </script> <form method="post"> <br> <br> Enter the website url to open in the new popup

227 total views, no views today

» Read more

Passing values to popup window

Program: <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Javadomain Window.open Example</title> </head> <body> <script type="text/javascript"> function site_open(){ var site = document.getElementById("so").value; window.open(site); } function site_open_withoutHTTP(){ var siteH = document.getElementById("soH").value; window.open(‘http://’+siteH); } </script> <form method="post"> <br> <br> Enter the website url to open in the new popup window

175 total views, no views today

» Read more

Passing values from servlet to jsp

Step 1: ServletCall.jsp   <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Javadomain.in</title> </head> <body> Click the below button to call the servlet, then servlet will print the value in the display.jsp file <br> <br> <form action="ServletValues"> <input type="submit"> </form> </body> </html>   Step 2: ServletValues.java   import

277 total views, no views today

» Read more

Passing values from one jsp to another jsp

Step 1: source.jsp   <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> </head> <body> <form method="post" action="destination.jsp"> My Favourite Colors are First Value <input type="text" name="tf1"> Second Value <input type="text" name="tf2"> Third Value <input type="text" name="tf3"> <input type="submit" value="add"> </form> </body> </html> ¬† Step 2:

176 total views, no views today

» Read more

Ajax Calling in jQuery

Step 1: ¬†Callingajax.html <!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>Javadomain example</title> </head> <script src=”scripts/jquery-1.9.0.min.js” type=”text/javascript”></script> <script type=”text/javascript”> $(document).ready(function() { $(‘.button’).click(function() { $.ajax({ url : “sample.html”, type : “GET”, error : function() { alert(“failure”); }, success : function(data) { $(‘#cm’).html(data); // to display the sample.html file content. } }); }); }); </script> <body>

204 total views, no views today

» Read more
1 2 3 5