Hi Li / Maurizio,
thanks for your replies - i did receive the answer from another user yesterday
too, he sent the following
Actually, I found the solution, and it works for me:
http://old.nabble.com/-S2--2.2.1-possible-freemarker-template-bug-td29462347.html
Just add this to your
maybe your xml does not match the struts2 DTD (defined at top of struts.xml) -
try checking xml in something like XMLSpy for invalid xml as error says.
Date: Wed, 20 Oct 2010 10:34:01 +0900
Subject: Re: Can't deploy on server
From: liying.cn.2...@gmail.com
To: user@struts.apache.org
Just add this to your web.xml:
context-param
param-nametemplatePath/param-name
param-valuetemplate/param-value
/context-param
The param [templatePath] can start with only class:// or file://.
Otherwise, struts will ignore it and do not create a
TemplateLoader for it.
With a lot of debugging, I think i have found what's wrong.
If you use the default setting,
In method [createTemplateLoader] of class
[org.apache.struts2.views.freemarker.FreemarkerManager],
Struts will create 3 TemplateLoader which is:
1,ClassTemplateLoader, which will load Template from class
XML parsers are accessed via factories from Java code. Which concrete
parser will be used is something that will be decided at runtime by the
factory code, which is implemented by the app server. Your app server is
using a concrete implementation by Oracle that is causing the exception.
I recently upgraded from Struts 2.0.x + SmartURLs to Struts 2.2.1 +
Convention plugin. However after upgrading all my static content is
no longer being served. I read all the release notes along the way
that I could find and nothing suggests that my old approach should
have stopped working. Can
Is there a good/standard way to use FreeMarker (or Velocity) to
template emails sent by a Struts2 application?
I hacked up something that works, but my solution doesn't know about
struts2, so it can't use the taglibs to produce URL. (Ie sending an
email for a new account with an activation
So you're saying it doesn't work for him?
Dave
On Wed, Oct 20, 2010 at 5:26 AM, Li Ying liying.cn.2...@gmail.com wrote:
Just add this to your web.xml:
context-param
param-nametemplatePath/param-name
param-valuetemplate/param-value
/context-param
The param
No, I mean it works, but the value template has no meaning.
Actually, if you set param [templatePath] (or [TemplatePath]) to any
string which not start with class:// or file://, you will get the
same result: templates under web root folder will be loaded.
If you delete this param from web.xml,
It's actually more likely the documentation needs to be updated.
Perhaps you could get edit access to the wiki and update them?
Dave
On Wed, Oct 20, 2010 at 8:47 AM, Li Ying liying.cn.2...@gmail.com wrote:
No, I mean it works, but the value template has no meaning.
Actually, if you set param
https://issues.apache.org/struts/ gives me a 404
--
Greg Akins
http://insomnia-consulting.org
http://www.pghcodingdojo.org
http://pittjug.dev.java.net
http://twitter.com/akinsgre
http://www.linkedin.com/in/akinsgre
-
To
It's been moved to the main Apache JIRA instead of being separate.
Dave
On Wed, Oct 20, 2010 at 9:09 AM, Greg Akins angryg...@gmail.com wrote:
https://issues.apache.org/struts/ gives me a 404
--
Greg Akins
http://insomnia-consulting.org
http://www.pghcodingdojo.org
2010/10/20 Greg Akins angryg...@gmail.com:
https://issues.apache.org/struts/ gives me a 404
https://issues.apache.org/issues/
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Kapituła Javarsovia 2010 http://javarsovia.pl
If I am the author of this code, i think the priority order
of these 3 TemplateLoaders should be:
1, WebappTemplateLoader
2,ClassTemplateLoader (when value of param [templatePath] is string
starts with class://) or FileTemplateLoader(when value of param
[templatePath] is string starts with
You know that (a) the dev team reads this list, and (b) I'm on the dev
team, right?
On Wed, Oct 20, 2010 at 9:19 AM, Li Ying liying.cn.2...@gmail.com wrote:
If I am the author of this code, i think the priority order
of these 3 TemplateLoaders should be:
1, WebappTemplateLoader
Actually I did not know about these, Sorry.
And
(A)I am just a new guy of Struts2 community, if I put some message
into the Struts2 docs and it is not right, I will mislead so many
users, I will feel so~~~ sorry.
(B)As you can see, my English is not good.
2010/10/20 Dave Newton
(A)I am just a new guy of Struts2 community, if I put some message
into the Struts2 docs and it is not right, I will mislead so many
users, I will feel so~~~ sorry.
Honestly, I'd rather see the documentation reflect current behavior,
whether or not the behavior itself is correct. And if the
OK, I will do it,
But maybe tomorrow, because the local time is over 11PM now.
2010/10/20 Dave Newton davelnew...@gmail.com:
(A)I am just a new guy of Struts2 community, if I put some message
into the Struts2 docs and it is not right, I will mislead so many
users, I will feel so~~~ sorry.
All help is greatly appreciated :)
Thanks!
Dave
On Wed, Oct 20, 2010 at 10:26 AM, Li Ying liying.cn.2...@gmail.com wrote:
OK, I will do it,
But maybe tomorrow, because the local time is over 11PM now.
2010/10/20 Dave Newton davelnew...@gmail.com:
(A)I am just a new guy of Struts2
I have found a few resources on the net but none which have seemed to
work. I am using the Struts2 DOJO tree control with nested treenode
tags. How can I force the tree and all its children nodes to be
expanded by default?
-
Hello Li,
I'm using struts 2. I'm not getting an IndexOutOfBoundsException,
instead the list is populated with null values.
Dave
On Wed, Oct 13, 2010 at 7:20 PM, Li Ying liying.cn.2...@gmail.com wrote:
Hi Dave:
What version of Struts are you using?
A long time ago, i met the similar
I am trying to use buttons to open a URL in another window, and also to execute
some JavaScript, and I can't get either to work with onclick.
s:form name=joinForm
s:submit type=button value=Join onclick=return
ibmWebSigninPrelinkaction(this); href=/social/aggregator/signin/s:submit
/s:form
1) is it rendering as expected?
2) any errors in your JavaScript console?
3) what theme are you using?
4) what version of Struts?
Dave
On Oct 20, 2010 2:00 PM, Dave Westerman dlwes...@us.ibm.com wrote:
I am trying to use buttons to open a URL in another window, and also to
execute
some
Never mind, stupid user trick! I messed up, it's working now (NoScript was
blocking scripts on localhost, and I didn't notice - DUH!)
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail:
:)
That's never happened to me.
Honest.
No, really.
Dave
On Wed, Oct 20, 2010 at 2:40 PM, Dave Westerman dlwes...@us.ibm.com wrote:
Never mind, stupid user trick! I messed up, it's working now (NoScript was
blocking scripts on localhost, and I didn't notice - DUH!)
Noscript causing trouble is common enough that my boss calls my
configuration Crazyfox!
-Brian
On Wed, Oct 20, 2010 at 1:55 PM, Dave Newton davelnew...@gmail.com wrote:
:)
That's never happened to me.
Honest.
No, really.
Dave
AdBlock often causes woes too; we had to rename one of our divs (that
isn't an ad) in order to get by the defaults.
On Wed, Oct 20, 2010 at 3:20 PM, Brian Thompson elephant...@gmail.com wrote:
Noscript causing trouble is common enough that my boss calls my
configuration Crazyfox!
-Brian
Thanks for your answers, i try put next code into web.xml file:
!-- xml --
system-property
javax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl/
system-property
javax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl/
!-- xslt --
Are you using OC4J?
These pages may help:
http://forums.oracle.com/forums/thread.jspa?threadID=363566
http://forums.oracle.com/forums/thread.jspa?forumID=46messageID=726074threadID=248962
http://forums.oracle.com/forums/thread.jspa?threadID=367999tstart=0
I have set UTF-8 as the default everywhere - struts, tomcat, sitemesh.
I had a small breakthrough. It looks like it's a 2.1.6 specific issue. I
updated a development version to 2.1.8 and 2.2.1 and both worked fine. I
now have to find time to test the updated version for unintended
consequences.
Thanks for your answers, i try put next code into web.xml file:
!-- xml --
system-property
javax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl/
system-property
javax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl/
!-- xslt --
31 matches
Mail list logo