Velke Dakujem uz to ide :)
Příspěvky odeslané z IP adresy 178.41.0.–
zabudol som doplnit :
{
"items" : [
{
ID : "Fazy programu",
type : "Event",
label : "Fazy programu v Aula UKF, Nitra",
link : "http://konferencia.com/20140411",
when_startTime : "2014-04-11T09:00",
when_endTime : "2014-04-11T21:00",
where_label : "Aula UKF, Nitra",
where_address : "Univerzita Konstantina Filozofa v Nitre, Tr. A. Hlinku 1, 94974 Nitra",
where_latlng : "48.30851,18.090652",
},
{
ID : "Pascal",
type : "Event",
label : "Pascal v Aula STU, Bratislava",
link : "http://konferencia.com/20140412",
when_startTime : "2014-04-12T13:00",
when_endTime : "2014-04-12T17:30",
where_label : "Aula STU, Bratislava",
where_address : "Slovenska technicka univerzita v Bratislave, Vazovova 5, 812 43 Bratislava",
where_latlng : "48.151088,17.112917",
},
{
ID : "pgustav",
type : "Person",
meno : "Peter",
priezvisko : "Gustav",
telefon : "0914823123",
email : "p.gustav@ukf.sk",
}
]
}
ahojte skusam rozchodit aplikaciu ktora zobrazuje eventy .... pouzivam framework Exhibit a ako vstupny subor s datami JSON funguje to vsetko v poriadku na zobrazenie eventov lenze by som chcel zobrazit informacie o autorovy a neviem ako to poslat cez jeden JSON file a ani neviem ako nato aby to zobrazilo ....... nestretol sa stym niekto ??
#2 lukber
dakujem za odpoved .........mas pravdu pada to na tom riadku ....... ten import by mal byt v poriadku ... nazov Main je preto lebo predtym to bola main trieda ktora sa spustala samostatne a teraz je to iba samotna trieda hoci zostal nazov "main".
Nejake napady co by este mohlo byt zle ?
podrobny vypis chyby :
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 6 in the jsp file: /SemWEbApp.jsp
Main cannot be resolved to a type
3:
4: <%
5:
6: Main app = new Main();
7: app.vykonaj(request.getParameter("zamest"));
8:
9:
An error occurred at line: 6 in the jsp file: /SemWEbApp.jsp
Main cannot be resolved to a type
3:
4: <%
5:
6: Main app = new Main();
7: app.vykonaj(request.getParameter("zamest"));
8:
9:
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:299)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
ahojte riesim zavolanie triedy zo suboru .jsp ale stale mi vypisuje chybu
"Main cannot be resolved to a type"
uplne na zaciatku je html subor kde je jurcena hodnota "zamest"
<a href="SemWEbApp.jsp?zamest=http://osobneinformacie.com/p.gustav.s115">Lojzo mrkvicka</a><br/>
nasledne to nabehne na dalsiu stranku SemWEbApp.jsp kde mam zadany odkaz na triedu
<%@page contentType="text/html" pageEncoding="UTF-8" import="test_sem.*"
%>
<%
Main app = new Main();
app.vykonaj(request.getParameter("zamest"));
%>
ale tento odkaz mi vyhodi uz hore spomenutu chybu "Main cannot be resolved to a type"
trieda je definovana ako :
public class Main {
/**
* @param args the command line arguments
*/
public void vykonaj(String zamest) throws ClassNotFoundException, IOException {
nejake napady kde by mohla byt chyba ??