File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Popup Calendar Suggestions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Popup Calendar Suggestions" Watch "Popup Calendar Suggestions" New topic
Author

Popup Calendar Suggestions

Scott Updike
Ranch Hand

Joined: Feb 16, 2006
Posts: 92
I need to provide a popup calendar on an entry form and I've tried using several popup calendars and I've nto been able to get them to work. I've tried the following paths:
1) I can use a standard popup calendar by hard coding <script></script> tags in my JSP, but the date value selected does not reappear if the form fails validation (I'm using the DynaValidatorForm). Besides, I don't want to hard-code it anyways since I know there are tags to handle this type of thing.
2) I tried using the Struts-Layout tags, but I was never able to get the popup to appear. I kept getting an error stating "Required Object not found". In looking around, other people have this same problem and it's been attributed to either an EI bug, or a bug in that particular distribution. This approach seems to be popular, but I've not been able to get any advice that's useful.

Can anyone please provide me with some suggestions? I've been able to get this functionality working in non-Struts servlet apps, but the Struts validator is really proving to be difficult.

Thanks in advance,
Scott
 
Consider Paul's rocket mass heater.
 
subject: Popup Calendar Suggestions