Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Validating .jspf files
Validating .jspf files [message #172406] Mon, 26 June 2006 16:43 Go to next message
Eclipse UserFriend
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 19:28 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4430
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 Web Tools Platform
Re: Validating .jspf files [message #172420 is a reply to message #172414] Mon, 26 June 2006 19:56 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4430
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 Web Tools Platform
Re: Validating .jspf files [message #172572 is a reply to message #172534] Tue, 27 June 2006 21:28 Go to previous message
Eclipse UserFriend
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: Thu Mar 28 18:35:23 GMT 2024

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

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

Back to the top