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: The user must enter a value in the text field, but uploading a file isn't required. If the user picks a f

Re: EJB Injection in Interceptor

2009-07-31 Thread Haroon Rafique
On Today at 2:02pm, HR=>Haroon Rafique 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 annotations. You can use th

Re: EJB Injection in Interceptor

2009-07-31 Thread Haroon Rafique
Hi Robin, see comments inline: On Today at 7:25pm, RM=>Robin Mannering 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 mentioned anywhere e

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 a

RE: Struts2 + JPA + JSON - Help with error

2009-07-31 Thread Martin Gainty
disable lazy-initialisation in /WEB-INF/applicationContext.xml Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten

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 struts.valueStackFac

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 l

Re: Struts2 + JPA + JSON - Help with error

2009-07-31 Thread Nathan Schulte
Nathan Schulte ngc.com> writes: > > Nathan Schulte 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, http://pastebin.com/m5d0d22c8. > http://pastebin.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 Phillips 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 '[Ljava.lang.String;@1683e9f' > ognl.

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

[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", [Ljava

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 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, wrote: > >> I think you can catch it, then do log.error(e.

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, wrote: > I think you can catch it, then do log.error(e.getMessage(),e); and then > throw e; > > > > > From: Bhaarat Sharma > To: Struts Users Mailin

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 To: Struts Users Mailing List Sent: Friday, July 31, 2009 5:03:34 AM Subject: Re: common error page in struts2 application Sorry I am a little confused. Basi