[jboss-user] [JBoss Portal] - Re: How to show error page in a portlet

2007-12-13 Thread poisoner
How I will produce error page from bean constructor? How to redirect to other 
page from constructor?

I dont want a general portal error, I want portlet error.

I used the portlet web.xml.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112612#4112612

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112612
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: How to show error page in a portlet

2007-12-12 Thread Antoine_h
you have to catch the exception in the action or render method of the portlet, 
then produce the error page instead of the content of the portlet.

look at the cms portlet, as an example of how it is managing the "document not 
found" error.

that is for having the error inside the portlet, for an error that occured 
inside the portlet processing.

for the general portal error, it is the same as for any JBoss (or Tomcat) web 
application.
the configuration of tomcat for the portal is in the portal-server.war.
look in this (as you don't mention "which" web.xml you have put your 


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112350#4112350

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112350
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user