users@glassfish.java.net

Path to custom default error page resources

From: <forums_at_java.net>
Date: Wed, 18 Jan 2012 09:01:20 -0600 (CST)

I have successfully made a custom default error page for 404 by adding my own
html file to <domain>/config/my-errorpage.html , and added a property named
'send-error_1'  with the vaule 'code=404 path=my-errorpage.html' in the
admin console under Configurations > Server-config > Virtual servers > server
.

This works.

But my-errorpage.html contains <img src="somepath/my-image.png"/> (and also
CSS background URL specs), and I can't figure out how I should specify the
path, or where I should put the image files. [pulling my hair]

Preferably, I would like to keep the image files with the html file.

Is this possible? How?

 


--
[Message sent by forum member 'tmpsa']
View Post: http://forums.java.net/node/882803