Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Validating .jspf files
Validating .jspf files [message #172406] Mon, 26 June 2006 12:43 Go to next message
Eclipse User
Originally posted by: dserodio.gmail.com

I have some JSP Fragments, with the .jspf extension. They're JSP
_fragments_ exactly because they're not complete pages, so why does WTP
try to validate them as if they were?

Thanks,
Daniel Serodio
Re: Validating .jspf files [message #172414 is a reply to message #172406] Mon, 26 June 2006 15:28 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2237
Registered: July 2009
Senior Member
Daniel Serodio wrote:
> I have some JSP Fragments, with the .jspf extension. They're JSP
> _fragments_ exactly because they're not complete pages, so why does WTP
> try to validate them as if they were?

It's a simple oversight that is corrected in WTP 1.5. You can
enable or disable fragment validation from the new JSP Fragment
settings property page
( http://www.eclipse.org/webtools/wst/components/sse/designs/c ontentsettings/wtp15m5-jspfragment.jpg).

--
- Nitin


---
Nitin Dahyabhai
Eclipse WTP, IBM
Re: Validating .jspf files [message #172420 is a reply to message #172414] Mon, 26 June 2006 15:56 Go to previous messageGo to next message
Eclipse User
Originally posted by: dserodio.gmail.com

Nitin Dahyabhai wrote:
> Daniel Serodio wrote:
>> I have some JSP Fragments, with the .jspf extension. They're JSP
>> _fragments_ exactly because they're not complete pages, so why does WTP
>> try to validate them as if they were?
>
> It's a simple oversight that is corrected in WTP 1.5. You can enable or
> disable fragment validation from the new JSP Fragment settings property
> page
> ( http://www.eclipse.org/webtools/wst/components/sse/designs/c ontentsettings/wtp15m5-jspfragment.jpg).

This setting didn't work for me. I have a "footer.jspf" file containing
only "</body></html>", and it still generates 2 errors and 1 warning:

ERROR: No Start tag (<body>).
ERROR: No Start tag (<htm>).
WARNING: Invalid location of tag (body).

Thanks,
Daniel Serodio
Re: Validating .jspf files [message #172534 is a reply to message #172420] Tue, 27 June 2006 12:02 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2237
Registered: July 2009
Senior Member
Daniel Serodio wrote:
> Nitin Dahyabhai wrote:
>> Daniel Serodio wrote:
>>> I have some JSP Fragments, with the .jspf extension. They're JSP
>>> _fragments_ exactly because they're not complete pages, so why does WTP
>>> try to validate them as if they were?
>> It's a simple oversight that is corrected in WTP 1.5. You can enable or
>> disable fragment validation from the new JSP Fragment settings property
>> page
>> ( http://www.eclipse.org/webtools/wst/components/sse/designs/c ontentsettings/wtp15m5-jspfragment.jpg).
>
> This setting didn't work for me. I have a "footer.jspf" file containing
> only "</body></html>", and it still generates 2 errors and 1 warning:
>
> ERROR: No Start tag (<body>).
> ERROR: No Start tag (<htm>).
> WARNING: Invalid location of tag (body).

Ah, turns out that checkbox only affects validating Java code within
the file. Bug 87351 was recently reopened to address this.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=87351

--
- Nitin


---
Nitin Dahyabhai
Eclipse WTP, IBM
Re: Validating .jspf files [message #172572 is a reply to message #172534] Tue, 27 June 2006 17:28 Go to previous message
Eclipse User
Originally posted by: dserodio.gmail.com

Nitin Dahyabhai wrote:
> Daniel Serodio wrote:
>> Nitin Dahyabhai wrote:
>>> Daniel Serodio wrote:
>>>> I have some JSP Fragments, with the .jspf extension. They're JSP
>>>> _fragments_ exactly because they're not complete pages, so why does WTP
>>>> try to validate them as if they were?
>>> It's a simple oversight that is corrected in WTP 1.5. You can enable or
>>> disable fragment validation from the new JSP Fragment settings property
>>> page
>>> ( http://www.eclipse.org/webtools/wst/components/sse/designs/c ontentsettings/wtp15m5-jspfragment.jpg).
>>>
>>
>> This setting didn't work for me. I have a "footer.jspf" file containing
>> only "</body></html>", and it still generates 2 errors and 1 warning:
>>
>> ERROR: No Start tag (<body>).
>> ERROR: No Start tag (<htm>).
>> WARNING: Invalid location of tag (body).
>
> Ah, turns out that checkbox only affects validating Java code within the
> file. Bug 87351 was recently reopened to address this.
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=87351

Yeah, that's it. Thanks for the pointer.

Daniel Serodio
Previous Topic:WTP 1.5 WST ready for release?
Next Topic:How does eclipse WTP map directories?
Goto Forum:
  


Current Time: Tue Jul 29 18:59:58 EDT 2014

Powered by FUDForum. Page generated in 0.02842 seconds