users@glassfish.java.net

Re: How to change glassfish default 404 error-page

From: <glassfish_at_javadesktop.org>
Date: Mon, 05 May 2008 17:32:14 PDT

The syntax I mentioned above is how you would set this property on a virtual server using the "asadmin set" command, e.g.:

  asadmin set server.http-service.virtual-server.server.property.send-error_1="path=<resource_1> reason=<reason-string_1> code=<error-code_1>"
  asadmin set server.http-service.virtual-server.server.property.send-error_2="path=<resource_2> reason=<reason-string_2> code=<error-code_2>"

In domain.xml, this property is specified as follows:

  <property name="send-error_1" value="path=<resource_1> reason=<reason-string_1> code=<error-code_1>"/>
  <property name="send-error_2" value="path=<resource_2> reason=<reason-string_2> code=<error-code_2>"/>

and so forth ...


Jan
[Message sent by forum member 'jluehe' (jluehe)]

http://forums.java.net/jive/thread.jspa?messageID=272867