S2 tags - dynamic attributes

2008-09-03 Thread Jonny Cavell
What I need to do is very simple, but I'm beginning to wonder whether Struts2 actually lets me do it. Firstly, I want the id attribute of any HTML tag to take a dynamic value, so that I can code it at runtime. Secondly I want the tag to take e.g. dojoType as an attribute: Ne

Avoid having an action property called id

2008-06-25 Thread Jonny Cavell
This http://www.vitarara.org/cms/struts_2_cookbook/post_and_redirect article about post and redirect in struts 2 explains how to redirect to a dynamically evaluated action. However, if I use a param which references an action property called "id", it doesn't work. Re: Freemarker (old version that struts2 uses) disappearing pages
org.freemarker freemarker org.freemarker freemarker 2.3.12 Cheers Jonny Jeromy Evans - Blue Sky Min

Freemarker (old version that struts2 uses) disappearing pages

I have a problem that seems to occur periodically. My freemarker templates, served by struts2, stop appearing - I get a blank page. There are no useful messages in the logs, other than saying that it couldn't find the template (which it could find previously). First question - does anybody know

Re: [struts] Being driven mad by the ParametersInterceptor

rker interface which actions can implement to specify there should be no automatic setting of params. Cheers Jonny Kropp, Henning wrote: > > Dale Newfield schrieb: >> Jonny Cavell wrote: >>> So that brings me back to the original problem - getting all these Erro

Re: Being driven mad by the ParametersInterceptor

ed setter method on the action. How do I stop these errors? Cheers Jonny newton.dave wrote: > > --- Jonny Cavell <[EMAIL PROTECTED]> wrote: >> Fed up with messages such as Error setting expression 'xxx' with value >> '[Ljava.lang.String;@19a82ee', I go

Being driven mad by the ParametersInterceptor

Fed up with messages such as Error setting expression 'xxx' with value '[Ljava.lang.String;@19a82ee', I got rid of this Interceptor from my default stack. However, I wanted to use it for a particular action, so I added it there. It took me a while to work out that it needed to go before the defau

Spring-injected model results in error for ModelDriven action after 10mins

I get the following error, but only after about 10 mins after a server restart. To fix, I need to restart the server. Unable to instantiate Action, xxx, defined for 'aaa' in namespace '/' Error creating bean with name 'xxx' defined in class path resource [spring/struts2/yyy.xml]: Error setting p

Struts 2 + Freemarker - how to set a select list option to selected from a request param

If I set a request param with ?professionId=3, this does not make the professionId with value 3 selected. What am I doing wrong? ... <@s.select name = "professionId" key="profession" headerKey="" headerValue="select_profession" list="professions"

Re: Character encoding problems with Struts 2 and Freemarker or Velocity

Thanks a lot, that has sorted it out. I'm a bit confused as to why changing the default from utf-8 works though... Jonny Cavell wrote: > > I am setting default_encoding=UTF-8 in freemarker.properties, and leaving > the struts encoding in default.properties

Character encoding problems with Struts 2 and Freemarker or Velocity

I am setting default_encoding=UTF-8 in freemarker.properties, and leaving the struts encoding in default.properties untouched (i.e. struts.i18n.encoding=UTF-8). When I use a struts action to forward to a test page with Spanish text, without specifying the type (thus defaulting to jsp), it outputs

Re: [s2] How do I output unicode characters please help

I am also having difficulty with using Struts2 and Freemarker. I am setting default_encoding=UTF-8 in freemarker.properties, and leaving the struts encoding in default.properties untouched (i.e. struts.i18n.encoding=UTF-8). When I use a struts action to forward to a test page with Spanish text, w