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
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
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
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
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
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
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
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"
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
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
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
12 matches
Mail list logo