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
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:/
Hi Jake,
maybe this aproach would help You:
http://struts.apache.org/2.2.1.1/docs/stream-result.html
Best greetings,
Paweł Wielgus.
2011/4/24 Jake Vang :
> Dave,
>
> is there anyway to set it up so that the session can be created and
> not destroyed when i return null?
>
> i am finding out that
Dave,
is there anyway to set it up so that the session can be created and
not destroyed when i return null?
i am finding out that when i stream back an image (CAPTCHA) this time
(not json/xml/text as before), i need to store the answer in the
session. even if i do session.setAttribute("captcha-an
Dave,
Yes, that works too. That is perhaps even more elegant. What I had was
a sort of a kludge. Per your suggestion, if I don't return SUCCESS and
return null, then that message doesn't appear. Another implication of
your solution is then I don't need to have an actionAlias-success.jsp.
Thank yo
My first guess would be to return null so you're not rendering a jsp after
the output stream is closed.
Dave
On Apr 22, 2011 11:49 PM, "Jake Vang" wrote:
> what i did to get rid of this message was to add the following line
> before i do anything.
>
> getSerlvetRequest().getSession();
>
> that m
what i did to get rid of this message was to add the following line
before i do anything.
getSerlvetRequest().getSession();
that means anytime this method is called i make the two method calls
above. i'm not sure what the impact on performance will be. but for
now, it gets rid of the message. if
7 matches
Mail list logo