Frank W. Zammetti <fzlists <at> omnytex.com> writes: > I need to understand a little bit more what you have now... When you > have your <calendar> tag in the JSP, it of course renders HTML on the > browser (or are you rendering a link to an ActiveX control or something?).
It is not an ActiveX control. If it were an ActiveX control, then it would be easier to deal with but harder to port to different environment. ActiveX can only work on Microsoft Windows family. Let me give you an example of what I'm going to do. If you do online banking, you can set up bill payments on specific dates. Usually, the online banking web interface provides a calendar for your select the date on which the payment will occur. Typically, the default date is today and, if you change the month or the year, the calendar itself refreshes itself by displaying the days in the month of the year you have selected. Obviously, when you select a new month or a new year, the html page that accomodates the calendar control should post back to the server and render the page again with the correct days displayed. > Where you say: > > > Those pure HTML controls work very well with this approach. But how > can my custom control work like this? > > That makes it sound like to me that you actually are dealing with an > ActiveX control. Could you clarify that for me before I try and help > any further? I have an answer either way, just want to make sure I'm > giving the appropriate one :) Sorry for the confusion. By "pure HTML controls", I meant those <html:form>, <html:text> tags introduced in Struts after you declare them in the web.xml. <taglib> <taglib-uri>/tags/struts-html.tld</taglib-uri> <taglib-location>/WEB-INF/struts-html.tld</taglib-location> </taglib> > Also, in anticipation of your answer... when the user clicks a date, is > your thinking that the page they see should change, i.e., they should > move on to another screen, or are you thinking you just want an error > message (or no error message if it's a valid date) on the SAME screen? Yes, the page should change by posting back to itself and display respective days of the month you've selected. I want to use this control in future projects. For, this control should only be responsible for displaying a calendar. So, in the JSP page, I want to simply to a calendar tag like: <html> <body> <form> <calendar /> </form> </body> </html> If necessary, we can add necessar attributes to the <calendar> tag. Once the page is submitted to the server, I can catch the date selected via the calendar control and do something accordingly. Just like a textbox control on an HTML page. You enter some value in the textbox and submit it to the server for processing. In my case, I'm just finding out a way to submit the selected date of the calendar to the server and have the information processed. Hope this makes things clear. :-) Thanks! Peter --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]