| 
| JSP class recognition [message #154245] | Thu, 29 December 2005 16:09  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: anandtx0.aim.com 
 I am using Eclipse 3.1.1 and WTP 1.0
 When I have a Plain Java project with JSPs, I can see the JSP syntax
 ..coloring etc. However, some of the java classes do not seem to be
 recognized in the editor and so I see red lines under them. I am using
 include directives of JSP to get the imported classes.
 Is there any way to have the JSPs recognize these classes when I am in a
 plain Java project.
 The app works fine in deployment
 
 thanks
 Anand
 |  |  |  | 
|  | 
| 
| Re: JSP class recognition [message #154266 is a reply to message #154252] | Thu, 29 December 2005 17:26  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: anandtx0.aim.com 
 I have a folder called 'web ' which has a subfolder 'clmpub' which holds
 all the JSPs for my app.
 
 In 'clmpub', I have RxNew.jsp which has at the beginning..
 <%@ page contentType="text/html"%>
 <%@ taglib uri="/hms-taglib" prefix="hms"%>
 <%@ include file="../clmpub/IncludeDirectives.jsp"%>
 <%@ include file="../clmpub/IncludeDirectives2.jsp"%>
 <%@ include file="../shr/IncludeCSS.jsp"%>
 <jsp:include page="../shr/IncludeJS.jsp" />
 <jsp:include page="../shr/IncludeMenu.jsp" />
 
 I added the ".." at the beginning upon the suggestion of one of my
 collegaues and it helped get rid of the class recognition problem in this
 jsp.
 
 However, this RxNew.jsp has a declaration like
 <FORM name="form0" method="post" action="<%=at.getDestination()%>">
 <jsp:include page="/shr/ActionToken.jsp" />
 <%@ include file="/clmpub/staticIncludes/IncludeRxNewTableInput.jsp"%>
 
 On this jsp i.e IncludeRxNewTableInput.jsp , I see the standard java
 classes like BigDecimal, List etc. along with some app specific classes,
 not recognized. This jsp is in the folder specified in the include
 directive.
 
 The IncludeDirectives.jsp has
 <%@ page import="java.math.BigDecimal" %>
 <%@ page import="java.util.Calendar" %>
 <%@ page import="java.util.Date" %>
 <%@ page import="java.util.List" %>
 
 
 The problem page  ie IncludeRxNewTableInput.jsp has a snippet at the
 beginning like
 <%
 double totalCharge = 0.00, totalPaid = 0.00, totalDue = 0.00;
 BigDecimal amt = null;
 // @TODO -->
 List drugList = new List(10);
 %>
 
 the BigDecimal, List are not recognized along with some other app specific
 classes.
 
 Does a Plain Java project in Eclipse support this class recognition or
 does it have to be a DynamicWebProject supported by WTP 1.0
 
 thanks much
 Anand
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.03547 seconds