Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » JSP class recognition
JSP class recognition [message #154245] Thu, 29 December 2005 21:09 Go to next message
Eclipse UserFriend
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 #154252 is a reply to message #154245] Thu, 29 December 2005 21:20 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

Anand wrote:
> 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

Can you list which classes aren't being recognized? What values are
you using in your include directives and what are the paths to the
JSP and fragment files?

--
- Nitin


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: JSP class recognition [message #154266 is a reply to message #154252] Thu, 29 December 2005 22:26 Go to previous message
Eclipse UserFriend
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
Previous Topic:debugging a Tomcat webapp in WTP 1.0
Next Topic:Exporting Workspace projects to tomcat
Goto Forum:
  


Current Time: Fri Apr 26 20:19:17 GMT 2024

Powered by FUDForum. Page generated in 0.02886 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top