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
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;
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
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.
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.
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
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;
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
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:
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
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
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
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
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
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
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/
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
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
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
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
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
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
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
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
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
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/
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,
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
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
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
30 matches
Mail list logo