RE: Overriding Templates

2010-10-20 Thread adam pinder
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

RE: Can't deploy on server

2010-10-20 Thread adam pinder
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

Re: Overriding Templates

2010-10-20 Thread Li Ying
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.

Re: [S2] 2.2.1 possible freemarker template bug

2010-10-20 Thread Li Ying
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

Re: Can't deploy on server

2010-10-20 Thread Jordi Fernandez
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.

After upgrading from Struts 2.0.x to 2.2.x, static content no longer served...

2010-10-20 Thread Eric Nielsen
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

Using FreeMarker (or Velocity) to template emails sent by a struts2 app?

2010-10-20 Thread Eric Nielsen
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

Re: Overriding Templates

2010-10-20 Thread Dave Newton
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

Re: Overriding Templates

2010-10-20 Thread Li Ying
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,

Re: Overriding Templates

2010-10-20 Thread Dave Newton
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

Where is the JIRA?

2010-10-20 Thread Greg Akins
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

Re: Where is the JIRA?

2010-10-20 Thread Dave Newton
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

Re: Where is the JIRA?

2010-10-20 Thread Lukasz Lenart
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

Re: Overriding Templates

2010-10-20 Thread Li Ying
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

Re: Overriding Templates

2010-10-20 Thread Dave Newton
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

Re: Overriding Templates

2010-10-20 Thread Li Ying
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

Re: Overriding Templates

2010-10-20 Thread 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

Re: Overriding Templates

2010-10-20 Thread Li Ying
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.

Re: Overriding Templates

2010-10-20 Thread Dave Newton
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

Auto-Expanding sx:tree

2010-10-20 Thread CRANFORD, CHRIS
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? -

Re: ognl and multdimensional lists

2010-10-20 Thread Dave Evans
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

Can't get onclick to work with buttons in Struts

2010-10-20 Thread Dave Westerman
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

Re: Can't get onclick to work with buttons in Struts

2010-10-20 Thread Dave Newton
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

Re: Can't get onclick to work with buttons in Struts

2010-10-20 Thread Dave Westerman
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:

Re: Can't get onclick to work with buttons in Struts

2010-10-20 Thread Dave Newton
:) 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!)

Re: Can't get onclick to work with buttons in Struts

2010-10-20 Thread Brian Thompson
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

Re: Can't get onclick to work with buttons in Struts

2010-10-20 Thread Dave Newton
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

Re: Can't deploy on server

2010-10-20 Thread Rodrigo Esteban Cares Guarda
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 --

Re: Can't deploy on server

2010-10-20 Thread Li Ying
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

Re: Character Encoding Error using new filters

2010-10-20 Thread Zoran Avtarovski
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.

Re: Can't deploy on server

2010-10-20 Thread Li Ying
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 --