is it possible to pass dynamic values to custom tag?

Hi there, I'm trying to build a calendar custom tag so I can drop the calendar into an existing webpage easily.

I have got the calendar displaying on the page but the problem I have is when I try to create 'previous' and 'next' links. Is it possible to pass parameters to a custom tag that have dynamic values?

In PHP it would looks something like:

<a href="bla.php?page=$pagenumber">next page</a>

When I create the calendar object I set it to the current date so when I try to increase or decrease the month (next/prev month) it doesn't work because the code is run again and hence setting the current date again.

Any ideas?

Cheers in advance

Message was edited by:

MajorMahem

[777 byte] By [MajorMahema] at [2007-11-26 20:42:00]
# 1
Use JSP expression in a JSP document.
hiwaa at 2007-7-10 2:01:07 > top of Java-index,Java Essentials,New To Java...
# 2
Hi there, could you show me some sample code please?Cheers
MajorMahema at 2007-7-10 2:01:07 > top of Java-index,Java Essentials,New To Java...
# 3
I think this will sort me out: http://www.onjava.com/pub/a/onjava/2000/12/15/jsp_custom_tags.html?page=2
MajorMahema at 2007-7-10 2:01:07 > top of Java-index,Java Essentials,New To Java...
# 4
for eg-<a href=" Display.jsp?id='+<%=customerId%>">Result Page</a>Please try this,i didn't work out, any how apply this sample to your code
jsatheesha at 2007-7-10 2:01:07 > top of Java-index,Java Essentials,New To Java...