الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

خصأ في الاتصال ممكن بسرعةالرد لاني سوف اسلم المشروع

Featured Replies

بتاريخ:
<%@page language="java" contentType="text/html; charset=windows-1256"%>
<html dir="rtl">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<title>Home Page </title>
<link rel="stylesheet" type = "text/css" href="style\menu.css"></link>
<meta name="Microsoft Theme" content="aftrnoon 1011">
</head>
<body>
<p align="center">
<%
if ((request.getParameter("Submit")) != "" ) {
Connection conn = null;

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn=DriverManager.getConnection("jdbc:odbc:Saleh");
conn=DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)}; DBQ=db\\Saleh.mdb");

%>
<%
Statement stm = null;
ResultSet rs = null;

stm = conn.createStatement();
String query = "SELECT username, password FROM user";
rs = stm.executeQuery(query);
%>
<%
while(rs.next()){
String dbusername = rs.getString("username");
String dbpassword = rs.getString("password");
%>

<%
if(dbusername.equals("username") && dbpassword.equals("password")){


%>



<br><font size="6">Welcome</font><br><br><br><br><br><br><br>
</p>
<form>
<div align="center">
<table border="0" width="40%" id="table1" style="border:2px solid #000080; border-collapse: collapse; padding-left:4px; padding-right:4px; padding-top:1px; padding-bottom:1px" bgcolor="#FFFFFF">
<tr>
<td><span lang="ar-sa">
<font size="4" face="Verdana" color="#000080"> </font><input type="text" name="username" size="20"><font size="4" face="Verdana" color="#000080">   </span>
Username<span lang="ar-sa">  </span> </font></td>
<td> </td>
</tr>
<tr>
<td><span lang="ar-sa">
<font size="4" face="Verdana" color="#000080"> </font><input type="password" name="password" size="20"><font size="4" face="Verdana" color="#000080">  
</span>Password<span lang="ar-sa">   </span> </font></td>
<td> </td>
</tr>
<tr>
<td colspan="2">
<p align="center">
           
<input type="submit" value="register" name="register">  <input type="submit" value="sign" name="login"></td>

</tr>
</table>
</div>
<p> </p>
</form>
<% }
else
response.sendRedirect ("index.jsp");
}}%>

<br><br>
<%
rs.close();
stm.close();
conn.close();
%>
</body>
</html>



وهذا الخطأ


type Informe de Excepción

mensaje

descripción El servidor encontró un error interno () que hizo que no pudiera rellenar este requerimiento.

excepción

org.apache.jasper.JasperException: No se puede compilar la clase para JSP

An error occurred at line: 11 in the jsp file: /saleh/logoff.jsp

Generated servlet error:
[javac] Compiling 1 source file

C:\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\saleh\logoff_jsp.java:52: cannot resolve symbol
symbol : class Connection
location: class org.apache.jsp.saleh.logoff_jsp
Connection conn = null;
^



An error occurred at line: 11 in the jsp file: /saleh/logoff.jsp

Generated servlet error:
C:\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\saleh\logoff_jsp.java:55: cannot resolve symbol
symbol : variable DriverManager
location: class org.apache.jsp.saleh.logoff_jsp



An error occurred at line: 11 in the jsp file: /saleh/logoff.jsp

Generated servlet error:
conn=DriverManager.getConnection("jdbc:odbc:Saleh");
^



An error occurred at line: 11 in the jsp file: /saleh/logoff.jsp

Generated servlet error:
C:\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\saleh\logoff_jsp.java:56: cannot resolve symbol
symbol : variable DriverManager
location: class org.apache.jsp.saleh.logoff_jsp



An error occurred at line: 11 in the jsp file: /saleh/logoff.jsp

Generated servlet error:
conn=DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)}; DBQ=db\\Saleh.mdb");
^



An error occurred at line: 20 in the jsp file: /saleh/logoff.jsp

Generated servlet error:
C:\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\saleh\logoff_jsp.java:62: cannot resolve symbol
symbol : class Statement
location: class org.apache.jsp.saleh.logoff_jsp
Statement stm = null;
^



An error occurred at line: 20 in the jsp file: /saleh/logoff.jsp

Generated servlet error:
C:\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\saleh\logoff_jsp.java:63: cannot resolve symbol
symbol : class ResultSet
location: class org.apache.jsp.saleh.logoff_jsp
ResultSet rs = null;
^



An error occurred at line: 76 in the jsp file: /saleh/logoff.jsp

Generated servlet error:
C:\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\saleh\logoff_jsp.java:123: cannot resolve symbol
symbol : variable rs
location: class org.apache.jsp.saleh.logoff_jsp
rs.close();
^



An error occurred at line: 76 in the jsp file: /saleh/logoff.jsp

Generated servlet error:
C:\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\saleh\logoff_jsp.java:124: cannot resolve symbol
symbol : variable stm
location: class org.apache.jsp.saleh.logoff_jsp
stm.close();
^



An error occurred at line: 76 in the jsp file: /saleh/logoff.jsp

Generated servlet error:
C:\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\saleh\logoff_jsp.java:125: cannot resolve symbol
symbol : variable conn
location: class org.apache.jsp.saleh.logoff_jsp
conn.close();
^
8 errors


org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:127)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:351)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:552)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)






ممكن شرح الحل لاني مبتدى مثال لو كانت المشكلة في الربط ماهو الحل لكي نعرف ونفهم

وشكرا معليش طلباتي كثيرة

تم تعديل بواسطة BBBB

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.