sanidhya kumar

Greenhorn
+ Follow
since Sep 05, 2012
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by sanidhya kumar

Whenver i click update button(at line 11), the url rewriting shows null on url. I am not able to get the value of deptid in idey(idey also shows null)
8 years ago
JSP
JSTL how to pass value of id in sql param?
8 years ago
JSP
This is what i am trying. what changes shall i make here to search and delete a specific file ?

8 years ago
This is what i have tried.... i have added the jRegistryKey.jar & dll file in my project.
After i compile this it throws ca.beq.util.win32.registry.Win32Exception: Access is denied.
also tell me how to add value to dword registry?
8 years ago
Whenever i am pressing delete button with two function calls, only one deleteRow() function get executed. But if i use only one deleteme() function on the button click it works fine. Whereas i want to use both the function.

Yeah, problem got resolved.

8 years ago
JSP
Please see the line number 40, it is not getting executed
8 years ago
JSP

sanidhya kumar wrote:

sanidhya kumar wrote:
the message in else statement is getting printed as the page loads,
but it should have been printed only if user name and password is wrong.
please see line no 64

8 years ago
JSP

sanidhya kumar wrote:
the message in else statement is getting printed as the page loads,
but it should have been printed only if user name and password is wrong.

8 years ago
JSP
8 years ago
JSP
8 years ago
JSP
This is what i am trying, i have created a database in mysql, i have connected it using jsp, and now i want it to display below my auto complete search box


8 years ago
JSP
This is what i am trying, i have created a database in mysql, i have connected it using jsp, and now i want it to display below my auto complete search box

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ page import="java.sql.*" %>
<!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=UTF-8">
<title>JSP Page</title>

<link rel="stylesheet" href="http://code.jquery.com/ui/1.8.23/themes/base/jquery-ui.css" type="text/css" media="all" />
<link rel="stylesheet" href="http://static.jquery.com/ui/css/demo-docs-theme/ui.theme.css" type="text/css" media="all" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js" type="text/javascript"></script>
<script src="http://code.jquery.com/ui/1.8.23/jquery-ui.min.js" type="text/javascript"></script>

</head>
<body>


<% try {

Class.forName("com.mysql.jdbc.Driver").newInstance();
Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3308/usertable","root","");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select name from userinfo");
%>
<% while(rs.next()){%>

<script type="text/javascript">

$(function() {
var availableTags=new Array(<%rs.getString(1);%>);


$( "#tags" ).autocomplete({
source: availableTags
});
});
</script>


<%}%>


<div class="demo">

<div class="ui-widget">
<label for="tags">Tags: </label>
<input id="tags">
</div>

</div>

<%}

catch(Exception ex){
out.println(ex);
}
%>
</body>
</html>
8 years ago
JSP
finally... got d temporary solution....... project is resolved..thanks all for yoursupport..
what i did is... i used a java script and related it with the table i wanted to sort..


<%--
Document : index
Created on : Sep 4, 2012, 4:55:31 PM
Author : Sanidhya09
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">


<%@ page import="java.sql.*" %>
<%@ page import="java.io.*" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title> Page For List Sorting</title>
</head>
<body>
<%
try {
String connectionURL = "jdbc:mysql://localhost:3308/sanidhya09";
Connection connection = null;
Statement statement = null;
ResultSet rs = null;

Class.forName("com.mysql.jdbc.Driver");
connection = DriverManager.getConnection(connectionURL,"root","");
if(!connection.isClosed())
%>

<font size="+3" color="green">

<%
out.println("Successfully connected to " + "MySQL");
statement = connection.createStatement();
rs = statement.executeQuery("SELECT * from details");
%>

<script type="text/javascript" src="gs_sortable.1.7.js"></script>
<script type="text/javascript">
<!--
var TSort_Data = new Array ('my_table', 'i','s','s');

//tsRegister();
// -->
</script>

<TABLE id="my_table" cellpadding="15" border="1" style="background-color: #ffffcc;" >
<thead>
<%--<a href="#" OnClick=" return <%rs = statement.executeQuery("SELECT * from details order by id, name, address desc;");%>"</a>--%>
<th style="cursor: pointer;"><a href="" onclick="tsDraw(0,'my_table'); return false">ID</a></th>
<%--<%String string = response.encodeURL("");%>--%>

<th style="cursor: pointer;"><a href="" onclick="tsDraw(1,'my_table'); return false">NAME</a></th>
<th style="cursor: pointer;"><a href="" onclick="tsDraw(1,'my_table'); return false">ADDRESS</a></th>
</thead>
<%
while (rs.next()) {
%>

<TR>
<TD><%=rs.getInt(1)%></TD>
<TD><%=rs.getString(2)%></TD>
<TD><%=rs.getString(3)%></TD>

</TR>
<% } %></TABLE>
<%
rs.close();
statement.close();
connection.close();
}

catch(Exception ex){
%>

</font>

<font size="+3" color="red">
<%
out.println("Unable to connect to database" + ex);
}%>
</font>

</body>
</html>
8 years ago
JSP

sanidhya kumar wrote:check this link, it is written in java servelets. but i want this same code in jsp........please please help all.....

http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=3652&lngWId=14




have to submit my assignment by tomorrow........
8 years ago
JSP