Re: Passing an array of fields to ActionForm

2005-11-05 Thread Paul Benedict
Arrays (and collections for that matter) are just single objects with an unknown size. You can just specify a property to be a String[] and then a loop to print out whatever you want. __ Yahoo! FareChase: Search multiple travel sites in one clic

Re: Passing an array of fields to ActionForm

2005-11-05 Thread Frank W. Zammetti
Hi Anupam, Two references that may be of relevance: http://www.developer.com/java/ent/article.php/2233591 and http://struts.apache.org/struts-doc-1.2.7/userGuide/building_view.html#indexed Frank Agnisys wrote: Hi, In my application the user can add any number of input text fields to add

Passing an array of fields to ActionForm

2005-11-05 Thread Agnisys
Hi, In my application the user can add any number of input text fields to add properties to a form (implemented using Javascript). Is there a way to create an ActionForm that can get an array of property values from the JSP page, without knowing how many they are? How would such properties be

Re: [shale][clay] CSS style classes on substituted elements

2005-11-05 Thread Craig McClanahan
On 11/5/05, Rahul Akolkar <[EMAIL PROTECTED]> wrote: > > On 11/5/05, Gary VanMatre <[EMAIL PROTECTED]> wrote: > > > > For the class substitution case that conditionally sets styleClass > only if > > > class is actually specified, either the element would need to be smart > > > about knowing whether

Re: Date pattern

2005-11-05 Thread Martin Gainty
Xavier- In that case I would suggest populate an item in Message_en_US.properties such as Date.Format = MM//DD// and Message_fr_FR.properties contains your locale specific item for formatting date Date.Format = DD//MM// then in your jsp.. Locale locale=null; if (lang.equals(

Re: Date pattern

2005-11-05 Thread Xavier Vanderstukken
OK thanks but I already think to put the user date pattern in the i18n resources files, but I just would like to have a programmatic way to read the date pattern instead of the other one. Thanks for you response Martin Gainty wrote: Xavier- WebLogic solution http://e-docs.bea.com/wls/docs81/

Re: [shale][clay] CSS style classes on substituted elements

2005-11-05 Thread Rahul Akolkar
On 11/5/05, Gary VanMatre <[EMAIL PROTECTED]> wrote: > > > Note that my original example should probably have been > > > > #{shale:managed-bean-name} > > > > because we're not actually talking about an attribute here. > > > > The issue you raise, of course, is that you're actually trying to replac

Re: Date pattern

2005-11-05 Thread Martin Gainty
Xavier- WebLogic solution http://e-docs.bea.com/wls/docs81/console_ext/localization.html#1104706 But in In the purest Java sense you can populate your Message_fr_FR.properties Application Resources file http://www.javaworld.com/javaworld/jw-03-2000/jw-03-ssj-jsp.html#resources The construct y

Re: [shale][clay] CSS style classes on substituted elements

2005-11-05 Thread Gary VanMatre
> > > > > > This will become even more important in a JSF 1.2 world, because the EL > > > expression evaluation machinery has been pulled out into its own spec > > (and > > > its own package namespace) that can be used completely independently of > > the > > > web tier. Off the top of my hea

Re: Easy question, please help a rookie

2005-11-05 Thread Martin Gainty
Good Call Peronally I was going to march down the path of obtaining HTTP variables but obtaining the information you have suggested from the request object is a much cleaner and efficient retrieval methodology Thanks Dennis! Martin- - Original Message - From: <[EMAIL PROTECTED]> To:

Re: html:textarea with tags

2005-11-05 Thread Christian Bollmeyer
Murray Collingwood schrieb: If you know of any sites providing formatted text inside a textarea I would be really interested (as would most readers) please post the link. It's not possible in plain HTML, but in JavaScript (to some degree). There are a lot of such scripts on the web, many of

Upgrade problems from 1.2.4 to 1.2.7

2005-11-05 Thread Tim Christopher
Hi, I've read the upgrade notes on the Wiki and have followed all the instructions, including updating the validation.xml file. When run with the 1.2.4 version of Struts it runs run but now I have upgraded I always get a message saying the servlet is unavailable when trying to view a page. The e

Date pattern

2005-11-05 Thread Xavier Vanderstukken
I would like to retrieve the date format pattern according to the user Locale. I do the following to retrieve the Struts Locale : Locale current=(Locale)this.pageContext.getSession().getAttribute(Globals.LOCALE_KEY); if(current==null) current=Locale.US; And now I would like to rea