- This topic has 9 replies, 2 voices, and was last updated 20 years, 2 months ago by Riyad Kalla.
-
AuthorPosts
-
Brokers-onlineMemberI downloaded and installed ME yesterday, the version is 3.8.1 + QF20040825. When I open a jsp page there are yellow warning markers saying that all my custom tags are unknown. In the preview I get lots of stuff like
<% __myeclipse-0__ %> <% __myeclipse-1__ %>
I think its because I import the tag definitions with a
<%@ include file=”taglibs.jsp” %>
I this a problem that can be fixed?
thanks
Riyad KallaMemberBrokers,
That problem *should* have been fixed already… hrrmm.I’m assuming your project is a Web Module Project… what is the setup? project folder, source folder, output folder, webroot folder? Where is the page with the errors located and where is the taglibs.jsp page located?
Brokers-onlineMemberthe layout is
project — src
— web
— WEB-INF
— jsp
— lib
— layoutThe jsp files are under WEB-INF/jsp and /web is of course our web root. The layout directory contains our layout files for tiles. taglibs.jsp is in the jsp directory too. This is a problem with all our jsp files, however, incorrect use of a taglib is picked up and flagged with the correct message.
Riyad KallaMemberCan you show me the contents of the taglibs.jsp file and then the contents of a sample JSP file that imports it and then where the error is what it says?
Brokers-onlineMemberthe taglibs.jsp is just
<%@ taglib uri=”http://jakarta.apache.org/struts/tags-html” prefix=”html” %>
<%@ taglib uri=”http://jakarta.apache.org/struts/tags-bean” prefix=”bean” %>
<%@ taglib uri=”http://jakarta.apache.org/struts/tags-logic” prefix=”logic” %>A typical jsp starts of as
<%@ page language=”java” %>
<%@ include file=”taglibs.jsp” %><logic:present name=”report”>
etc…
Now there is a yellow marker on the right hand side that says “Unknown tag (logic:present)”
Riyad KallaMemberThank you for the details, I tried to recreate your project setup locally and it seems to work fine for me, I have attached a screenshot.
If you see something I missed or would like me to change in my setup please let me know and I will to try and reproduce this issue. Also autocomplete was working for me with the included files as well.
Attachments:
You must be logged in to view attached files.
Brokers-onlineMemberInteresting. I notice there appe4ars to be a yellow warning marker on your right hand gutter too. Is that saying that the tag is unknown? Also, is your autocomplete working with the custom tags?
Riyad KallaMemberWarning marker: “java.util.* is never used”
Autocomplete: yes worked fineDid you notice anything in the screenshot that I might have missed?
Brokers-onlineMemberDon’t know. Maybe its something to do with the html. Since we use tiles are our html, head, body etc tags are in our layout files and not in the jsp’s, could that be an issue?
Riyad KallaMemberThe HTML should only give you nagging HTML validation warnings if you had HTML validation on… besides that it shouldn’t effect your JSP pages.
Are these JSP pages valid stand alone pages, or are they fragments? (meaning they cannot be compiled without other pages?)
-
AuthorPosts