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");

92 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

92 total views, no views today

» Read more

[Solved] failed while installing axis2 web services core 1.1

Problem: Solution: Download the Axis 2 Binary Distribution Now go to Eclipse -> Window -> Preferences and add the above downloaded axis 2 binary file like below,   Restart the eclipse and hope you will not get the error.   Thanks for reading this post…………!!! 234 total views, no views today

234 total views, no views today

» Read more

[Solved] axis web services core 1.1 requires dynamic web module with version matching expression ” 2.2,2.3,2.4,3.5″

Root cause: Axis web service is incompatible with the dynamic web module_version.   Solution: Change the dynamic web module version.       Thanks for reading this post…….!!! 227 total views, no views today

227 total views, no 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

110 total views, no 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

58 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

49 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

63 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:

57 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>

76 total views, no views today

» Read more
1 2 3 5