Namburi,
FYI - You can throw the exception from anywhere when you are using JATO
1.2. In JATO 1.1 there were some containers in which the exception was
not propagated as intended. JATO 1.2 added some tunneling logic to
guarantee that the exception would propagate as intended in all
containers.
vnamboori wrote:
> Hi all,
>
> I want to throw a new CompleteRequestException in beginDisplay event
> of a ViewBean. What is the correct approach to do this.
>
> Thanks
> Namburi
>
>
>
>
> For more information about JATO, including download information,
> please visit:
> <a href="http://developer.iplanet.com/tech/appserver/framework/index.jsp">http: //developer.iplanet.com/tech/appserver/framework/index.jsp</a>
>
>
>
>
[Non-text portions of this message have been removed]
Mike/Todd,
We are using iPlanet AppServer SP3 and Jato 1.1. In this case It is
taking me to Error.jsp. Is it possible to incorporate the tunneling
logic on my viewBean. If so What should I do.
Thanks
Namburi
In <a href="/group/SunONE-JATO/post?protectID=210083235237078198050118178206047166136 158139046209">iPlanet-JATO@y...</a>, Michael Frisino <<a href="/group/SunONE-JATO/post?protectID=174176219122158198138082063148231088239 026066196217130152150">Michael.Frisino@S...</a>>
wrote:
> Namburi,
>
> FYI - You can throw the exception from anywhere when you are using
JATO
> 1.2. In JATO 1.1 there were some containers in which the exception
was
> not propagated as intended. JATO 1.2 added some tunneling logic to
> guarantee that the exception would propagate as intended in all
> containers.
>
> vnamboori wrote:
>
> > Hi all,
> >
> > I want to throw a new CompleteRequestException in beginDisplay
event
> > of a ViewBean. What is the correct approach to do this.
> >
> > Thanks
> > Namburi
> >
> >
> >
>
>
> >
> > For more information about JATO, including download information,
> > please visit:
> > <a href="http://developer.iplanet.com/tech/appserver/framework/index.jsp">http: //developer.iplanet.com/tech/appserver/framework/index.jsp</a>
> >
> >
> >
> >
Service.
>
>
> [Non-text portions of this message have been removed]
Mike/Todd,
We are using iPlanet AppServer SP3 and Jato 1.1. In this case It is
taking me to Error.jsp. Is it possible to incorporate the tunneling
logic on my viewBean. If so What should I do.
Thanks
Namburi
In <a href="/group/SunONE-JATO/post?protectID=210083235237078198050118178206047166136 158139046209">iPlanet-JATO@y...</a>, Michael Frisino <<a href="/group/SunONE-JATO/post?protectID=174176219122158198138082063148231088239 026066196217130152150">Michael.Frisino@S...</a>>
wrote:
> Namburi,
>
> FYI - You can throw the exception from anywhere when you are using
JATO
> 1.2. In JATO 1.1 there were some containers in which the exception
was
> not propagated as intended. JATO 1.2 added some tunneling logic to
> guarantee that the exception would propagate as intended in all
> containers.
>
> vnamboori wrote:
>
> > Hi all,
> >
> > I want to throw a new CompleteRequestException in beginDisplay
event
> > of a ViewBean. What is the correct approach to do this.
> >
> > Thanks
> > Namburi
> >
> >
> >
>
>
> >
> > For more information about JATO, including download information,
> > please visit:
> > <a href="http://developer.iplanet.com/tech/appserver/framework/index.jsp">http: //developer.iplanet.com/tech/appserver/framework/index.jsp</a>
> >
> >
> >
> >
Service.
>
>
> [Non-text portions of this message have been removed]
Thanks Todd.
overridden forwardTo() method worked.
I have another issue.
We have some static text fields on the view bean and there are some
TiledViews associated with this viewBean.
If there is any ModelControlException on the nextTile method of the
tiled view, it takes me to Error.jsp (which is ErrorPage directive in
the jsp). However, static text fields in the view bean are getting
diplayed and Error.jsp is being displayed where TiledView is supposed
to be displayed.
We do not want to show half the information. Is it possible to show
only Error.jsp if there is any Exception in the nextTile method of
the TiledView .
Thanks
Namburi
In <a href="/group/SunONE-JATO/post?protectID=210083235237078198050118178206047166136 158139046209">iPlanet-JATO@y...</a>, "Todd Fast" <<a href="/group/SunONE-JATO/post?protectID=101233080150035167169232031248066208071 048">Todd.Fast@S...</a>> wrote:
> Namburi--
>
> Well, without JATO 1.2, it's likely you'll need to do a redesign of
that
> portion of the app to not throw an exception that late in the
processing.
> Instead, you should move whatever logic that makes the decision to
throw the
> exception in the beginDisplay() event to an overridden forwardTo()
method of
> the ViewBean, thereby throwing the exception before involving the
JSP engine
> by triggering display.
>
> Do you understand the technique I'm proposing?
>
> Todd
>
> -- Original Message --
> From: "vnamboori" <<a href="/group/SunONE-JATO/post?protectID=081071113213093190112061186248100208071 048">vnamboori@y...</a>>
> Sent: Wednesday, January 09, 2002 2:13 PM
> Subject: [iPlanet-JATO] Re: CompleteRequestException
>
>
> > Mike/Todd,
> >
> > We are using iPlanet AppServer SP3 and Jato 1.1. In this case It
is
> > taking me to Error.jsp. Is it possible to incorporate the
tunneling
> > logic on my viewBean. If so What should I do.
> >
> > Thanks
> > Namburi
> >
> > In <a href="/group/SunONE-JATO/post?protectID=210083235237078198050118178206047166136 158139046209">iPlanet-JATO@y...</a>, Michael Frisino <<a href="/group/SunONE-JATO/post?protectID=174176219122158198138082063148231088239 026066196217130152150">Michael.Frisino@S...</a>>
> > wrote:
> > > Namburi,
> > >
> > > FYI - You can throw the exception from anywhere when you are
using
> > JATO
> > > 1.2. In JATO 1.1 there were some containers in which the
exception
> > was
> > > not propagated as intended. JATO 1.2 added some tunneling logic
to
> > > guarantee that the exception would propagate as intended in all
> > > containers.
> > >
> > > vnamboori wrote:
> > >
> > > > Hi all,
> > > >
> > > > I want to throw a new CompleteRequestException in beginDisplay
> > event
> > > > of a ViewBean. What is the correct approach to do this.
> > > >
> > > > Thanks
> > > > Namburi
> > > >
> > > >
> > > >
> > >
> > >
> > > >
> > > > For more information about JATO, including download
information,
> > > > please visit:
> > > >
<a href="http://developer.iplanet.com/tech/appserver/framework/index.jsp">http: //developer.iplanet.com/tech/appserver/framework/index.jsp</a>
> > > >
> > > >
> > > >
> > > >
> > Service.
> > >
> > >
> > > [Non-text portions of this message have been removed]
> >
> >
> >
> > For more information about JATO, including download information,
please
> visit:
> > <a href="http://developer.iplanet.com/tech/appserver/framework/index.jsp">http: //developer.iplanet.com/tech/appserver/framework/index.jsp</a>
> >
> >
> >
> >
> >
> >
> >
Namburi--
> overridden forwardTo() method worked.
Great!
> We have some static text fields on the view bean and there are some
> TiledViews associated with this viewBean.
> If there is any ModelControlException on the nextTile method of the
> tiled view, it takes me to Error.jsp (which is ErrorPage directive in
> the jsp). However, static text fields in the view bean are getting
> diplayed and Error.jsp is being displayed where TiledView is supposed
> to be displayed.
> We do not want to show half the information. Is it possible to show
> only Error.jsp if there is any Exception in the nextTile method of
> the TiledView .
You may need to set the JSP's buffer size to a larger value. My guess is
that the output stream is being flushed by the time you get to the error.
Todd
Namburi,
How is the TiledView related to the parent ViewBean in the JSP? Is it a
conventional ViewBean/TiledView relationship where the useTiledView tag
directly embedded in the same JSP as the ViewBean, or do you have the
TiledView in a separate jsp?
Todd Fast wrote:
> Namburi--
>
> > overridden forwardTo() method worked.
>
> Great!
>
> > We have some static text fields on the view bean and there are some
> > TiledViews associated with this viewBean.
> > If there is any ModelControlException on the nextTile method of the
> > tiled view, it takes me to Error.jsp (which is ErrorPage directive
> in
> > the jsp). However, static text fields in the view bean are getting
> > diplayed and Error.jsp is being displayed where TiledView is
> supposed
> > to be displayed.
> > We do not want to show half the information. Is it possible to show
> > only Error.jsp if there is any Exception in the nextTile method of
> > the TiledView .
>
> You may need to set the JSP's buffer size to a larger value. My guess
> is
> that the output stream is being flushed by the time you get to the
> error.
>
> Todd
>
>
>
> For more information about JATO, including download information,
> please visit:
> <a href="http://developer.iplanet.com/tech/appserver/framework/index.jsp">http: //developer.iplanet.com/tech/appserver/framework/index.jsp</a>
>
>
>
>
[Non-text portions of this message have been removed]
Mike/Todd,
We do not have a TiledView in a separate jsp. It is conventional
ViewBean/TiledView relationship as you mentioned.
However, Todd's suggestion worked by increasing the jsp buffersize.
I had never seen a group where the authors themselves participate and
solve the problems so quickly.
Thanks to whole JATO Team.
Namburi
In <a href="/group/SunONE-JATO/post?protectID=210083235237078198050118178206047166136 158139046209">iPlanet-JATO@y...</a>, Michael Frisino <<a href="/group/SunONE-JATO/post?protectID=174176219122158198138082063148231088239 026066196217130152150">Michael.Frisino@S...</a>>
wrote:
> Namburi,
>
> How is the TiledView related to the parent ViewBean in the JSP? Is
it a
> conventional ViewBean/TiledView relationship where the useTiledView
tag
> directly embedded in the same JSP as the ViewBean, or do you have
the
> TiledView in a separate jsp?
>
>
> Todd Fast wrote:
>
> > Namburi--
> >
> > > overridden forwardTo() method worked.
> >
> > Great!
> >
> > > We have some static text fields on the view bean and there are
some
> > > TiledViews associated with this viewBean.
> > > If there is any ModelControlException on the nextTile method of
the
> > > tiled view, it takes me to Error.jsp (which is ErrorPage
directive
> > in
> > > the jsp). However, static text fields in the view bean are
getting
> > > diplayed and Error.jsp is being displayed where TiledView is
> > supposed
> > > to be displayed.
> > > We do not want to show half the information. Is it possible to
show
> > > only Error.jsp if there is any Exception in the nextTile method
of
> > > the TiledView .
> >
> > You may need to set the JSP's buffer size to a larger value. My
guess
> > is
> > that the output stream is being flushed by the time you get to the
> > error.
> >
> > Todd
> >
> >
>
>
> >
> > For more information about JATO, including download information,
> > please visit:
> > <a href="http://developer.iplanet.com/tech/appserver/framework/index.jsp">http: //developer.iplanet.com/tech/appserver/framework/index.jsp</a>
> >
> >
> >
> >
Service.
>
>
> [Non-text portions of this message have been removed]
Mike/Todd,
We do not have a TiledView in a separate jsp. It is conventional
ViewBean/TiledView relationship as you mentioned.
However, Todd's suggestion worked by increasing the jsp buffersize.
I had never seen a group where the authors themselves participate and
solve the problems so quickly.
Thanks to whole JATO Team.
Namburi
In <a href="/group/SunONE-JATO/post?protectID=210083235237078198050118178206047166136 158139046209">iPlanet-JATO@y...</a>, Michael Frisino <<a href="/group/SunONE-JATO/post?protectID=174176219122158198138082063148231088239 026066196217130152150">Michael.Frisino@S...</a>>
wrote:
> Namburi,
>
> How is the TiledView related to the parent ViewBean in the JSP? Is
it a
> conventional ViewBean/TiledView relationship where the useTiledView
tag
> directly embedded in the same JSP as the ViewBean, or do you have
the
> TiledView in a separate jsp?
>
>
> Todd Fast wrote:
>
> > Namburi--
> >
> > > overridden forwardTo() method worked.
> >
> > Great!
> >
> > > We have some static text fields on the view bean and there are
some
> > > TiledViews associated with this viewBean.
> > > If there is any ModelControlException on the nextTile method of
the
> > > tiled view, it takes me to Error.jsp (which is ErrorPage
directive
> > in
> > > the jsp). However, static text fields in the view bean are
getting
> > > diplayed and Error.jsp is being displayed where TiledView is
> > supposed
> > > to be displayed.
> > > We do not want to show half the information. Is it possible to
show
> > > only Error.jsp if there is any Exception in the nextTile method
of
> > > the TiledView .
> >
> > You may need to set the JSP's buffer size to a larger value. My
guess
> > is
> > that the output stream is being flushed by the time you get to the
> > error.
> >
> > Todd
> >
> >
>
>
> >
> > For more information about JATO, including download information,
> > please visit:
> > <a href="http://developer.iplanet.com/tech/appserver/framework/index.jsp">http: //developer.iplanet.com/tech/appserver/framework/index.jsp</a>
> >
> >
> >
> >
Service.
>
>
> [Non-text portions of this message have been removed]