You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@clerezza.apache.org by Fabian Baumgartner <fa...@getunik.com> on 2010/09/10 11:09:01 UTC
Implent custom 404 page
Hi,
what is the best way to modify the default 404 page in clerezza? It's okay for dev environments, but I would like to be able to edit the "not found" page for a live site.
What would you recommend?
Thanks
Regards Fabian
--getunik ag-------------------------------------------
Fabian Baumgartner fabian.baumgartner@getunik.com
hardturmstrasse 101 fon: +41 44 388 55 88
ch-8005 zuerich fax: +41 44 388 55 89
--latest getunik project-------------------------
Act local! Geo Marketing for your E-Mail campaign: www.geomarketing.com<http://www.geomarketing.com/>
--best of swiss web awards 2009------------------
Gold & Silver for Connect2Earth / Bronze for WWF UK
we make the web a better place - www.getunik.com<http://www.getunik.com/>
***********************************************************
P Think about the environment ! Do not print this mail unless necessary.
***********************************************************
Re: Implent custom 404 page
Posted by Hasan Hasan <ha...@trialox.org>.
I'll open an issue
regards
hasan
On Fri, Sep 10, 2010 at 2:36 PM, Hasan Hasan <ha...@trialox.org> wrote:
> Hi Fabian,
>
> this is a good question.
> I think the approach is through exception mapper in JAX-RS which means
> bundles should throw something like ResourceNotFoundException which maps to
> a certain JAX-RS ExceptionMapper Provider. This Provider will then include
> your message in the response... though not sure about the interface yet how
> to pass your message...
> opinions?
>
> Regards
> Hasan
>
>
> On Fri, Sep 10, 2010 at 11:09 AM, Fabian Baumgartner <
> fabian.baumgartner@getunik.com> wrote:
>
>> Hi,
>>
>> what is the best way to modify the default 404 page in clerezza? It's okay
>> for dev environments, but I would like to be able to edit the "not found"
>> page for a live site.
>>
>> What would you recommend?
>>
>> Thanks
>>
>> Regards Fabian
>>
>>
>> --getunik ag-------------------------------------------
>> Fabian Baumgartner fabian.baumgartner@getunik.com
>> hardturmstrasse 101 fon: +41 44 388 55 88
>> ch-8005 zuerich fax: +41 44 388 55 89
>>
>> --latest getunik project-------------------------
>> Act local! Geo Marketing for your E-Mail campaign: www.geomarketing.com
>> <http://www.geomarketing.com/>
>>
>> --best of swiss web awards 2009------------------
>> Gold & Silver for Connect2Earth / Bronze for WWF UK
>>
>> we make the web a better place - www.getunik.com<http://www.getunik.com/>
>>
>>
>>
>>
>> ***********************************************************
>> P Think about the environment ! Do not print this mail unless necessary.
>> ***********************************************************
>>
>>
>
Re: Implent custom 404 page
Posted by Hasan Hasan <ha...@trialox.org>.
Hi Fabian,
this is a good question.
I think the approach is through exception mapper in JAX-RS which means
bundles should throw something like ResourceNotFoundException which maps to
a certain JAX-RS ExceptionMapper Provider. This Provider will then include
your message in the response... though not sure about the interface yet how
to pass your message...
opinions?
Regards
Hasan
On Fri, Sep 10, 2010 at 11:09 AM, Fabian Baumgartner <
fabian.baumgartner@getunik.com> wrote:
> Hi,
>
> what is the best way to modify the default 404 page in clerezza? It's okay
> for dev environments, but I would like to be able to edit the "not found"
> page for a live site.
>
> What would you recommend?
>
> Thanks
>
> Regards Fabian
>
>
> --getunik ag-------------------------------------------
> Fabian Baumgartner fabian.baumgartner@getunik.com
> hardturmstrasse 101 fon: +41 44 388 55 88
> ch-8005 zuerich fax: +41 44 388 55 89
>
> --latest getunik project-------------------------
> Act local! Geo Marketing for your E-Mail campaign: www.geomarketing.com<
> http://www.geomarketing.com/>
>
> --best of swiss web awards 2009------------------
> Gold & Silver for Connect2Earth / Bronze for WWF UK
>
> we make the web a better place - www.getunik.com<http://www.getunik.com/>
>
>
>
>
> ***********************************************************
> P Think about the environment ! Do not print this mail unless necessary.
> ***********************************************************
>
>