Kal,
My bad, I thought you were just trying to post information with a form.
Yes I do believe a new request and respone are made for each JSP. If setting
attributes in the session object doesnt solve your problem, have you tried
using a bean and setting its scope to session? You would then have an object
which you could access from all of your JSP.
[EMAIL PROTECTED]
----- Original Message -----
From: "Kal Iyer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, August 06, 2000 2:58 PM
Subject: Re: Request Parameter
>Jayson,
>
>That was a very good example. My doubt is not in passing parameter from a
>form to a JSP. I am trying to pass parameters between JSPs using the
>setAttribute() and getAttribute(). I am able to pass atttibutes between
two
>JSPs using session. putValue() and session.getValue(). However, I am not
>able to use request.setAttribute() and request.getAttribute() to pass
>attributes values between two JSPs.
>
>Does this mean that a new request object is created with a new call to a
>jsp?
>
>----- Original Message -----
>From: JSP Insider <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Sunday, August 06, 2000 4:58 PM
>Subject: Re: Request Parameter
>
>
> > Kal,
> > I recently wrote a SMTP bean at
> > http://www.jspinsider.com/beans/beans/email/BeanMailer/index.html it
> > provides a great example of passing parameters with a form. Hopefully
it
> > will answer your question.
> >
> > [EMAIL PROTECTED]
> >
> >
> >
> >
> > >From: Kal Iyer <[EMAIL PROTECTED]>
> > >Reply-To: A mailing list about Java Server Pages specification and
> > > reference <[EMAIL PROTECTED]>
> > >To: [EMAIL PROTECTED]
> > >Subject: Request Parameter
> > >Date: Sun, 6 Aug 2000 11:25:19 -0500
> > >
> > >Hi there,
> > >
> > >I am new to JSP and I have some confusion about accessing request
> > >parameters. I have two small jsp below. getParam.jsp uses
setAttribute
>to
> > >set a value to the request object. displayParam.jsp tries to access
the
> > >value of the key (the key is "city"). The value displayed is null.
> > >
> > >What am I doing wrong ?
> > >
> > >getParam.jsp is as follows:
> > >
> > ><html>
> > ><head>
> > ><title>
> > > Test
> > ></title>
> > ></head>
> > ><body>
> > ><form action="http://localhost:8080/displayParam.jsp" Method=Get >
> > > <% request.setAttribute("city", "New Delhi"); %>
> > > <Input Type = "submit" Name = "submit" Value="Submit">
> > ></form>
> > ></body>
> > ></html>
> > >
> > >setParam.jsp is as follows:
> > >
> > ><html>
> > ><head>
> > ><title>
> > > Displayed Parameter
> > ></title>
> > ></head>
> > ><body>
> > > <%=request.getAttribute("city") %>
> > > </body>
> > ></html>
> > >
> >
>
>===========================================================================
> > >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > >JSP-INTEREST".
> > >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
> >
> > ________________________________________________________________________
> > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
> >
> >
>
===========================================================================
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
> > 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".
>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
>
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
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