• Post Reply Bookmark Topic Watch Topic
  • New Topic

displaying Calendar on JSP  RSS feed

 
Hiren Pathak
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have been reading different topics about displaying calendar on a jsp pages. I too want to achieve the same but my situation is something different.
I tried searching for Calendar taglibs in google and found out there are two Calendar taglibs http://www.servletsuite.com/servlets/annualtag.htm. one is Calendar taglib and another is Anual Calendar taglib. I am not sure if I can use that into my application or not ?(the licencing issue ??)
If I cant use this one then.. is there any such taglib or package out there which I can use ?
I get the list of dates from my action class that I want to display on the JSP in Calendar format.

Thanks in advance.
[ April 25, 2006: Message edited by: Bear Bibeault ]
 
Hiren Pathak
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alright So I tried using Annual Calendar Taglib and the problem is that. My code is something like this..



but when I run this page it gives me the following error

OracleJSP: oracle.jsp.parse.JspParseException: Line # 26, <aCal:setLink month="<c: out value='${letDate.month}'/>" day="6">javascript:nysdot_popup('<c: out value="${dateUrl}"/>')</aCal:setLink>
Error: Unable to convert constant to type int for attribute "month" of tag "setLink".

Any help appreciated.

Thanks.

[ April 25, 2006: Message edited by: Hiren Pathak ]
[ April 25, 2006: Message edited by: Hiren Pathak ]
 
Hiren Pathak
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody please help me ?? I really need your help guys.

When I run the above code using Scriplet, it worked fine. But I dont want to use scriplets in my JSPs. Please help me with this.

Thanks.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First, it appears that your code section and error report are different - why is the ${...} around letDate.month missing in the code segment but appears in the error text?

Second, why are you using the c ut tag to fill in the month attribute of the aCal:setLink tag? Why not just ${letDate.month} by itself? These are java.util.Date objects, right - so it should be returning an int directly from that call?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!