Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp:param - value attribute

 
Venkat Babu
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try it this way:

[ December 11, 2007: Message edited by: Merrill Higginson ]
 
Venkat Babu
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, then try it this way:

[ December 11, 2007: Message edited by: Merrill Higginson ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic