java - JSP compiled but now has several errors? -


I have a JSP and a sort project - on github -. This code has been compiled properly at least on my old computer when I imported it into my new computer, shows me strange compilation errors. I will show you some codes and errors Please help me improve it.

  & lt;% @ taglib prefix = "c" yuris = "http://java.sun.com/jsp/jstl/core"% & gt; & Lt;% @ taglib prefix = "sql" uri = "http://java.sun.com/jsp/jstl/sql"% & gt; & Lt;% @ page language = "java" pageEncoding = "ISO-8859-1"% & gt; & Lt ;! DOCTYPE HTML PUBLIC "- // W3C // DTD HTML 4.01 Transcription // N" "http://www.w3.org/TR/html4/loose.dtd"> & Lt; Html & gt; & Lt; Top & gt; & Lt; Link rel = "stylesheet" type = "text / css" href = "css / affableby.css" & gt; & Lt; Title & gt; The Else Bean & lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Sql: query var = "Categories" data source = "jdbc / affablebean" & gt; Choose from category & lt; / Sql: Query & gt; & Lt; Sql: query var = "selected category" data source = "jdbc / affablebean" & gt; SELECT Name FROM WHERE id =? & Lt; Sql: Ultimate value = "$ {pageContext.request.queryString}" /> & Lt; / SQL: Query & gt; & Lt; Sql: query var = "Category Products" data source = "jdbc / affablebean" & gt; SELECT * product WHERE from category_id =? & Lt; Sql: Ultimate value = "$ {pageContext.request.queryString}" /> & Lt; / SQL: Query & gt; & Lt; Div id = "categoryLeftColumn" & gt; & Lt; C: forEach var = "category" item = "$ {categories.rows}" & gt; & Lt; C: Select & gt; & Lt; C: when test = "$ {class.id == pageContext.request.queryString}" & gt; & Lt; Div class = "categoryButton" id = "selected category" & gt; & Lt; Span class = "categoryText" & gt; $ {Category.name} & lt; / Span & gt; & Lt; / Div & gt; & Lt; / C: When & gt; & Lt; C: otherwise & gt; & Lt; A href = "category? $ {Class.id}" square = "ranking" & gt; & Lt; Div class = "class text" & gt; $ {Class.name} & lt; / Div & gt; & Lt; / A & gt; & Lt; / C: otherwise & gt; & Lt; / C: Select & gt; & Lt; / C: foreach & gt; & Lt; / Div & gt; & Lt; / Body & gt; & Lt; / Html & gt;  

Errors are:

line & lt; Sql: param value = "$ {pageContext.request.queryString}" /> :

  Multiple comments found in this row: - java.io.IOException in a way Can not be solved - no exception of type ServletException can be thrown; An exception type should be a sub-square of the troyball - the method HttpServletRequest type method getQueryString () missing type string - a type of string  

line & lt; Sql: query var = "categoryProducts" data source = "jdbc / affablebean" & gt;

  No exception of type JspException can be thrown; An exception type throws  

line & lt; C: forEach var = "category" item = "$ {categories.rows}" & gt; should be sub-squared

  Several annotations have been found in this line: - java.util.Map can not be sorted in any way  

this error by this error method getQueryString () missing the type string with HttpServletRequest type without GetQueryString () refers to. This is an indication that it can be a problem with the default JR of the project (if you are doing Java Enterprise Projects Jade in Tave.)

In Eclipse, your project> right-click> Order and Export tab in the JRE System Library should have a red cross and the status should be unbound. Default JR or JDK will have to be modified / corrected.

Remove all the old Jers or JDKs and one JDK again in Eclipse, Window> Preferences.> Add> Standard VM> Next> That FO Find Dr where you installed jdk and more.> Finish.

Go back to your project properties. There should be an error next to the JRE system library, select it and then delete it, add library> you add jeere / jdk that you set in the previous step.

Rebuild and clean your project. problem solved.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -