Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

This is a very funny catch !!!!!! how to solve it?

[b][red]This message was edited by hbk_adrian at 2003-9-27 6:22:23[/red][/b][hr]
I found this catch

"Error: org.apache.jasper.JasperException:/prologue.jsp(0,0) Page directive: can't have multiple occurrences of language"


And this is my programme

<%@ page language="java"
contentType="text/vnd.wap.wml"
import="java.sql.* "
session="true" %>
<%! String dbname = "C:\wapd\wapd.mdb"; %>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN"
"http://www.wapforum.org/DTD/wml13.dtd">

<%@ page errorPage="errorPage.jsp"%>


<%
System.out.println("checking");
boolean loginSuccess = false;

String id = request.getParameter("userID");
String pw = request.getParameter("password");

if((id != null) && (pw != null)){
ResultSet rs = null;
Connection con = null;
Statement stmt = null;

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = DriverManager.getConnection("jdbc:odbc:wapd");
stmt = con.createStatement();
rs = stmt.executeQuery("select * from User where userID = '" + id + "' AND password = '" + pw + "'");

loginSuccess = rs.next();

if(loginSuccess){
String uname = rs.getString("name");

session.setAttribute("uname",uname);
}

stmt.close();
con.close();
}
if(loginSuccess){
request.getRequestDispatcher("menu.jsp").forward(request,response);
}
%>






Invalid login
Try again




may i know where went wrong in my code?
and if information about my code is not enought I willing to send my whole project folder for U to preview...



Sign In or Register to comment.