That did the trick! Thank you!!! :)
--- Martin Cooper [EMAIL PROTECTED] wrote:
Konrad [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Thank you Martin! :)
Also, do you happen to know if this is possible:
c:forEach var=card items=${cards} begin=0
end=pg:endidx/
Hello.
In my custom taglib's doStartTag() method, I stored a
value in the session, as follows:
CustomTag
=
public void doStartTag() {
this.pageContext.getSession().setAttribute(endIdx,new
Integer(9));
}
I am trying to reference that value in JSTL's
c:forEach tag, as in the
Konrad [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello.
In my custom taglib's doStartTag() method, I stored a
value in the session, as follows:
CustomTag
=
public void doStartTag() {
this.pageContext.getSession().setAttribute(endIdx,new
Integer(9));
Try this
Thank you Martin! :)
Also, do you happen to know if this is possible:
c:forEach var=card items=${cards} begin=0
end=pg:endidx/
c:out value=${card.name}/
/c:forEach
When I use pg:endidx/ outside of the c:forEach
tag, it correctly displays the value. However, when I
try using pg:endidx/
weird
i wonder if page index is putting white space in?
9
instead of 0
do this
##pg:endidx/##
and see if you get ##9## or ##9 ##
-Original Message-
From: Konrad [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 3:39 PM
To: Struts Users Mailing List
Subject: Re:
Konrad [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Thank you Martin! :)
Also, do you happen to know if this is possible:
c:forEach var=card items=${cards} begin=0
end=pg:endidx/
This is not legal JSP (or XML) syntax. You cannot use a tag in the value of
an attribute of
Doh! I should have caught that.
-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Martin Cooper
Sent: Friday, January 16, 2004 5:16 PM
To: [EMAIL PROTECTED]
Subject: Re: [General TagLib question] Custom TagLib storing value in
PageContext/session and reference by Standard
7 matches
Mail list logo