Dear sir,
* If I write:
> <jsp:forward page="aaa.jsp" / >
> <jsp:param name="name1" value="value1" />
> <jsp:param name="name2" value="value2" />
> </jsp:forward>
then Error: (55) jsp:param is not a registered tag in that namespace..
* If I write:
> <jsp:forward page="aaa.jsp" >
> <jsp:param name="name1" value="value1" />
> <jsp:param name="name2" value="value2" />
> </jsp:forward>
then Error: (53) forward must be terminated with /> not >
Why??? I wish you would help me. Thanks.
Best regard
----- Original Message -----
From: "John Thomas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 29, 2001 9:26 PM
Subject: Re: pass parameters to other jsp file
> Hi,
> No, Kevin Tomcat #.1 does support jsp 1.1 specs. I think the
> problem is because of error <jspforward> line.
>
> > <jsp:forward page="aaa.jsp" /> file://error here
> > <jsp:param name="name1" value="value1" />
> > <jsp:param name="name2" value="value2" />
> > </jsp:forward>
>
> the above lines actually closes jsp:forward w/o passing the
> parameters. rewrite the lines as
>
>
> <jsp:forward page="aaa.jsp" >
> <jsp:param name="name1" value="value1" />
> <jsp:param name="name2" value="value2" />
> </jsp:forward>
>
>
> note the slash is not there in <jsp:forward> with parameters
>
> Regards
> John Thomas
>
>
>
>
>
> Kevin Jones <[EMAIL PROTECTED]>@java.sun.com> on 01/29/2001 06:34:03
> PM
>
> Please respond to A mailing list about Java Server Pages specification
> and reference <[EMAIL PROTECTED]>
>
> Sent by: A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>
>
> To: [EMAIL PROTECTED]
> cc:
> Subject: Re: pass parameters to other jsp file
>
>
> Does Tomcat 3.1 support JSP 1.1? I honestly can't rememeber, I've been
> using
> 3.2 for too long. If it doesn't then that will be your problem,
>
> Kevin Jones
> DevelopMentor
> www.develop.com
>
> > -----Original Message-----
> > From: A mailing list about Java Server Pages specification and
> reference
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Shao
> > Sent: 29 January 2001 10:47
> > To: [EMAIL PROTECTED]
> > Subject: Re: pass parameters to other jsp file
> >
> >
> > Thanks for replay.
> > I'm using Apache3.12 + Tomcat3.12 on Redhat6.1.
> >
> > ----- Original Message -----
> > From: "Kevin Jones" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, January 29, 2001 7:21 PM
> > Subject: Re: pass parameters to other jsp file
> >
> >
> > > response.redirect and <jsp:forward ... > DO NOT do the same thing.
> > > response.redirect involves a roundtrip back to the client.
> > >
> > > Shao, which JSP server are you using?
> > >
> > > Kevin Jones
> > > DevelopMentor
> > > www.develop.com
> > >
> > > > -----Original Message-----
> > > > From: A mailing list about Java Server Pages specification
> > and reference
> > > > [mailto:[EMAIL PROTECTED]]On Behalf Of Malik Himanshu
> > > > Sent: 29 January 2001 04:26
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Re: pass parameters to other jsp file
> > > >
> > > >
> > > > Try this out!
> > > >
> > > > response.redirect("aaa.jsp?name1="+value1+"&name2="+value2)
> > > >
> > > > --- Shao <[EMAIL PROTECTED]> wrote:
> > > > > Hello
> > > > >
> > > > > I passed parameters to other jsp file like this:
> > > > > <jsp:forward page="aaa.jsp" />
> > > > > <jsp:param name="name1" value="value1" />
> > > > > <jsp:param name="name2" value="value2" />
> > > > > </jsp:forward>
> > > > > but in aaa.jsp, the value of both name1 and name2
> > > > > were null:
> > > > > str1 = request.getParameter("name1");
> > > > > str2 = request.getParameter("name2");
> > > > > str1 and str2 equal "null", that's why? Thank you...
> > > > >
> > > > > Regards
> > > > > plex
> > > > >
> > > > >
> > > >
> ==================================================================
> > > > =========
> > > > > 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
> > > >
> > > >
> > > > __________________________________________________
> > > > Do You Yahoo!?
> > > > Yahoo! Auctions - Buy the things you want at great prices.
> > > > http://auctions.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
> > >
> > >
> > ==================================================================
> > =========
> > > 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
>
>
===========================================================================
>
> 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
===========================================================================
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