Re: [S2] Accessing objects in the Spring context?

2009-09-10 Thread Marty Milligan
On Tue, Sep 8, 2009 at 6:54 PM, James Carr wrote: > Eh, that's the more complicated way... struts2 autowires by name, no > need to implement ApplicationContextAware. I didn't realize that. The code in SpringObjectFactory looks for ContextAware and sets it independently and then calls autowire.

Global Exceptions with Convention Plugin

2009-09-10 Thread RogerV
Hi My project is using Struts 2.1.6 based on blank.war with the convention plugin enabled. I'm having a problem getting global exception catching to work - I'm still getting the stack trace displayed in the browser. Do I need to add anything that would not be available "out of the box" having sta

Re: how to read the contents of uploaded file

2009-09-10 Thread KIRTI CHOPRA
Thank you so much -kirti -- View this message in context: http://www.nabble.com/how-to-read-the-contents-of-uploaded-file-tp25384149p25395100.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscri

Re: Chain a global result to an action?

2009-09-10 Thread ManiKanta G
Hi, I m facing the same problem, and I've posted to list. Please follow for any updates: http://www.nabble.com/Problem-with-result-returning-from-interceptor-td25075486.html Regards, ManiKanta G twitter.com/manikantag On Fri, Sep 11, 2009 at 1:10 AM, Bill Bohnenberger wrote: > I'll let someon

Re: Page waits to load initially with Div Dojo tag

2009-09-10 Thread Ignacio de Córdoba
Hello, I wonder if you solved this. I'm facing the same problema and saw no info on the docs. Also have tried with delay="0" and preload="true" Mekna wrote: > > I would appreciate any kind of Help, Thanks > > Hi, > > I am struts user. upgrading app from struts 2.0.11.2 to struts 2.1.6. > > I

Re: [OT] Re: [OT] Re: Struts2 is not outputting to the Glassfish server.log

2009-09-10 Thread David Canos
anyway thank you for the answer ;) haha 2009/9/7 > This is really funny...hahaa > I need to find this movie > > -Louis > > > > > From: Dale Newfield > To: Struts Users Mailing List > Sent: Monday, September 7, 2009 6:42:56 AM > Subject: Re: [OT] Re: Struts2 is

Re: Interceptor doesn't forward

2009-09-10 Thread Lukasz Lenart
2009/9/10 Jim Collings : > I think I am getting my syntax wrong for the global result. How do you > specify a global result that is an action? User redirectAction http://struts.apache.org/2.x/docs/redirect-action-result.html Regards -- Lukasz http://www.lenart.org.pl/ http://dailylog.lenart.org

Re: Chain a global result to an action?

2009-09-10 Thread Bill Bohnenberger
I'll let someone else answer this... I've not jet used the convention plugin (too bleeding edge for me! :) On Thu, Sep 10, 2009 at 12:11 PM, Jim Collings wrote: > I also forgot to mention that this is a convention-plugin project. > > On Thu, Sep 10, 2009 at 3:10 PM, Jim Collings wrote: > > Will

Re: Chain a global result to an action?

2009-09-10 Thread Jim Collings
I also forgot to mention that this is a convention-plugin project. On Thu, Sep 10, 2009 at 3:10 PM, Jim Collings wrote: > Will I have to define the action in the struts.xml?  I'm currently > using annotations to handle mapping. > > Jim C. > >> This works for me: >> >> >>    > >>         >>      

Re: Chain a global result to an action?

2009-09-10 Thread Jim Collings
Will I have to define the action in the struts.xml? I'm currently using annotations to handle mapping. Jim C. > This works for me: > > >     >         >            DeadEnd >         > >    ... >         >            deadEnd.jsp >         > >    ... >     > > > The entire action class is: > > @

excpetion chaining to custom exception handler issue

2009-09-10 Thread Denny Erinjery
HI, I'm using a global exception handler action class to get the exception details and display it on a custom error page. Following is the struts xml configuration UnhandledExceptionHandler

Re: Chain a global result to an action?

2009-09-10 Thread Bill Bohnenberger
This works for me: DeadEnd ... deadEnd.jsp ... The entire action class is: @SuppressWarnings("serial") public class DeadEnd extends ActionSupport { } and when any action returns "error" the deadEnd.jsp page is displayed.

Chain a global result to an action?

2009-09-10 Thread Jim Collings
Anybody know what the syntax for this is? I don't seem to be getting it right. Jim C. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: Interceptor doesn't forward

2009-09-10 Thread Jim Collings
I think I am getting my syntax wrong for the global result. How do you specify a global result that is an action? Jim C. On Thu, Sep 10, 2009 at 2:27 PM, Mitch Claborn wrote: > It sounds like either the original page or the one being redirected to > is being controlled by container managed secu

Re: Interceptor doesn't forward

2009-09-10 Thread Mitch Claborn
It sounds like either the original page or the one being redirected to is being controlled by container managed security, configured in web.xml. Mitch Jim Collings wrote: > I want to send a user to the welcome page if they don't have something > set in their session. > > I have an interceptor t

Re: Interceptor doesn't forward

2009-09-10 Thread Jim Collings
Yes. On Thu, Sep 10, 2009 at 12:58 PM, Lukasz Lenart wrote: > 2009/9/10 Jim Collings : >> I have an interceptor that works fine otherwise.  It returns either >> invocation.invoke() OR it returns Action.LOGIN.  Problem is that I > > Did you create global result named "login"? > > > Regards > -- >

Re: Interceptor doesn't forward

2009-09-10 Thread Lukasz Lenart
2009/9/10 Jim Collings : > I have an interceptor that works fine otherwise.  It returns either > invocation.invoke() OR it returns Action.LOGIN.  Problem is that I Did you create global result named "login"? Regards -- Lukasz http://www.lenart.org.pl/ http://dailylog.lenart.org.pl/ ---

Interceptor doesn't forward

2009-09-10 Thread Jim Collings
I want to send a user to the welcome page if they don't have something set in their session. I have an interceptor that works fine otherwise. It returns either invocation.invoke() OR it returns Action.LOGIN. Problem is that I can't get the LOGIN result to map properly. How is this done? I've tr

Re: Warning message when setting BigDecimal to list of bean

2009-09-10 Thread j alex
hmm..i remember getting the warning even for doubles..as the error message says, OGNL fails when trying to set a String array (all request parameters are Strings ) into the BigDecimal field since it cannot find an appropriate setter. In connection to this, can anyone let me know how to suppress th

Re: Intermittent Session Problems in Strut2.

2009-09-10 Thread j alex
Are you using Spring to wire up the Action ? -- just a wild guess that the bean scope may be Singleton (the default value) and that causes the data sharing ? 2009/9/10 Paweł Wielgus > Hi, > i don't know if it will help but You can try same thing i did here [1] > i was trying to force pages not

Re: [S2] i18n for lists/maps

2009-09-10 Thread strutstwouser
Z, I'll clarify with a simple example : The dropdown must be like : EnglishType1EnglishType2 for EN and SpanishType1SpanishType2 So, the values 1 and 2 remain constant, only the text changes. Now, i don't want to maintain 1, 2 separately from its text. My understanding from your suggestion is t

Re: how to read the contents of uploaded file

2009-09-10 Thread Wes Wannemacher
It's really not related to struts... Struts has done it's job in your case, now it's time for you to use other techniques commonly referred to as "programming" :) Since you are trying to read an excel spreadsheet, I would suggest you look at the POI library and then just expose a bean or array of

how to read the contents of uploaded file

2009-09-10 Thread KIRTI CHOPRA
hi all can you please help me with how can i start with how i can read the content of the file uploaded using struts 2.0 and display them in jsp in table format. since i am new to struts i am not able to think of where should i start from and for saving that uploaded file i should give which path

Re: uploading a .xls file

2009-09-10 Thread KIRTI CHOPRA
Thank you so much for the help!!! -- View this message in context: http://www.nabble.com/uploading-a-.xls-file-tp25377242p25383919.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail:

Re: uploading a .xls file

2009-09-10 Thread Bill Bohnenberger
Write code in your action class to copy the temp file. You'll have to respect your application server's containment rules: I simply copy the file to a permanent place in my application context. On Thu, Sep 10, 2009 at 12:59 AM, KIRTI CHOPRA wrote: > > Thank you so much but can you please tell me

how to save uploaded file

2009-09-10 Thread KIRTI CHOPRA
hi i have uploaded file successfully but i am now trying to save the file using following code it is not taking FileUtils and pls suggest if there is any other alternative. import static java.io.File.separator; import java.io.File; import java.lang.Object; import java.text.MessageFormat; im

2.1.6 with Convention + Spring plugins

2009-09-10 Thread James Cook
Hi All, I have set up my first Struts2 project. I have added the convention library and the spring library to the project. Now when I deploy (Glassfish 2 ur2) I receive various exception messages, all in the vein of java.lang.Exception: Could not load MultiColumnPrinter.class From

Re: uploading a .xls file

2009-09-10 Thread KIRTI CHOPRA
Thank you so much but can you please tell me how can i save the uploaded file -- View this message in context: http://www.nabble.com/uploading-a-.xls-file-tp25377242p25378975.html Sent from the Struts - User mailing list archive at Nabble.com. -

setting sx:submit targets conditionally?

2009-09-10 Thread Ignacio Enriquez
Hey... I am just starting struts. Is it possible set targets attribute of sx:submit conditionally? For example, if my action return "error" go back and show error ( in s:actionerror) inside the parentDiv ( sx:submit targets="parentDiv" ) if "success", I want a new completely page, so no targets. (