eclipse - java ee jspf taglib -
I have my base. Jspf is placed in the web-enf / jsp / folder with the following content:
& lt;% @ taglib prefix = "c" uri = "http: //java.sun. Com / jsp / jstl / core "%> & Lt;% @ taglib prefix = "Fn" yurry = "http://java.sun.com/jsp/jstl/functions"% & gt; And I also define WEB-INF / web.xml with the following content:
& lt ;? Xml version = "1.0" encoding = "UTF-8" & gt; & Lt; Web-app xmlns = "http://xmlns.jcp.org/xml/ns/javaee" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" XSI: Schema Location = "Http : //xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd "version =" 3.1 "& gt; & Lt; Display-name & gt; Address Book Application & lt; / Display-name & gt; & Lt; Jsp-config & gt; & Lt; Jsp-asset-group & gt; & Lt; URL pattern & gt; * Jsp. & Lt; / Url pattern & gt; & Lt; URL pattern & gt; * Jspf & Lt; / Url pattern & gt; & Lt; Page encoding & gt; UTF-8 & lt; / Page encoding & gt; & Lt; Script-invalid & gt; False & lt; / Script-invalid & gt; & Lt; Incorporation & gt; /WEB-INF/jsp/base.jspf< / Included-prelude & gt; & Lt; Trim-instructions-whitespace & gt; True & lt; / Trim-instructions-whitespace & gt; & Lt; Default-content type & gt; Text / html & lt; / Default-content type & gt; & Lt; / Jsp-asset-group & gt; & Lt; / Jsp-config & gt; & Lt; / Web application & gt; But when I reach the taglib in various jsp files, then I always give the error that it does not understand C or FN. I am using Eclipse Luna as my IDE with Java SE8. Can i fix it
Thank you.
I find the same syntax-investigation complaints eclipse luna (and in the same situation, i.e. nick Williams, through the examples of that excellent book) ... does not ... "you change the assumption settings in this way" - ninety, and I have a clever-mozzes total answer, but I have used so far Those who work:
1a - your JSP override any JSP f Configure the deployment descriptors by adding a line of code for the ; <@> file = "/ WEB-INF / jsp / base .jspf"% & Gt; This problem solves only the downside is that if you potentially add an extra line of code for a lot of JSP files ... though I think that you are new JSP can define the template, which includes the line, uh, it contains :)
1B - Even more manual workarounds: usually show a quick look at syntax-complaints That is not yet imported Or or include Apdaniy jsp file - so you have been treated as a kind of template-store the missing lines related to this case can be copied only Adhar.aspif I Jespif itself. But to ensure that this is not a very beautiful way of working on my part.
If I have any more knowledgeable then I get better solutions, pls expose us to the above solutions only: they will enable you to solve the problem for N Running your project code. Are there.
Comments
Post a Comment