Re: Can I have a   _not_ URL encoded?

2003-07-01 Thread Marco Maier
& nbsp; you get only if the the filter is set to true. see implementation of filter (org.apache.struts.util.ResponseUtils) public static String filter(String value) { if (value == null) return (null); char content[] = new char[value.length()]; value.getChars(0,

Re: Can I have a   _not_ URL encoded?

2003-07-01 Thread Marco Maier
Hi Martin, try to set the filter attribute of the bean:write tag to false e.g. Marco Martin Naskovski wrote: I have a LabelValueBean, and the Label property contains spaces. However, they do not get encoded into  's. If I actually include the   tag, I get a ' ' on the screen verbatim :), instead

Re: [newbie] Prepopulating a form

2003-03-19 Thread Marco Maier
Hi Johan, try this... DynaActionForm yourForm = (DynaActionForm) this.createDynaActionFormFromFormBeanConfig(yourFormName, mapping); // prepopulate the form httpSession.setAttribute(yourFormName, yourForm); protected DynaActionForm createDynaActionFormFromFormBeanConfig(String nam

logic:equal with string arrays

2002-09-05 Thread Marco Maier
Hi All, I would like to compare a element of an object array with the logic:equal tag. Something like that... [...] but this doesn't work. I know that this works with HashMap's. But how can I achieve this with string arrays? TIA Marco -- To unsubscribe, e-mail:

Re: [VALIDATOR] Validating Date with DynaValidator

2002-09-03 Thread Marco Maier
Axel Stahlhut wrote: > Sorry for posting this one again, but its a bit urgent and maybe i have a chance >marking it as a post concerning [Validator]. > > Validating a Date with the Struts-Validator Framework works fine, but if the field i >want to validate is not a required field and may be emp

Re: Switch Action example

2002-08-26 Thread Marco Maier
Hi Greg, here is an example... The prefix request parameter specifies the application prefix. In my example I switch to the default application. If you want switch to the e.g. struts-cars-confix.xml sub-appplication, the prefix must be /cars. BTW use & instead of & in your request past, s

Re: Validator problem!

2002-08-16 Thread Marco Maier
cts when the current date is selected. Then get the current system date an put it to the validator. But this isn't nice for me. Marco Zimmer, Robin (SSABSA) wrote: > Once simple option is just to use a plain old ActionForm and override the > validate method. > > -Original Me

Validator problem!

2002-08-16 Thread Marco Maier
Hi, Im using the struts validator to validate a date in an DynaValidatorForm. In my JSP I have two radio buttons where the user can choose between the current date and an input field that requires an valid date. The Struts validator always validates the date from the input field. But I want that

Re: Two ActionForms in one action

2002-08-02 Thread Marco Maier
, it gets passed to the >Next action when the next view SUBMITS its form. > > Selva- > > -Original Message- > From: Marco Maier [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 01, 2002 4:10 AM > To: [EMAIL PROTECTED] > Subject: Two ActionForms

Two ActionForms in one action

2002-08-01 Thread Marco Maier
Hi, is it possible to preset a form in an action that is associated with another form. For example: I have the action Action1 with the name attribute Form1 public class Action1 extends Action { [...] public ActionForward execute(ActionMapping mapping, ActionForm form,

Re: Switching the locale(language)

2002-07-10 Thread Marco Maier
see also http://www.mail-archive.com/struts-user@jakarta.apache.org/msg30863.html Marco Jon.Ridgway wrote: > Hi All, > > Ok more info, I'v tried this and it's of the top of my head so... > > Add some JavaScript similar to this... > > >