File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Pop-Up calendar and Struts" Watch "Pop-Up calendar and Struts" New topic

Pop-Up calendar and Struts

Amin Mohammed-Coleman

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?

Marc Peabody
pie sneak

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:
subject: Pop-Up calendar and Struts
It's not a secret anymore!