• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Pop-Up calendar and Struts

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm currently trying to use a javascript pop up date picker with my struts app. The only problem is that the pop -up calendar requires the following:
<input type="text" name="startDate">

whereas I am using ActionForms and therefore my page looks something like this:
<html:text property="endDate" name="multiProductBean"/> and this is causing the problem. Has anybody implemented a pop up date picker using Struts? If so can you point me to an implementation?

Thanks
Amin
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Struts converts this:
<html:text property="endDate" name="multiProductBean"/>
into this:
<input type="text" name="endDate" value="#valueFromBean#">

There should be no issue because by the time javascript comes into the picture (on the client's browser), there are no more Struts tags.

From your browser, right-click and select View Source to see what your input tags look like.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic