Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » How does the JSP editor resolve page imort references?
How does the JSP editor resolve page imort references? [message #183748] Tue, 05 December 2006 20:11 Go to next message
Ray Hurst is currently offline Ray Hurst
Messages: 28
Registered: July 2009
Junior Member
I created a index.jsp file and I have two page import directives. The JSP
editor has marjked them unresolved. I imported the jar files that have the
code insided and it is till marked unresolved.
So how does the page import directives get resolved?
Re: How does the JSP editor resolve page imort references? [message #183764 is a reply to message #183748] Wed, 06 December 2006 00:52 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2251
Registered: July 2009
Senior Member
Ray Hurst wrote:
> I created a index.jsp file and I have two page import directives. The JSP
> editor has marjked them unresolved. I imported the jar files that have the
> code insided and it is till marked unresolved.
> So how does the page import directives get resolved?

They're resolved according to the Java Build Path of the
project--are the classes you've imported on the build path?
Additionally, modifying the build path doesn't automatically trigger
a revalidation of the JSP files. You could be seeing a stale warning.

--
Nitin Dahyabhai
Structured Source Editor


---
Nitin Dahyabhai
Eclipse WTP, IBM
Re: How does the JSP editor resolve page imort references? [message #183784 is a reply to message #183764] Wed, 06 December 2006 03:20 Go to previous messageGo to next message
Zohar Amir is currently offline Zohar Amir
Messages: 419
Registered: July 2009
Senior Member
Try using the 'validate' option on the project - may help.
Also look at https://bugs.eclipse.org/bugs/show_bug.cgi?id=153898


"Nitin Dahyabhai" <nitind@us.ibm.com> wrote in message
news:el5lr7$g18$2@utils.eclipse.org...
> Ray Hurst wrote:
>> I created a index.jsp file and I have two page import directives. The JSP
>> editor has marjked them unresolved. I imported the jar files that have
>> the code insided and it is till marked unresolved.
>> So how does the page import directives get resolved?
>
> They're resolved according to the Java Build Path of the project--are the
> classes you've imported on the build path? Additionally, modifying the
> build path doesn't automatically trigger a revalidation of the JSP files.
> You could be seeing a stale warning.
>
> --
> Nitin Dahyabhai
> Structured Source Editor
Re: How does the JSP editor resolve page imort references? [message #183930 is a reply to message #183748] Thu, 07 December 2006 19:36 Go to previous message
Ray Hurst is currently offline Ray Hurst
Messages: 121
Registered: July 2009
Senior Member
Ray Hurst wrote:
> I created a index.jsp file and I have two page import directives. The JSP
> editor has marjked them unresolved. I imported the jar files that have the
> code insided and it is till marked unresolved.
> So how does the page import directives get resolved?
>
>

I'm not sure if it was the right thing to do.
I ended up doing Properties -> J2EE Module Dependencies -> Add External
JARS.
This fixes the export to WAR file also.
Thanks
Previous Topic:Validation after switching editors
Next Topic:Web project and does not work
Goto Forum:
  


Current Time: Sat Aug 30 10:33:28 EDT 2014

Powered by FUDForum. Page generated in 0.03664 seconds