Doubt on Struts 2 Architechture
Interceptors stack will be triggered before action class is executed and after the result. Why it's need to execute interceptors stack once again after result. I used all the interceptors before triggering an action and what's the purpose of calling these interceptors once again after action without doing anything. Moreover it will take time to execute all the interceptors once again. why the sturts2 architecture is designed like this. Please through some light on this. Thank you very much. -- View this message in context: http://struts.1045723.n5.nabble.com/Doubt-on-Struts-2-Architechture-tp4601232p4601232.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Doubt on Struts 2 Architechture
I was already posted my question http://www.coderanch.com/t/542088/Struts/struts-Architechture got zero response. -- View this message in context: http://struts.1045723.n5.nabble.com/Doubt-on-Struts-2-Architechture-tp4601232p4601242.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
struts2 There is a bug in FileUploadInterceptor (FileContentType).
I'm trying to rescrit a file being Upload based on FileContentType. I'm facing browser compatability issue. Suppose if i have to allow only jar files (application/java-archive) but i'm getting different contentTypes for different browsers. Like x-zip compressed, application-octstream for the jar fileContentType. So, i tried allowed extension types (jar) it's working fine. But the if user changed the extension of a text file [.txt to .jar]. It will fail and it's foolproof. How can i fix this problem? -- View this message in context: http://struts.1045723.n5.nabble.com/struts2-There-is-a-bug-in-FileUploadInterceptor-FileContentType-tp4601250p4601250.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: struts2 There is a bug in FileUploadInterceptor (FileContentType).
can you please give me name that library jar file. -- View this message in context: http://struts.1045723.n5.nabble.com/struts2-There-is-a-bug-in-FileUploadInterceptor-FileContentType-tp4601250p4611321.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Doubt on Struts 2 Architechture
suppose, i'm not using timer interceptor and suppose i'm using timer interceptor then in such a case that interceptor only triggered but it's executing all interceptor in reverse order once again in post processing. why? -- View this message in context: http://struts.1045723.n5.nabble.com/Doubt-on-Struts-2-Architechture-tp4601232p4629574.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Doubt on Struts 2 Architechture
On Mon, Jul 25, 2011 at 9:58 AM, mohan rao [via Struts] < ml-node+4629574-1865382249-219...@n5.nabble.com> wrote: > suppose, i'm not using timer interceptor and suppose i'm using timer > interceptor then in such a case that interceptor only triggered but it's > executing all interceptor in reverse order once again in post processing. > why? > > -- > If you reply to this email, your message will be added to the discussion > below: > > http://struts.1045723.n5.nabble.com/Doubt-on-Struts-2-Architechture-tp4601232p4629574.html > To unsubscribe from Doubt on Struts 2 Architechture, click > here<http://struts.1045723.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4601232&code=bW9oYW5hcmFvc3ZAZ21haWwuY29tfDQ2MDEyMzJ8NTQ5NjkzNDYy>. > > -- View this message in context: http://struts.1045723.n5.nabble.com/Doubt-on-Struts-2-Architechture-tp4601232p4629652.html Sent from the Struts - User mailing list archive at Nabble.com.
Doubt on Accessing Session from ActionContext
You can obtain the request by asking the ActionContext or implementing ServletRequestAware. Implementing ServletRequestAwareis preferred. *why it's not preferable accessing through ActionContext even though it's thread safe. If it's true why we need session,request,response,params interceptors* http://struts.apache.org/2.0.11.1/docs/how-can-we-access-the-httpservletrequest.html -- View this message in context: http://struts.1045723.n5.nabble.com/Doubt-on-Accessing-Session-from-ActionContext-tp4769431p4769431.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
How do i test Struts 2 jsp page rendering time.
Hi, I want to test jsp page rendering time used struts-tags. I put a log message at the end of the action class before returning result and again at first calling interceptor because it will be executed last. And after result is sending all the interceptors will be executed in reverse order. Am i doing right or wrong? Is there any other way to test page rendering time. Thanks. -- View this message in context: http://struts.1045723.n5.nabble.com/How-do-i-test-Struts-2-jsp-page-rendering-time-tp4797559p4797559.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
How do i redirect to another action in filter?
Hi, As per my requirement i'm overriding prepareandexecture filter. I'm restricting the user from un accessable actions he might be book marked it before. I don't want to this in interceptor. I want to decide it on filter itself because i can reduce some processing. I tried with RequestDispatcher to forward the request It's not working because request dispatcher can't deal with action class can process only servlets. And even i tried with ActionMapping setting all the values manually the action what i want to execute but it's not working. ActionMapping actionMaping = new ActionMapping(); actionMaping.setNamespace("usermanagement"); actionMaping.setName("prepWelcome"); actionMaping.setMethod("prepWelcome"); actionMaping.getResult(); //take default execute.executeAction(httpReq, httpRes, actionMaping); Throw me some light regarding this. Thanks. -- View this message in context: http://struts.1045723.n5.nabble.com/How-do-i-redirect-to-another-action-in-filter-tp4811120p4811120.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
How to compare string reference variables using ognl?
Even if the both values are same it's giving false. It's giving true only when both are pointing to null. And even i tried following as well Thanks. -- View this message in context: http://struts.1045723.n5.nabble.com/How-to-compare-string-reference-variables-using-ognl-tp5060783p5060783.html Sent from the Struts - User mailing list archive at Nabble.com.
How to compare string reference variables using ognl?
Please delete my previous thread my query was not posted completely. T/F Nothing is printing. T/F Always printing false even both are having same values. Thanks. -- View this message in context: http://struts.1045723.n5.nabble.com/How-to-compare-string-reference-variables-using-ognl-tp5067537p5067537.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: How to compare string reference variables using ognl?
It supposed to print true or false. But not printing any value Printing false even they are same. (I think it's checking reference.) -- View this message in context: http://struts.1045723.n5.nabble.com/How-to-compare-string-reference-variables-using-ognl-tp5060783p5067525.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: How to compare string reference variables using ognl?
Thanks for your response, if i put that same thing will happen. First the expression is evaluated after that is going to processed. I want to know whether the expression is true or false. After that i will use tag. -- View this message in context: http://struts.1045723.n5.nabble.com/How-to-compare-string-reference-variables-using-ognl-tp5060783p5061242.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: struts2 string to map conversion
Parameters will returns String[] but not string check out that might be causing the problem. -- View this message in context: http://struts.1045723.n5.nabble.com/struts2-string-to-map-conversion-tp5052114p5060791.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts2 ScopeInterceptor scope.type end problem
Once you action execution is done all the valueStack objects will be cleared. This is might be causing the problem. And can you please elaborate your requirements. -- View this message in context: http://struts.1045723.n5.nabble.com/Struts2-ScopeInterceptor-scope-type-end-problem-tp5058274p5060788.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
One of link is not working in Core Developers Guide
the following link is not working please fix it struts.apache.org/2.x/docs/type-conversion.html -- View this message in context: http://struts.1045723.n5.nabble.com/One-of-link-is-not-working-in-Core-Developers-Guide-tp5479933p5479933.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org