• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

displaying Calendar on JSP

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic