• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

Pop-Up calendar and Struts

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
If you have a bad day in October, have a slice of banana cream pie. And this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!