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: > > javax.xml.parsers.DocumentBuilderFactory="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/> > javax.xml.parsers.SAXParserFactory="org.apache.xerces.jaxp.SAXParserFactoryImpl"/> > > javax.xml.transform.TransformerFactory="

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
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=46&messageID=726074&threadID=248962 http://forums.oracle.com/forums/thread.jspa?threadID=367999&tstart=0 --

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: but doesn't work, and put a jaxp.properties file into WEB-INF/classes with this code: javax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl javax.xml.parsers.DocumentBuilderFactory=org.apache.

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 wrote: > Noscript causing trouble is common enough that my boss calls my > configuration "Crazyfox"! > > -Brian > > > > On Wed, Oct 2

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 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
:) That's never happened to me. Honest. No, really. Dave On Wed, Oct 20, 2010 at 2:40 PM, Dave Westerman 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 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
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" wrote: > I am trying to use buttons to open a URL in another window, and also to execute > some JavaScript, and I can't

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. Neither of these onclick actions seem to be doing anything. Can someone please tell me what I'm doing wrong, or if there's a better way t

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 wrote: > Hi Dave: > > What version of Struts are you using? > > A long time ago, i met the similar problem in Struts1. > > I

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? - To

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 wrote: > OK, I will do it, > But maybe tomorrow, because the local time is over 11PM now. > > > > 2010/10/20 Dave Newton : >>> (A)I am just a new guy of Struts2 community, if I put some message >>> into th

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 : >> (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

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
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 : > You know

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 wrote: > 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 o

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 "file:

Re: Where is the JIRA?

2010-10-20 Thread Lukasz Lenart
2010/10/20 Greg Akins : > 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 - To unsub

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 wrote: > 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:/

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 unsubscr

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 wrote: > No, I mean it works, but the value "template" has no meaning. > > Actually, if you set param [templatePath] (or

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.x

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 wrote: >> Just add this to your web.xml: >> >>     >>        templatePath >>        template >>     > > The param [templatePath] can start with only "class://" or "file://". > Otherwise, struts will ignore it

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 link).

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

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. Usuall

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: Overriding Templates

2010-10-20 Thread Li Ying
> Just add this to your web.xml: > >     >        templatePath >        template >     The param [templatePath] can start with only "class://" or "file://". Otherwise, struts will ignore it and do not create a TemplateLoader for it. (See method [init] and [createTemplateLoader] of class [org.apac

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.or

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 web.xm