This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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 ]
 
GeeCON Prague 2014
 
subject: jsp:param - value attribute