Hi Jake,
who said it has to be in xml?
@Result(name="success", type="stream", params={"inputName", "image",
"contentType", "contentType", "contentDisposition", "inline"})
but please double check what kind of default params are in current version,
for example if You will have:
public InputStream get
Hi,
I am very new to Struts 2.
I am having problem using Struts 2.0.14 with Tiles 2.0.
When I insert the following information in my web.xml I get an exception:
org.apache.struts2.tiles.StrutsTilesListener
Stacktrace:
27 Apr, 2011 6:14:57 PM org.apache.tiles.impl.BasicTilesContainer init
All that Preparable does is tells the PreparableInterceptor to call your
prepare() method. It doesn't require any other methods, so I'm not sure why
that would cause empty actions...
On the other hand, if you have clusters of code that require common support
objects, the Interceptor can be your f
> - Struts instantiates the User object (in my case) by default.
> - ModelDriven places the object I choose at the top of the stack.
> - Because my object is at the top of the stack, it gets selected instead
> of the object that Struts creates by default.
I think I answered my own questions here
> I don't use ModelDriven myself, but as I understand it, it places the
Model
> Object at the top of the Value Stack, which would make userid be a
reference
> to an attribute in the Model Object, not in the Action. When you use
> user.userid, it's because it's trying to find the user attribute i
Thanks for the prompt reply Dave. I have a couple of follow-up questions
regarding this.
On Wed, 2011-04-27 at 08:59 -0400, Dave Newton wrote:
> It's not making a separate *browser* request, it's all internal to S2.
>
Does this mean that struts' FAQ in
https://cwiki.apache.org/WW/how-do-we-repo
Pawel, you know of anything like this but for the convention plugin? I
don't use XML anymore. In fact, I've gotten away a lot with almost a
purely annotation based approach. In fact, my struts.xml is 4-5 lines
only.
2011/4/26 Paweł Wielgus :
> Hi Jake,
> maybe this aproach would help You:
> http:/
On Wed, Apr 27, 2011 at 7:13 AM, Miguel wrote:
> 1) Why doesn't the method mapped to get called
> when the form fails, ie, why is its interceptor stack picking up an
> error when it shouldn't?
It's not making a separate *browser* request, it's all internal to S2.
Another reason I really don't li
(Sorry if this is a dupe.)
On Wed, Apr 27, 2011 at 5:07 AM, nagarjunabatt...@gmail.com wrote:
> bt here when i am calling from client the print is invoking the server
> printer unlike using local resource(printer).
Well, your code is running on the server, so I'm not surprised. You
need to stream
Dear all,
I am having problems implementing the suggestion of struts' suggestion
of "how to populate a page when validation fails". My idea was to have a
s:action in the jsp that will be the input result of the failing
validation action.
However, it seems that the interceptor stack of the 2nd act
all said and done my code is working well
i am using JasperPrintManager.printReport(jasperPrint, false); in struts
environment.
bt here when i am calling from client the print is invoking the server
printer unlike using local resource(printer).
can u find me the solution for this its very very da
all said and done my code is working well
i am using JasperPrintManager.printReport(jasperPrint, false); in struts
environment.
bt here when i am calling from client the print is invoking the server
printer unlike using local resource(printer).
can u find me the solution for this its very very da
12 matches
Mail list logo