thx for your reply.
actually I am not going to change the param regularly.
this is more like just in case I want to change the setting in the future.
thx
Joe
Nils-Helge Garli wrote:
Why do you need to do that?
Nils-H
On Fri, Apr 3, 2009 at 5:05 AM, Joe Lam joe@moni-media.net
I got this in action mapping
interceptor-ref name=MyInterceptor
value01
/interceptor-ref
that parameter actually is an instance property of that interceptor
instance.
private String param01;
public void setParam01(String value){
param01= value;
}
I wonder if it is possible to
I set this in web.xml
error-page
error-code404/error-code
location/error404.jsp/location
/error-page
but the output doesnt come with the site template (using sitemesh)
anyone know why and how to solve this??
btw, any chance to make error 404 to call an action ?
like
I have this in struts.xml
constant name=struts.configuration.xml.reload value=true /
and I have this constant injected to my class
constant name=myConstant value=myValue /
does this mean that whenever I change my constant's value in struts.xml, my
class will get the updated value?
by doing a
try to make a file download action without opening the file.
I try the showcase file download example. change contentType to
application/x-download in struts.xml
lt;param name=contentTypegt;application/x-downloadlt;/paramgt;
with firefox it works fine. with IE, it still open the gif in browser.
and caused because you're writing
to the output stream within a JSP that's already doing so. That code is
better suited to its own servlet.
Hope that helps,
regards,
Jeromy Evans
Joe Lam wrote:
try to make a file download action without opening the file.
I try the showcase file
Anyone know the answer?
Thank you very much
Joe Lam wrote:
In my class, I want to read a constant in struts.xml.
I see some examples using @inject , somehow I cant make it work.
May someone help me? just wanna to get those constants in struts.xml
(don't want to use java properties
In my class, I want to read a constant in struts.xml.
I see some examples using @inject , somehow I cant make it work.
May someone help me? just wanna to get those constants in struts.xml
(don't want to use java properties file this time. I think it is easier to
maintain in struts.xml)
Thanks
May I know what is your practice to do Sidebar thing? here the sidebar means
a block lets say on the left side showing login form for guest user and
showing user menu for logged in user.
s:include ?
s:action ?
or do it in decorator level (sitemesh) ?
thank you very much.
Joe
--
View this
This might help
http://www.vitarara.org/cms/struts_2_cookbook/post_and_redirect
http://www.vitarara.org/cms/struts_2_cookbook/post_and_redirect
Piero Sartini-3 wrote:
I have the following situation:
a searchfield is on top of a table presenting results. if there is only
one
result,
Hi all,
I wonder how to avoid FileUploadInterceptor to save the tmp file. because in
my action I will process it anyway. IMO it is not efficient to have the
interceptor to save a tmp file first and then have my action class to
process the tmp file after. I think the most efficient way is to get
11 matches
Mail list logo