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.
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
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
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
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
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
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
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
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:
>>
>>
>> >
>>
>>
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:
>
> @
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
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.
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
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
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
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
> --
>
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/
---
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
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
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
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
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
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
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:
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
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
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
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.
-
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. (
29 matches
Mail list logo