Juan:

You can use HttpServletResponse.sendRedirect(String)
any time you want. What you heard is not true. But,
you have to be aware that when you call sendRedirect()
the page processing doesn't stop. It will continue
until the end of the page. It adds a response header
so the browser ask for it.

In some cases it will be good to use <jsp:forward
page="..." />
It is faster but it is different. With it you don't
have to get back to the browser but this one doesn't
know wich pages has visited.

You can create sessions, but you have one created
automatically, you could use it.
To store information (objects) on the session object
(HttpSession) you can use setAttribute(String,
Object), getAttribute(String) and
removeAttribute(String). On Servlets API 2.1 you have
to use: putValue, getValue, removeValue().

Atilio
Good luck



--- "Orozco, Juan Carlos" <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> Someone tell me, if i'm using sessions, i can't use
> redirect,..is that
> true??
> You can send me an example of how to create
> sessions..store and retrieve
> information..
>
> thanks in advance.
>
> Juan.
>
>
> -----Original Message-----
> From: Rodrigo Gevaerd [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 24, 2001 9:33 AM
> To: [EMAIL PROTECTED]
> Subject: RES: jaxp in JSP
>
>
>    I was using JDeveloper and when JSP is run it
> automatically put some
> classes from its lib. I removed the jaxp classes
> from there and it worked,
> although now appears a warning message when I open
> the JDeveloper saying
> there are classes missing.
>
>    Thanks,
>
>     Rodrigo.
>
> > -----Mensagem original-----
> > De: Jayson Falkner [mailto:[EMAIL PROTECTED]]
> > Enviada em: S�bado, 21 de Julho de 2001 00:09
> > Para: [EMAIL PROTECTED]
> > Assunto: Re: jaxp in JSP
> >
> >
> > Hi Rodrigo,
> >
> > There is a classpath conflict between a older
> sealed JAR and
> > one with the
> > newer resources. Go through and make sure you
> don't have
> > duplicate JAR files
> > in your JSP environment.
> >
> > If you are using and older Tomcat be sure that its
> XML
> > parsing resources are
> > not the culprit.
> >
> > Jayson Falkner
> > [EMAIL PROTECTED]
> >
>
>
==========================================================================To
> unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body:
> "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
==========================================================================To
> unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body:
> "set JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


=====
Ing. Atilio Ranzuglia Buteler
[EMAIL PROTECTED]

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to