Don't mix up parameter with an attribute. What you should do is to use
<jsp:forward> and add a nested <jsp:param> to transmit your additional
parameter.

-- 
Regards,
Artashes Hovasapyan

On Tue, Feb 17, 2009 at 12:10 AM, Priyanka Bhardwaj
<priyankab...@gmail.com>wrote:

> Hi everyone,
>
> The homework tells us to add parameter to the request object in index.jsp
> before forwarding to middle.jsp. I added the parameter using the
> request.setAttribute() function and got the desired result. Is this okay? Or
> do I have to use jsp:param to add the parameter? But then jsp:param can be
> used only while forwarding and not before forwarding which the homework
> asks. Any suggestions would be appreciated.
>
> Thanks,
> Priya
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to