struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arunkumar Balasubramanian <arun...@hotmail.com>
Subject RE: Does Tiles Layout page can have struts form components
Date Tue, 17 Jul 2007 01:07:02 GMT
 
Hi
 
 Thanks for your response.
 
 Let me elaborate my question in detail. I am working on creating a tile page which has reusable
calendar icon. The calender icon on pageone.jsp is
 
<a href="javascript:newWindow_sepatate_fields(document.editAddress.monthMM, document.editAddress.dateDD,
document.editAddress.yearYYYY)" onkeydown="showFieldHelp(HELP_DATE_CALENDAR)"> <img
src="img/calendar.gif width="16" height="16"border="0"></a>
 
The calender icon on pagetwo.jsp is
 
<a href="javascript:newWindow_sepatate_fields(document.Addresspage.monthMM, document.Addresspage.dateDD,
document.Addresspage.yearYYYY)" onkeydown="showFieldHelp(HELP_DATE_CALENDAR)"> <img
src="img/calendar.gif width="16" height="16"border="0"></a>
 
Here editAddress and Addresspage are two different forms which are used in two pages. I was
trying to make a common page and reuse the icon(since the calender icon performs the similar
function on both the pages which has the similiar view). The view is same on both the components
but the icon uses different forms to pull the date.
 
It would be helpful to me if the calender icon can be reused? If that is possible, could you
please elaborate on this. I hope the this explaination would be understandable. 
 
 Once again thanks for your help.
 
 Regards,
 Arun
 
 



> Date: Mon, 16 Jul 2007 08:54:55 +0200> From: antonio.petrelli@gmail.com> To: user@struts.apache.org>
Subject: Re: Does Tiles Layout page can have struts form components> > 2007/7/16, Arunkumar
Balasubramanian <arun-82@hotmail.com>:> >> >> > Hi> > Is it
possible to have resuable <html:form property="effemonthMM" which> > needs the struts
form to store it's value? If there is a way to do this, it> > will be really helpful
in my project.> > > > What do you exactly mean with "reusable"?> If you mean:
the form tags stay in the layout, while its fields stay in> inner attributes, then I suppose
that the answer is "no", because (correct> me if I am wrong) Struts tags that represent
HTML fields need to stay inside> an "<html:form>" tag in the same JSP.> > Antonio
_________________________________________________________________
PC Magazine’s 2007 editors’ choice for best web mail—award-winning Windows Live Hotmail.
http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HMWL_mini_pcmag_0707
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message