Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Pop-Up calendar and Struts

 
Amin Mohammed-Coleman
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
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic