Re: common error page in struts2 application

2009-07-31 Thread mailtolouis2020-struts
I think you can catch it, then do log.error(e.getMessage(),e); and then throw e; From: Bhaarat Sharma bhaara...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Friday, July 31, 2009 5:03:34 AM Subject: Re: common error page in struts2

Re: common error page in struts2 application

2009-07-31 Thread Bhaarat Sharma
but if i am catching it, it is not showing my the common error page i made.. On Fri, Jul 31, 2009 at 4:29 AM, mailtolouis2020-str...@yahoo.com wrote: I think you can catch it, then do log.error(e.getMessage(),e); and then throw e; From: Bhaarat Sharma

Re: common error page in struts2 application

2009-07-31 Thread Bhaarat Sharma
ahhh i was not 'thrwoing' e after catching it _ thansk On Fri, Jul 31, 2009 at 6:55 AM, Bhaarat Sharma bhaara...@gmail.com wrote: but if i am catching it, it is not showing my the common error page i made.. On Fri, Jul 31, 2009 at 4:29 AM, mailtolouis2020-str...@yahoo.com wrote: I

[S2] OgnlValueStack Error setting expression warnings after upgrade from struts 2 to struts 2.1.7

2009-07-31 Thread Peter Phillips
I recently upgraded from struts 2.0 to 2.1.7 and noticed that we are now getting lots of warnings in the logs: 12:31:53,283 WARN [OgnlValueStack] Error setting expression 'button.save' with value '[Ljava.lang.String;@1683e9f' ognl.OgnlException: target is null for setProperty(null, save,

Re: common error page in struts2 application

2009-07-31 Thread Greg Lindholm
What I do, instead of chaining the global error result to an error action, is I use ognl in my error.jsp page to call a method and pass the exception so it can be logged etc. In my base action class I have a notifyAdmin(Exception) method. In error.jsp: %-- Dummy expression to notify the admin

Re: [S2] OgnlValueStack Error setting expression warnings after upgrade from struts 2 to struts 2.1.7

2009-07-31 Thread Greg Lindholm
I just change the logging level. log4j.properties: # Struts OgnlUtil issues unimportant warnings log4j.logger.com.opensymphony.xwork2.util.OgnlUtil=error log4j.logger.com.opensymphony.xwork2.ognl.OgnlValueStack=error On Fri, Jul 31, 2009 at 8:48 AM, Peter Phillips petergphill...@googlemail.com

Re: [S2] OgnlValueStack Error setting expression warnings after upgrade from struts 2 to struts 2.1.7

2009-07-31 Thread Wes Wannemacher
On Fri, Jul 31, 2009 at 8:48 AM, Peter Phillipspetergphill...@googlemail.com wrote: I recently upgraded from struts 2.0 to 2.1.7 and noticed that we are now getting lots of warnings in the logs: 12:31:53,283 WARN  [OgnlValueStack] Error setting expression 'button.save' with value

Re: Struts2 + JPA + JSON - Help with error

2009-07-31 Thread Nathan Schulte
Nathan Schulte nathan.schulte at ngc.com writes: Nathan Schulte nathan.schulte at ngc.com writes: here, http://article.gmane.org/gmane.comp.jakarta.struts.user/170543, http://article.gmane.org/gmane.comp.jakarta.struts.user/170543 Here is a link to the error,

Re: [S2] OgnlValueStack Error setting expression warnings after upgrade from struts 2 to struts 2.1.7

2009-07-31 Thread Greg Lindholm
/sigh... This is one of the great debates of struts2 development. On one side you have a camp that wants to know any time a parameter is submitted that doesn't have a matching getter/setter on the action, on the other side, you have a group that doesn't want a bunch of errors in the log.

Re: [S2] OgnlValueStack Error setting expression warnings after upgrade from struts 2 to struts 2.1.7

2009-07-31 Thread Peter Phillips
Thanks for your help. I guess everyone has their own opinions on when warnings etc. should appear in the logs and trying to keep everyone happy is an impossible task. After a bit more digging I think I can just implement my own version of OgnlValueStackFactory (by setting the

RE: Struts2 + JPA + JSON - Help with error

2009-07-31 Thread Martin Gainty
disable lazy-initialisation in /WEB-INF/applicationContext.xml bean id=testDataProvider class=org.apache.struts2.showcase.application.TestDataProvider singleton=true lazy-init=false/ Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de

Re: EJB Injection in Interceptor

2009-07-31 Thread Robin Mannering
Wow! Thanks for all this great feedback and ideas regards this problem. I'm sorry I cannot add any useful prompts to help you develop a plugin Wes as Spring and it's methods for injection are something I know nothing about. I have to admit, injection is not something I fully understand and

Re: EJB Injection in Interceptor

2009-07-31 Thread Haroon Rafique
Hi Robin, see comments inline: On Today at 7:25pm, RM=Robin Mannering ro...@mtndesigns.co.uk wrote: RM [..snip..] RM RM Can I just ask two further small questions to Haroon? RM RM Is the EJBInvokerServlet set to initialise at app startup via the RM web.xml definition? RM Nope. Its not

Re: EJB Injection in Interceptor

2009-07-31 Thread Haroon Rafique
On Today at 2:02pm, HR=Haroon Rafique haroon.rafi...@utoronto.ca wrote: HR [..snip..] HR HR Nope. Its not mentioned anywhere else in the app. Its just packaged in HR the .war file (which is inside the .ear). Glassfish does the right thing HR when it sees a servlet marked with the @EJB

Re: [s2] Multiple file upload using arrays

2009-07-31 Thread Dave Newton
Nate Drake wrote: I have a question about multiple file uploads using arrays[1]. Say I have 4 text fields with a file input field related to each one on a JSP like this: input type=text name=attrVal/ s:file label=File (1) name=attrImg / input type=text name=attrVal/ s:file label=File (2)