JavaScript : Pass parameters/variables values between jsp/Html Files as Global variables using localStorage,setitem / localStorage,getitem write function as below in one jsp/html file function passvalues() { var fname=document.getElementById("txt").value; localStorage.setItem("textvalue",fname); var fyear = document.getElementById("txt1").value; localStorage.setItem("text_value",fyear); var valdisp = fname +' '+fyear; localStorage.setItem("txtval",valdisp);; return false } </script> txt & txt1 are input type text fields whose values are passed,next call href tag to pass functions and file name as follows <a onclick="passvalues();" href="student_fee.jsp">Fee Process</a> <td><h3><span id = "result"></span></h3>;</td> <td><h3>Year :<span id = "result1"></span></h3></td> ...
Posts
Showing posts from October, 2022
- Get link
- X
- Other Apps
In order to develop online application one needs to configure/install following software 1.) Frontend Designer/tools like Java swing,Html,css,JSP,React js(Javascript library) etc.. 2.) Backend Database like Mysql,Oracle or any sql based database. 3.) Webserver for testing application like Tomcat,Glassfish & its configurations setting.. 4.) Reporting Tools like Jasper Report(Jaspersoft studio),Crystal Reportwirter etc.. 5.) Integrated Development Environment (IDE) like Eclipse,Visual Studio code,Netbeans.IntelliJ etc.. A lot more libraries needed while developing application.. A few online resources can be very helpful to sort out problems like w3schools, Javatutorial, Youtube videos,stackoverflow forum and many more... Online educational videos from Edureka,courses from Udemy In my previous post I share useful code & tips to overcome problems while developing applications. In my next post I share jsp code,jasper reports code and Tomcat settings to develop online applicatio...
- Get link
- X
- Other Apps
How to Pass/Print Parameter values in JSP To print parameter values in input text field (value property) first write sql to extract database values and pass to another JSP , following code will be helpful... String RNO = request.getParameter("ReceNo"); receipt no. is database values and store its values RNO string variable. To print its value in JSP form input text field <td><label for="ReceiptNo">Receipt No.:</label></td> <td><input type="text" id = "ReceiptNo" name="ReceiptNo" value="<%=request.getParameter("ReceNo")%>" size="5" /></td> here <td>,<tr> tags in Table defined in jsp. if any difficulty mail me at psanjayy@yahoo.com