Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Opening files with other extension in Web Page Editor
Opening files with other extension in Web Page Editor [message #199842] Mon, 17 September 2007 08:58 Go to next message
Eclipse User
Originally posted by: c93henan.hotmail.com

Hello,

I use a company specific web framework where the xhtml pages used have
another file extension than .html. When I open these files with the Web
Page Editor I get a java.lang.NullPointerException. If I change the
extension to .html it opens fine. I can not find any configuration to
make this work. Does anyone know a way around this?

Many Thanks
Henrik
Re: Opening files with other extension in Web Page Editor [message #200053 is a reply to message #199842] Wed, 19 September 2007 16:43 Go to previous messageGo to next message
Lawrence Mandel is currently offline Lawrence Mandel
Messages: 486
Registered: July 2009
Senior Member
Hi Henrik,

I think you can get this to work by registering your extension as an HTML
content type. Go to Window->Preferences->General->Content
Types->Text->HTML and add your file extension.

Lawrence
Re: Opening files with other extension in Web Page Editor [message #200060 is a reply to message #200053] Thu, 20 September 2007 01:57 Go to previous message
Eclipse User
Originally posted by: c93henan.hotmail.com

Thank you very much! That fixed the problem.

/Henrik

lmandel@ca.ibm.com skrev:
> Hi Henrik,
>
> I think you can get this to work by registering your extension as an HTML
> content type. Go to Window->Preferences->General->Content
> Types->Text->HTML and add your file extension.
>
> Lawrence
Previous Topic:Frustrating problem with WTP 2.0 EJB project
Next Topic:WAR Validation failure
Goto Forum:
  


Current Time: Mon Sep 01 07:29:09 EDT 2014

Powered by FUDForum. Page generated in 0.11543 seconds