Stacia,
I feel sure that the problem is the slash at the end of your jsp:forward tag. The
<jsp:forward /> syntax is used when the element has no contents, so there is no
need for a closing tag. The <jsp:forward></jsp:forward> syntax is used when there
is a content (ie. param tags) to the element. Note that this holds for all the
other JSP tags as well.
In other words, your example should read as follows:
<jsp:forward page="/nullresults.jsp"/>
<jsp:forward page="nullresults.jsp">
<jsp:param name="exactArtist"
value= "<%=java.net.URLEncoder.encode(exactArtist))%>"/>
</jsp:forward>
Yours, JonTom
JT Kittredge
ITA Software
Cambridge, Massachusetts
Stacia Carr wrote:
> I am getting a parse error when I sue jsp:forward and send a parameter to
> the jsp forward page I specify
>
> Here's what my code looks like:
>
> <jsp:forward page="/nullresults.jsp"/>
> <jsp:forward page="nullresults.jsp"/>
> <jsp:param name="exactArtist"
> value= "<%=java.net.URLEncoder.encode(exactArtist))%>"/>
> </jsp:forward>
>
> And here is the parse error:
>
> 100: expected `</jsp:root>' at `</jsp:forward>'
>
> Any clues? Is there a problem with my syntax?
>
> Stacia Carr
> Web Production Engineer
> listen.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