You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Alistair Young <al...@smo.uhi.ac.uk> on 2005/02/28 18:00:37 UTC
Propagating errors from a PlugIn to a jsp
Is there any way for a PlugIn to get exception messages up to a jsp?
I have a PlugIn that initialises a system object that does important
work. If the PlugIn can't start the background process running, I'd
like to use <html:errors /> in the index.jsp, so when Tomcat starts,
the first page will display any errors the PlugIn encountered.
thanks,
Alistair
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Propagating errors from a PlugIn to a jsp
Posted by Alistair Young <al...@smo.uhi.ac.uk>.
thanks for that Erik,
I think I'll bung some Bean methods into the PlugIn and do a small tag
library for JSPs to use. I don't want any code in the JSP, just tags.
thanks,
Alistair
--
Alistair Young
Senior Software Engineer
UHI@Sabhal Mòr Ostaig
Isle of Skye
Scotland
> Your plugin could set application scope attributes using any Exceptions
> it encounters during the init method. Then your requested JSP (or setup
> Action) could grab those and iterate them.
>
> Erik
>
>
> Alistair Young wrote:
>
>> Is there any way for a PlugIn to get exception messages up to a jsp?
>>
>> I have a PlugIn that initialises a system object that does important
>> work. If the PlugIn can't start the background process running, I'd
>> like to use <html:errors /> in the index.jsp, so when Tomcat starts,
>> the first page will display any errors the PlugIn encountered.
>>
>> thanks,
>> Alistair
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Propagating errors from a PlugIn to a jsp
Posted by Erik Weber <er...@mindspring.com>.
Your plugin could set application scope attributes using any Exceptions
it encounters during the init method. Then your requested JSP (or setup
Action) could grab those and iterate them.
Erik
Alistair Young wrote:
> Is there any way for a PlugIn to get exception messages up to a jsp?
>
> I have a PlugIn that initialises a system object that does important
> work. If the PlugIn can't start the background process running, I'd
> like to use <html:errors /> in the index.jsp, so when Tomcat starts,
> the first page will display any errors the PlugIn encountered.
>
> thanks,
> Alistair
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org