Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~2K People Reached
Favorite Forums
Favorite Tags
Member Avatar for insauciant

what is wrong in following code [code] <form name="log" method="post" action="login.htm"> <% try { //Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); //String url="jdbc:odbc:ODVS"; Connection conn=null;//DriverManager.getConnection(url,"downtime","downtime"); Class.forName("oracle.jdbc.driver.OracleDriver"); conn=DriverManager.getConnection("jdbc:oracle:thin:@10.10.10.2:1521:PLMDM","vvv","vvv"); String uid=request.getParameter("username"); String pwd=request.getParameter("password"); String sqlQry=("select * from USR_PASS_TB where username='"+uid+"' and password='"+pwd+"'"); Statement stmt=conn.createStatement(); ResultSet rs=stmt.executeQuery(sqlQry); if(rs.next()==true) { //response.sendRedirect("../HTML/index_group.htm"); %> <jsp:forward page="login_cae.htm" /> <% } else { //response.sendRedirect("..HTML/invalid_login.htm"); …

Member Avatar for peter_budo
0
58
Member Avatar for insauciant

<% try { //Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); //String url="jdbc:odbc:ODVS"; Connection conn=null;//DriverManager.getConnection(url,"downtime","downtime"); Class.forName("oracle.jdbc.driver.OracleDriver"); conn=DriverManager.getConnection("jdbc:oracle:SID:@10.10.10.2:1521:PLMDM","abc","abc"); String uid=request.getParameter("Username"); String pwd=request.getParameter("Password"); String sqlQry=("select * from USR_PASS_TB where Username='"+uid+"' and Password='"+pwd+"'"); Statement stmt=conn.createStatement(); ResultSet rs=stmt.executeQuery(sqlQry); if(rs.next()==true) { //response.sendRedirect("../HTML/index_group.htm"); %> <jsp:forward page="../HTML/index_group.htm" /> <% } else { //response.sendRedirect("..HTML/invalid_login.htm"); %> <jsp:forward page="../HTML/invalid_login.htm" /> <% } rs.close(); conn.close(); } catch(Exception e1) …

Member Avatar for Thirusha
0
83
Member Avatar for insauciant

hey u all code master...plzz help me...i need complete javascript code whichlist all files that are in a folder......is it possibl;e in javascript or not to list the files..... for exam ..in c:\Books\...i have five file...then i need a javascript code which list all the file on a hml page......

Member Avatar for R0bb0b
0
69
Member Avatar for insauciant

<%@page contentType="text/html"%> <%@page import="java.util.*,java.io.*"%> <%! int s; %> <%! int f; %> <% File dir = new File( "D:\\SUMIT GARG\\Excel" ); String[] files = dir.list(); Hashtable hs=new Hashtable(); for(int i=0;i<s.length;i++) { File v1= new File("D:\\SUMIT GARG\\Excel" +s[i]); if(v1.isFile()) { hs.put(f.lastModified(),file); } } Vector v=new Vector(hs.keySet()); Collections.sort(v); if(v.size()>10) v.setSize(10); Iterator it=v.iterator(); …

Member Avatar for Thirusha
0
98
Member Avatar for sandeep soni

can any one tell me how jsp is loaded on to apache tomcard server?????

Member Avatar for jwenting
0
96
Member Avatar for ashish1234

hi, i am new to jsp..i am trying do sort out a pblm.. i have 2 jsp files.. file1.jsp.. which is used to select all the records from a table called staff and display the records in a table..each record is coming with a check boxes which is used for …

Member Avatar for jwenting
0
1K