aspose file tools*
The moose likes Struts and the fly likes Pop-Up calendar and Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Pop-Up calendar and Struts" Watch "Pop-Up calendar and Struts" New topic
Author

Pop-Up calendar and Struts

Amin Mohammed-Coleman
Greenhorn

Joined: Oct 18, 2004
Posts: 15
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

Joined: Feb 05, 2003
Posts: 4727

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.


A good workman is known by his tools.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Pop-Up calendar and Struts
 
Similar Threads
More .js Calendar Problems
Date Validator scrolls the date
Javascript Calendar problem
Having trouble with javascript ...
creating a pop up calendar within a form