Error 500 ParseException

Hi, I'm new to JSP.

Here is the JSP page that causes the error

<%

String n = request.getParameter("name");

String s = request.getParameter("surname");

if(n.equals("xxxx") && s.equals("yyyyy"))

{

%>

<jsp:forward page="myhome.jsp">

<jsp:param name="name" value="<%=n %>">

<jsp:param name="surname" value="<%=s %>">

</jsp:forward>

<%

}

else

{

%>

<jsp:forward page="otherhome.jsp">

<jsp:param name="name" value="<%=n %>">

<jsp:param name="surname" value="<%=s %>">

</jsp:forward>

<%

}

%>

The parser does not like these portion of the tag

......value="<%=s %>">

Where am I wrong?

[861 byte] By [carlosaviani] at [2007-9-26 2:00:29]
# 1
I think it's more likely that the parser doesn't like that your jsp:param tags aren't closed, they should look like<jsp:param name="name" value="<%= s %>" /> -Derek
beattris at 2007-6-29 3:21:10 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Thank you beattris for your prompt replay.Naturally you were right, I will be more careful next time.RegardsCarlo
carlosaviani at 2007-6-29 3:21:10 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...