File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes jsp:param - value attribute Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "jsp:param - value attribute" Watch "jsp:param - value attribute" New topic
Author

jsp:param - value attribute

Venkat Babu
Ranch Hand

Joined: Jan 12, 2007
Posts: 47
In my jsp, I am assigning a variable

<c:set var="currentPage" value="1" scope="request" />


then in the jsp:include tag, I am doing this:

<jsp:include page="/jsp/steps_tab.jsp" flush="true">
<jsp aram name="currentpage" value="<%= currentPage %>"/>
</jsp:include>

it didn't work. And I tried this too:

<jsp:include page="/jsp/steps_tab.jsp" flush="true">
<jsp aram name="currentpage" value="<c ut value="${currentPage}"/>"/>
</jsp:include>

also didn't work. I am doing something wrong. Any ideas?


Thanks.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Try it this way:

[ December 11, 2007: Message edited by: Merrill Higginson ]

Merrill
Consultant, Sima Solutions
Venkat Babu
Ranch Hand

Joined: Jan 12, 2007
Posts: 47
I tried, i am getting this error in the log file:

The <jsp aram tag can only have jsp:attribute in its body.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Ok, then try it this way:

[ December 11, 2007: Message edited by: Merrill Higginson ]
 
 
subject: jsp:param - value attribute
 
Similar Threads
Problems with jsp:include
Jsp 1.0 problem
Oracle JSP Parser Exception
param
ways to include a servlet from a JSP