Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

weird error log  RSS feed

Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
gud evening guys, um, i had a jsp code written like this...
<%@ page language="java" import="*, java.util.*, java.lang.*, java.sql.*" %>
<%@ page language="java" import="acts.*"%>
System.out.println("display artifact");
String InputString = request.getParameter("InputString");
String IDacquired = request.getParameter("IDtransfer");
long IDtransfer = Long.parseLong(IDacquired);
long[] ArrayOfID = null;
int IDcounter = 0;
ACTSDatabase DB = new ACTSDatabase();
ACTSUser user = new ACTSUser(DB);
ArtifactText Data = new ArtifactText(user,DB);
ACTSExplorer tc = new ACTSExplorer();
ArtifactContainer Show = new ArtifactContainer(user,DB);
Show = tc.AccessArtifacts();
public void DisplayArtifact(JspWriter out) throws IOException


<title>View Files for the <%= request.getParameter("NameTransfer") %>Artifact</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<body bgcolor="#f4f4f4" leftmargin="10" topmargin="10" marginwidth="0" marginheight="0">
<p><font color="#003300" face="Arial, Helvetica, sans-serif">Artifact</font> </p>
<table width="50%" border="1" align="center" bordercolor="#006600">
whenever i tested this a browser the error show this line...
500 Servlet Exception
Note: has been deprecated.
/DisplayArtifact.jsp:40: '}' expected.
pageContext.write(_jsp_string0, 0, _jsp_string0.length);
/DisplayArtifact.jsp:28: Statement expected.
public void DisplayArtifact(JspWriter out) throws IOException
/DisplayArtifact.jsp:39: Identifier expected.
pageContext.write(_jsp_string2, 0, _jsp_string2.length);
3 errors, 1 warning
for some reason the error is found in 'public void DisplayArtifact(JspWriter out) throws IOException
}' in which i didn't even put anything inside yet..
could you help me out on this one guys....
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!