File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Strange Behaviour of  jsp:param  action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Strange Behaviour of  jsp:param  action" Watch "Strange Behaviour of  jsp:param  action" New topic

Strange Behaviour of jsp:param action

Swati Jambhale

Joined: Jan 26, 2001
Posts: 22

Hello Friends,

I am little bit shocked with the way jsp aram is working. We know that jsp aram is used as subattribute in <jsp:include> , <jsp:forward> and <jsp lugin>
My code is ,
<jsp:include page="included.jsp" flush="true">
<jsp aram name="ename" value="Swati" />
<jsp aram name="deptno" value="20" />
included.jsp is my included file and reads 2 parameters pass by the pervious file.

Output should be "Swati" and "20", but i am getting "null" and "null" value for both the parameter. I am really confused . Will anybody explain this to me.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12682
Which servlet/jsp container are you using?

Java Resources at
I agree. Here's the link:
subject: Strange Behaviour of jsp:param action
Similar Threads
Why is this code gives me compile error???/
How to pass multiple params
forward values in jsp(see code)
Problem with forward and include JSP tag
passing parameters to included jsp file