Re: uploading a .xls file

2009-09-10 Thread Bill Bohnenberger
if you use name=file in the s:file tag, your variable names should be file, fileFileName and fileContentType - Bill On Wed, Sep 9, 2009 at 10:45 PM, KIRTI CHOPRA kirtichopra2...@gmail.comwrote: hi but does it make any difference it is just variable name if i am not wrong but i am not sure

Re: Warning message when setting BigDecimal to list of bean

2009-09-10 Thread Steven Yang
Sorry I forgot to mention I am using Struts 2.1.8 SNAP SHOT with XWork 2.1.6 samething happens with XWork 2.1.5 On Wed, Sep 9, 2009 at 2:03 PM, Steven Yang kenshin...@gmail.com wrote: Hi I have a bean like public class Account { private String type; private String name;

Re: Intermittent Session Problems in Strut2.

2009-09-10 Thread 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 to being cached and it turned out not to be trivial. Still i don't know how it will behave with proxy. [1] http://poulwiel.blogspot.com/2009/01/browser-back-button-and-caching-problem.html

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.

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.

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

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;

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 kirtichopra2...@gmail.comwrote: Thank you so much but

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:

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

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

Re: [S2] i18n for lists/maps

2009-09-10 Thread strutstwouser
Z, I'll clarify with a simple example : The dropdown must be like : select name=loanTypeoption value=1EnglishType1/optionoption value=2EnglishType2/option/select for EN and option value=1SpanishType1/optionoption value=2SpanishType2/option So, the values 1 and 2 remain constant, only the text

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 poulw...@gmail.com Hi, i don't know if it will help but You can try same thing i did here [1] i was trying to

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

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

Re: Interceptor doesn't forward

2009-09-10 Thread Lukasz Lenart
2009/9/10 Jim Collings jlistn...@gmail.com: 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/

Re: Interceptor doesn't forward

2009-09-10 Thread Jim Collings
Yes. On Thu, Sep 10, 2009 at 12:58 PM, Lukasz Lenart lukasz.len...@googlemail.com wrote: 2009/9/10 Jim Collings jlistn...@gmail.com: 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

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 that

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 mi...@claborn.net wrote: It sounds like either the original page or the one being redirected to is being controlled by

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: Chain a global result to an action?

2009-09-10 Thread Bill Bohnenberger
This works for me: struts package ... global-results result name=error type=redirectDeadEnd/result /global-results ... action name=DeadEnd class=com.rp.db.actions.DeadEnd resultdeadEnd.jsp/result /action ... /package

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 global-results result name=Excpetion type=chain param

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: struts    package ...        global-results            result name=error type=redirectDeadEnd/result        /global-results    ...        action

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 jlistn...@gmail.com 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: struts    package

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 jlistn...@gmail.com wrote: I also forgot to mention that this is a convention-plugin project. On Thu, Sep 10, 2009 at 3:10 PM, Jim Collings

Re: Interceptor doesn't forward

2009-09-10 Thread Lukasz Lenart
2009/9/10 Jim Collings jlistn...@gmail.com: 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/

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 mailtolouis2020-str...@yahoo.com This is really funny...hahaa I need to find this movie -Louis From: Dale Newfield d...@newfield.org To: Struts Users Mailing List user@struts.apache.org Sent: Monday,

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. Initial load

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

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