HJÆÆÆÆÆLP Java . er totalt newbie
usingjsp/Butik/_0002fusingjsp_0002fButik_0002fSoegPaeVarer_0002ejspSoegPaeVarer_jsp_0.java [128:1] cannot resolve symbolsymbol : class Spedition
location: class usingjsp.Butik._0002fusingjsp_0002fButik_0002fSoegPaeVarer_0002ejspSoegPaeVarer_jsp_0
Spedition prQuery = new Spedition();
^
usingjsp/Butik/_0002fusingjsp_0002fButik_0002fSoegPaeVarer_0002ejspSoegPaeVarer_jsp_0.java [128:1] cannot resolve symbol
symbol : class Spedition
location: class usingjsp.Butik._0002fusingjsp_0002fButik_0002fSoegPaeVarer_0002ejspSoegPaeVarer_jsp_0
Spedition prQuery = new Spedition();
^
usingjsp/Butik/_0002fusingjsp_0002fButik_0002fSoegPaeVarer_0002ejspSoegPaeVarer_jsp_0.java [159:1] cannot resolve symbol
symbol : class Spedition
location: class usingjsp.Butik._0002fusingjsp_0002fButik_0002fSoegPaeVarer_0002ejspSoegPaeVarer_jsp_0
Spedition spe = (Spedition) e.nextElement();
^
usingjsp/Butik/_0002fusingjsp_0002fButik_0002fSoegPaeVarer_0002ejspSoegPaeVarer_jsp_0.java [159:1] cannot resolve symbol
symbol : class Spedition
location: class usingjsp.Butik._0002fusingjsp_0002fButik_0002fSoegPaeVarer_0002ejspSoegPaeVarer_jsp_0
Spedition spe = (Spedition) e.nextElement();
^
usingjsp/Butik/_0002fusingjsp_0002fButik_0002fSoegPaeVarer_0002ejspSoegPaeVarer_jsp_0.java [221:1] cannot resolve symbol
symbol : variable devs
location: class usingjsp.Butik._0002fusingjsp_0002fButik_0002fSoegPaeVarer_0002ejspSoegPaeVarer_jsp_0
Enumeration de = devs.elements();
^
5 errors
Errors compiling SoegPaeVarer.
jeg har disse fejlmeddelelser nu har jeg gloet på dem i timevis vær sød at HJÆÆÆLP mig
<%@page language ="java" import="usingjsp.Butik.*,java.util.*"%>
<%@page import="usingjsp.*,java.sql.*,java.text.*"%>
<html>
<head><title>Web wheels</title></head>
<body bgcolor='#ffffff' >
<%@include file="CheckLoggedIn.jsp" %>
<%
Connection conn = null;
IConnectionPool pool =
(IConnectionPool) application.getAttribute("connectionPool");
try
{
conn = pool.getConnection();
Spedition prQuery = new Spedition();
Vector v = prQuery.executeQuery(conn,
"select distinct "+prQuery.getFieldList("indkoebst")+
", indkoebst_Spedition.Spedition_id as spdid" +
" from indkoebst, indkoebst_Spedition " +
" where indkoebst.Spedition_id = "+
" indkoebst_Spedition.Spedition_id and "+
" indkoebst_Spedition.Brugernavn='"+Brugernavn+"'");
%>
<h1>Varer Tilhørende <%=Brugernavn%></h1>
<table border='4'>
<tr><th>Navn<th><th>Adresse1<th>City<th><th>State<th><th>Country<th><th>PostalCode<th><th>Email
<%
VarerTilSpedition vtsQuery = new VarerTilSpedition();
Enumeration e = v.elements();
while (e.hasMoreElements())
{
Spedition spe = (Spedition) e.nextElement();
%>
<table>
<tr><td><%=spe.Navn%><td><%=spe.Adresse1%><td><%=spe.Adresse2%><td></td><%=spe.City%>
<td><%=spe.State%><td><%=spe.Country%>
<td><%=spe.PostalCode%><td><%=spe.Email%><td>
<%
Vector brg = vtsQuery.getAll(conn,"Spedition_id="+spe.Spedition_id);
Enumeration de = devs.elements();
boolean first = true;
while (de.hasMoreElements())
{
VarerTilSpedition vts = (VarerTilSpedition) de.nextElement();
if (!first) out.print(",");
first = false;
out.print(vts.Brugernavn);
}
%>
<td><a href='EditVarer.jsp?Spedition_id=<%=spe.Spedition_id%>'>TilFoej</a>
<%
}
}
finally
{
try
{
pool.releaseConnection(conn);
}catch (Exception ignore) {}
}
%>
</table>
<p>
<a href='MuligeFunktíonerJSP.jsp'>Tilbage til Hovedmenu</a>
</body>
</html>
her er koden..
