- This topic has 1 reply, 2 voices, and was last updated 18 years, 3 months ago by
Riyad Kalla.
-
AuthorPosts
-
dcendentsMemberHi,
We have just installed MyEclipse 5.1.0 and have erros in all our JSPs and cannot find how to correct it.
(I have to turn off validation otherwise).Here is a sample of 1 jsp:
<%@ taglib uri="/tags/struts-html" prefix="html" %> <%@ taglib uri="/tags/pow2webgui.tld" prefix="gui" %> <%@ taglib uri="/tags/struts-logic" prefix="logic" %> <%@ taglib uri="/tags/struts-nested" prefix="nested" %> <%@ taglib uri="/tags/struts-bean" prefix="bean" %> <%@ taglib uri="http://pow2acl.sf.net" prefix="acl" %> <%@ taglib uri="http://displaytag.sf.net" prefix="display" %> <%@ taglib uri="/tags/string.tld" prefix="str" %> <%@ page buffer = "16kb" %> <%@page import = "com.rf1.doi.Constants, java.util.List, java.lang.String, com.rf1.ws.doi.EntryMinimalDataList, com.rf1.ws.doi.EntryMinimalData"%> <% String action = ""; List doiEntriesList = (List)session.getAttribute(Constants.BEAN_SESSION_DOI_TABLE_DOI_ENTRIES_LIST_ENTRY); %> <%@ include file="/jsp/commun/pleaseWait.jsp"%> <span id="lyrMain" style="display:none;"> <br> <br> <%-- ENTRYFORM --%> <logic:present name="EntryForm"> <logic:notEmpty name="EntryForm" property="action"> <bean:define id="actionForm" type="java.lang.String" name="EntryForm" property="action"/> <% if ( actionForm != null ){ action = actionForm; session.removeAttribute("EntryForm"); } %> </logic:notEmpty> </logic:present>
MyEclipse complains about the actionForm variable
actionForm cannot be resolved
The variable is created with the bean:define taglib, and if we declare it in the JSP first, then the bean:define will not set the variable properly.
Is there a way to fix this problem?
Thanks
Riyad KallaMemberThis is just a warning in the right-hand margin, the compile-time errors (real errors) are in the left hand margin. At this time there is no way to fix this as the editor doesn’t understand the connection between what the taglibs are doing and what the scriplet is looking for unfortunately.
More information is here on the issue, but no workaround is available:
http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-13364.html -
AuthorPosts