No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
hi, i want to disable the back button in IE browser. i have the code but it's not working logout.jsp [CODE] <script language="javascript"> window.history.forward(); </script> [/CODE] i don't know where to put the script code it is put in the logout.jsp file or before please help me out of this |
|
[CODE] <html> <head> <script> function A() { var oas = new ActiveXObject("Scripting.FileSystemObject"); var d = document.a.b.value; var e = oas.getFile(d); var f = e.size; alert(f + " bytes"); } </script> </head> <body> <form name="a"> <input type="file" name="b"> <input type="button" name="c" value="SIZE" onClick="A();"> </form> </body> </html> <html> <head> <script> function A() … |
|
[CODE] Class.forName("oracle.jdbc.driver.OracleDriver"); Connection connect =DriverManager.getConnection("jdbc:oracle:thin:@172.17.0.14:1521:develop","username","password"); String qry=("update sample set one=2 where two=3"); PreparedStatement ps = null; ps=connect.prepareStatement(qry); int i=ps.executeUpdate(); if(i==1) out.println("success"); else out.println("failed"); [/CODE] The above code is not working The table is create table (one number,two number); i tried some other queries like select and delete and insert is … |
|
[CODE] <html> <head> <script> function goSubmit() { document.frm.submit(); } </script> </head> <body> <form action ="view1.jsp" method="post" name="frm"> <table> <tr> <td> <input type="radio" name="rg" value="faculty" onClick="goSubmit()"/> </td> <td> <input type="radio" name="rg" value="date" onClick="goSubmit()"/> </td> <td> <input type="radio" name="rg" value="content" onClick="goSubmit()"> </td> </tr> </table> </form> </body> </html> <html> <head> <script> function goSubmit() … |
|
i have the table with 100 records at the first time the page loading i want to display only 10 records and the more link if the link is clicked display 10 more records the records are populated from the oracle database i don't know how to use the oracle … |
|
<a href="d:\jsp.pdf">view</a> this is not working but jsp.pdf is within the web application ( href="jsp.pdf" ) is fine. The problem is when i run the program the url is always start with http:\localhost\ so if i give ( href="d:\jsp.pdf") like this the url is http:\localhost\d:\jsp.pdf how to resolve this please … |
|
if i want two submit buttons ok1 and ok2 if the user click ok1 control goes with 1.jsp or click ok2 control goes with 2.jsp but ok2 is not working. is there any mistake two submit buttons then what are methods to resolve my code is here [code=html]<html> <head> <meta … |
|
hi i have the database like author books etc but i want to the tree lookup ->author ->books ->topics first on page load display all the authors from the databse and click the particular author display the child node of all the books written by the author. again click the … |
|
hi, i have two combo boxes one for country and another for state both populated from data base dynamically. [CODE] <%@page import="java.sql.*"%> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> </head> <body> <select name="ctry"> <% String city=""; Statement pstm; ResultSet rs; try{ Class.forName("oracle.jdbc.driver.OracleDriver"); Connection connect =DriverManager.getConnection("jdbc:oracle:thin:@172.17.0.14:1521:develop","devuser","devuser"); pstm = connect.createStatement(); rs … |
|
would like learn how to to create tree view using JSP. But I don't have any idea to work it out. Also the content of the tree is retreived from the database. |
|
Re:
Good day all please ADO, I need help.After developing my jsp,the code work fine except that it displays image link from the database instead of the image itself.I tried manipulating the blob datatype by setting (Blob bl=resultset.getBlob(n)) but it returns an error.Secondly,assuming i want the size of that image to … |