jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicholas Lesiecki" <n...@eblox.com>
Subject RE: Problem with forward
Date Fri, 13 Dec 2002 18:01:30 GMT
Well, it will work, but Cactus won't "follow" the redirect. You can check
the status code of the response (and possibly even the destination--I'm not
sure) but you won't get the redirected page...

Cheers,
nick

> -----Original Message-----
> From: Matt Raible [mailto:matt@raibledesigns.com]
> Sent: Friday, December 13, 2002 10:24 AM
> To: 'Cactus Users List'
> Subject: RE: Problem with forward
>
>
> So you're saying it's impossible to test if a servlet executed correctly
> if it emits a response.sendRedirect?  I'm trying to test a login servlet
> that encrypts the user's password then redirects to "j_security_check"
> and I want to make sure this works.  I want to check to see if it
> switches correctly to SSL and also that the password gets encrypted.
>
> Matt
>
> > -----Original Message-----
> > From: Nicholas Lesiecki [mailto:nick@eblox.com]
> > Sent: Friday, December 13, 2002 10:14 AM
> > To: Cactus Users List
> > Subject: RE: Problem with forward
> >
> >
> > Are you using a forward or a response.sendRedirect ? Forwards
> > should work, but response.sendRedirect will not...
> >
> > Cheers,
> > Nick
> >
> > > -----Original Message-----
> > > From: Bruno Teixeira de Abreu [mailto:brunotx@ufmg.br]
> > > Sent: Tuesday, December 10, 2002 10:59 AM
> > > To: 'Cactus Users List'
> > > Subject: Problem with forward
> > >
> > >
> > > Hi,
> > >
> > > I'm having problems with my taglib's tests.
> > > The problem is:
> > >
> > > I have a doStartTag method that calls another method Search. This
> > > method Search calls a method SendMsg that is responsible
> > for doing a
> > > forward to another JSP page.
> > >
> > > My test class has a beginXXX method, a testXXX method and a endXX
> > > method. The problem is that I can't see the output of the
> > response of
> > > the forwarded page.
> > > Just like you do a forward to "Hello.jsp" from your taglib
> > action and you
> > > get "null" in
> > > the response in the endXXX method, instead of getting the
> > contents of
> > > Hello.jsp.
> > >
> > > Does anybody know how do I get the right response instead of null?!?
> > >
> > > Thanks.
> > >
> > >
> > > Bruno Teixeira de Abreu
> > > Computacao - 6o. periodo - DCC/UFMG
> > > UFMG I. Jr. - "Venha você também!"
> > > _____________________________________________________
> > > Visite http://www.dcc.ufmg.br/~brunotx
> > >
> > > "Participe da Campanha: Natal sem TP, DCC-UFMG."
> > >
> > > "No meio da dificuldade, está a oportunidade"
> > > (Albert Einstein)
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > <mailto:cactus-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> > <mailto:cactus-user-help@jakarta.apache.org>
> >
> >
> >
> >
> >
> > --
> > To
> > unsubscribe, e-mail:
> > <mailto:cactus-user-> unsubscribe@jakarta.apache.org>
> > For
> > additional commands,
> > e-mail: <mailto:cactus-user-help@jakarta.apache.org>
> >
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:cactus-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:cactus-user-help@jakarta.apache.org>





--
To unsubscribe, e-mail:   <mailto:cactus-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:cactus-user-help@jakarta.apache.org>


Mime
View raw message