Struts2 Exception Handling

2013-06-21 Thread Sreekanth S. Nair
Hi, Can anyone point me a tutorial or reference for how to handle exception (uncaught or all exception). There are so many tutorial available online but all are different. -- Thanks Regards Srikanth Software Developer eGovernments Foundations

Re: Struts2 Exception Handling

2013-06-21 Thread Lukasz Lenart
2013/6/21 Sreekanth S. Nair sreekanth.n...@egovernments.org: Hi, Can anyone point me a tutorial or reference for how to handle exception (uncaught or all exception). There are so many tutorial available online but all are different.

Re: Struts2 Exception Handling

2013-06-21 Thread Sreekanth S. Nair
Hi Lukasz, Thanks for your replay, i did the same way only, but there are some exception still going uncaught and showing the stacktrace to view. There was something called CatchAll, can you please tell me how to do it. -- Thanks Regards Srikanth Software Developer

Re: Struts2 Exception Handling

2013-06-21 Thread Sreekanth S. Nair
I already have the following settings in my struts.xml global-results result name=genericError/error/genericError.jsp/result result name=accessDeniedError/error/accessdenied.jsp/result result name=invalid.token/error/invalidrequest.jsp/result /global-results

Re: Struts2 Exception Handling

2013-06-21 Thread Lukasz Lenart
There is nothing like CatchAll in Struts 2, you define result per exception type global-exception-mappings exception-mapping exception=org.apache.struts.register.exceptions.SecurityBreachException result=securityerror / exception-mapping exception=java.lang.Exception result=error /

Re: Struts2 Exception Handling

2013-06-21 Thread Sreekanth S. Nair
Okay, but the error page i'm getting is default error page not the custom error page (more over i'm not using exceptionStack in my custom error page) -- Thanks Regards Srikanth Software Developer eGovernments Foundations www.egovernments.org Mob : 9980078913

Re: s:action tag showing result

2013-06-21 Thread Daniel Clemente Ivars
Hi! I'm facing not the same, but a strange behavior too with s:action tag since Struts version 2.3.12. I'm using them in similar way than Felipe, so it load some Lists to be used later for Select Fields filling. It worked well until change struts version form 2.3.8 to 2.3.12 and later. Now,

Re: Struts2 Exception Handling

2013-06-21 Thread Lukasz Lenart
Do you have devMode set to true? Which stack do you use in struts.xml? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/6/21 Sreekanth S. Nair sreekanth.n...@egovernments.org: Okay, but the error page i'm getting is default error page not the custom error page (more over i'm

Re: Struts2 Exception Handling

2013-06-21 Thread Sreekanth S. Nair
Yeah lukasz, you are correct i was working with devMode set to true, when i made it to false the custom exception page is coming.. Thanks a lot for reminding me this simple mistake. -- Thanks Regards Srikanth Software Developer eGovernments Foundations

Re: Struts2 Exception Handling

2013-06-21 Thread Sreekanth S. Nair
I need one more help regarding performance tuning for struts2, do you have any latest good link for it. -- Thanks Regards Srikanth Software Developer eGovernments Foundations www.egovernments.org Mob : 9980078913 On Fri, Jun

Re: s:action tag showing result

2013-06-21 Thread Felipe Lorenz
Hi Lukasz, I try struts v. 2.3.8, and everything works fine. But, the first version I've notice this strange behaviour was 2.3.12. I try to find the ftl file for the action tag, but I could no find it. There is a special file? How does it works? Thanks, Felipe Lorenz Gerente de Projetos

Re: s:action tag showing result

2013-06-21 Thread Daniel Clemente Ivars
I agree with Felipe. In version 2.3.8 all was fine, but from 2.3.12 all the problems with tags begun (action tags and field tags). Thanks Daniel Clemente Ivars De: Felipe Lorenz felipe.lor...@idealogic.com.br Para: Struts Users Mailing List user@struts.apache.org, Fecha:

Re: s:action tag showing result

2013-06-21 Thread Lukasz Lenart
Could you try with the latest (almost released) version 2.3.15? I was checking locally with struts2-blank app and everything works, but maybe my setup is a bit different. If so I will need an example app (maven based the best). Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/

Best Advanced Struts2 Book

2013-06-21 Thread Sreekanth S. Nair
Can anyone suggest a best advanced Struts2 book available now (with all recent updates of struts2) And any link pointing to Best Practices and Performance tuning for latest struts2

Re: s:action tag showing result

2013-06-21 Thread Felipe Lorenz
Thanks for all your help Lukasz, Looking with more attention (I know, sorry) my struts.xml and comparing with the json plugin wiki, my result was different. Before, I had: result name=json type=json And to fix the issue, I remove the name attribute. result type=json But, my question is, why

Re: Best Advanced Struts2 Book

2013-06-21 Thread Muralidhar Yaragalla
The following is the best http://struts.apache.org/release/2.3.x/docs/home.html There is nothing better than this. *Thanks And Regards,* Muralidhar Yaragalla.* (Visit My Blog http://yaragalla.blogspot.in) * On Fri, Jun 21, 2013 at 7:01 PM, Sreekanth S. Nair sreekanth.n...@egovernments.org

Re: s:action tag showing result

2013-06-21 Thread Lukasz Lenart
I have tested with struts2-blank and it works - I mean, executeResult is respected (as in 2.3.15). You can test that by simple removing all result definitions from struts.xml for that action. 2013/6/21 Felipe Lorenz felipe.lor...@idealogic.com.br: Thanks for all your help Lukasz, Looking with

Re: Best Advanced Struts2 Book

2013-06-21 Thread Sreekanth S. Nair
I admit it, but not good enough wrt examples. On Fri, Jun 21, 2013 at 7:11 PM, Muralidhar Yaragalla java.yaraga...@gmail.com wrote: The following is the best http://struts.apache.org/release/2.3.x/docs/home.html There is nothing better than this. *Thanks And Regards,* Muralidhar

Re: Best Advanced Struts2 Book

2013-06-21 Thread tkofford
I've always liked Struts 2 in Action http://www.manning.com/dbrown/ (http://www.manning.com/dbrown/) -TK -- View this message in context: http://struts.1045723.n5.nabble.com/Best-Advanced-Struts2-Book-tp5712837p5712843.html Sent from the Struts - User mailing list archive at Nabble.com.

Re: Best Advanced Struts2 Book

2013-06-21 Thread Dave Newton
Me too, although it's showing its age. My own S2 Web App Development covers more S2.1 functionality, but was intended to be more than a simple S2 book. I have three chapters of Inside Struts 2 and may end up just releasing it chapter-by-chapter. Dave On Fri, Jun 21, 2013 at 10:10 AM, tkofford

Re: s:action tag showing result

2013-06-21 Thread Felipe Lorenz
There is a maven repository for the snapshots? Felipe Lorenz Gerente de Projetos Idealogic Software Fone: (51) 3715 5523 - (51) 3715 5548 www.idealogic.com.br Em 21/06/2013, às 10:47, Lukasz Lenart escreveu: I have tested with struts2-blank and it works - I mean, executeResult is respected

Re: Best Advanced Struts2 Book

2013-06-21 Thread Antonio Sánchez
Books and more: http://struts.apache.org/development/2.x/docs/other-resources.html Perhaps MailReader example application: http://struts.apache.org/development/2.x/docs/tutorials.html El Viernes, 21 de junio de 2013 19:01:29 Sreekanth S. Nair escribió: Can anyone suggest a best advanced

Blank Archetype i18n fails

2013-06-21 Thread Antonio Sánchez
Also blank application example. My default locale is es_ES . Clicking on English still returns Spanish text. Renaming package.properties to package_en.properties makes it work. I'm not sure if this is the right place to report documentation, tutorial, examples... issues. Please let me know.

RE: s:action tag showing result

2013-06-21 Thread Litman, Bruno
We are also experiencing issues with tags and theme files, we are upgrading many applications from 2.3.4.1 to 2.3.14.3 I am not sure if this is related - if not and if I need to start a new discussion please let me know and accept my apology. 1/ We previously always coded forms as :