Validating .jspf files [message #172406] |
Mon, 26 June 2006 16:43 |
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 #172420 is a reply to message #172414] |
Mon, 26 June 2006 19:56 |
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 16:02 |
|
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 Web Tools Platform
|
|
|
Re: Validating .jspf files [message #172572 is a reply to message #172534] |
Tue, 27 June 2006 21:28 |
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
|
|
|
Powered by
FUDForum. Page generated in 0.04687 seconds