Skip to main content



      Home
Home » Newcomers » Newcomers » Why Eclipse gives warnings in JSP fragments?
Why Eclipse gives warnings in JSP fragments? [message #269875] Wed, 01 April 2009 09:58 Go to next message
Eclipse UserFriend
Originally posted by: agz.pisem.net

Hello.

I've imported a web-application project into Eclipse. Now I have a lot of warnings in
/WEB-INF/jspf/*.jspf. The warnings are about HTML inconsistency, but the files are just fragments,
like page headers and footers.

For example, header.jspf contains starting <html>..<body><div> tags and footer.jspf contains
matching closing pairs.

How to get rid of those warnings or what I'm doing wrong?

Thanks,

Andrew.
Re: Why Eclipse gives warnings in JSP fragments? [message #269883 is a reply to message #269875] Wed, 01 April 2009 13:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

On 4/1/2009 9:58 AM, exquisitus wrote:
> Hello.
>
> I've imported a web-application project into Eclipse. Now I have a lot
> of warnings in /WEB-INF/jspf/*.jspf. The warnings are about HTML
> inconsistency, but the files are just fragments, like page headers and
> footers.
>
> For example, header.jspf contains starting <html>..<body><div> tags and
> footer.jspf contains matching closing pairs.
>
> How to get rid of those warnings or what I'm doing wrong?

If you don't get a response here, you might want to try asking the
question in the eclipse.webtools newsgroup.

Hope this helps,
Eric
Re: Why Eclipse gives warnings in JSP fragments? [message #269930 is a reply to message #269875] Thu, 02 April 2009 22:05 Go to previous messageGo to next message
Eclipse UserFriend
exquisitus wrote:
> I've imported a web-application project into Eclipse. Now I have a lot
> of warnings in /WEB-INF/jspf/*.jspf. The warnings are about HTML
> inconsistency, but the files are just fragments, like page headers and
> footers.
>
> For example, header.jspf contains starting <html>..<body><div> tags and
> footer.jspf contains matching closing pairs.
>
> How to get rid of those warnings or what I'm doing wrong?

There should be an option on the JSP Files "Validation" preference
page to disable validating those files, starting with Ganymede (WTP
3.0). In earlier releases, I think it's just on the main JSP Files
preference page.

--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational
Re: Why Eclipse gives warnings in JSP fragments? [message #269948 is a reply to message #269930] Fri, 03 April 2009 08:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: agz.pisem.net

Thank you very much. I hope regardless that option the Eclipse consider a JSP and all its fragments
as a single JSP source and does not miss errors in JSP fragments when validates the original JSP.

Best regards,

Andrew.

Nitin Dahyabhai wrote:
> exquisitus wrote:
>> I've imported a web-application project into Eclipse. Now I have a lot
>> of warnings in /WEB-INF/jspf/*.jspf. The warnings are about HTML
>> inconsistency, but the files are just fragments, like page headers and
>> footers.
>>
>> For example, header.jspf contains starting <html>..<body><div> tags
>> and footer.jspf contains matching closing pairs.
>>
>> How to get rid of those warnings or what I'm doing wrong?
>
> There should be an option on the JSP Files "Validation" preference page
> to disable validating those files, starting with Ganymede (WTP 3.0). In
> earlier releases, I think it's just on the main JSP Files preference page.
>
Re: Why Eclipse gives warnings in JSP fragments? [message #269965 is a reply to message #269948] Fri, 03 April 2009 21:47 Go to previous message
Eclipse UserFriend
exquisitus wrote:
> Thank you very much. I hope regardless that option the Eclipse consider
> a JSP and all its fragments as a single JSP source and does not miss
> errors in JSP fragments when validates the original JSP.

The JSP validator is at least smart enough to pull in referenced
fragments when doing its Java validation of the JSP--and to tell you
when it can't find a fragment.

--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational
Previous Topic:How to locate an xml file from Eclipse preferences
Next Topic:Eclipse start up giving errors
Goto Forum:
  


Current Time: Fri Jul 18 01:59:17 EDT 2025

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

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

Back to the top