Re: Blank Archetype i18n fails

2013-06-21 Thread Lukasz Lenart
2013/6/21 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.

I don't think so it's a bug - those applications were prepared with
assumptions that the default lang is English so package.properties is
the default translation file with English labels. Simple, if there be
request with not supported locale, application will fallback to the
default translation which is English.


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 : 

Now randomly, this fails to generate the proper action url in the html (it is 
missing the '.action', which results in a 404 once you post the form)

The only workaround we have found so far is to add the '.action' suffix to the 
s:form's action attribute. Before it was always added for us by struts. 
So now we are having success with 
...

Is this expected behavior? Did this change recently? 2.3.4.1 is not so ancient..

2/ 

We are trying to replace the "required" attribute in the textfields with 
"requiredLabel" without success. Was the xhtml theme's ftl file 
"controlheader_core" updated to reflect the changes in the struts-tags.tld 
(requiredLabel replaced required)? 

Also, it seems applications are randomly serving ftl files from other 
applications' theme folders with the same name.
 This was demonstrated by modifying something obvious in one application's ftl 
file (displaying some text next to a text field's label), and the effect can be 
seen randomly on other applications which shouldn’t even see that application's 
template folder (the themes are however named the same in both applications)
I am only able to make the "requiredLabel" attribute work if placed in a 
 tag as opposed to being just an attribute of the s:textfield tag, but 
even so it is still not always using the same ftl files (however always from 
similarly named themes placed inside each application)

This is extremely confusing. Is FreeMarker caching files independently of the 
application? Is the app container interfering with caching? (We are using Resin 
4.0.36)

Any help would be greatly appreciated
Thank you in advance

Bruno Litman

-Original Message-
From: Daniel Clemente Ivars [mailto:daniel.cleme...@boluda.com.es] 
Sent: Friday, June 21, 2013 7:43 AM
To: Struts Users Mailing List
Subject: Re: s:action tag showing result

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 
Para:   "Struts Users Mailing List" , 
Fecha:  21/06/2013 14:30
Asunto: Re: s:action tag showing result



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
Idealogic Software
Fone: (51) 3715 5523 - (51) 3715 5548
www.idealogic.com.br

Em 21/06/2013, às 02:34, Lukasz Lenart escreveu:

> Have you tried to use the previous versions?
> 
> 
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
> 
> 2013/6/20 Felipe Lorenz :
>> Hi all,
>> 
>> I have been using struts quite a long time, but in the last days I 
>> have
faced a strange behaviour of s:action tag.
>> 
>> In my JSP I am using the tag action to load list to be used to mount 
>> my
s:select. But in the redered HTML, the result of the action is showing, even 
when the executeResult is false.
>> 
>> There is something I missing?
>> 
>> 
>> JSP code:
>> 
>> 
>> >label="%{getText('global.lbl_nmEstado')}"
>>name="cidade.estado.idEstado"
>>listKey="idEstado"
>>listValue="nmEstado"
>>list="#estado.estados"
>>emptyOption="true"
>>id="estadoCombo"
>>tooltip="%{getText('global.hint_nmEstado')}"/>
>> 
>> struts.xml:
>> 
>> 
>>
>>
>>^estados\[\d+\]\.idEstado,
>>^estados\[\d+\]\.nmEstado
>>
>>
>> 
>> 
>> As you can see, in the struts.xml, I have only json result, and I 
>> only
need as json, but when I use the action tag, I just only need the populated 
list to be used in the select tag. It is working very well, but the problem is 
that the json result is showing in the HTML. And it is showing in the top, not 
in the action tag position, what is strange.
>> 
>> Also, I try to change the struts.devMode to false, but nothing changes.
>> 
>> The project is using struts 2.3.14.3 with rest-plugin. But for this
kind ok action, I avoid rest and use just json-plugin.
>> 
>> Please, if need any further info, ask me!
>> 
>> Thanks in advance.
>> 
>> 
>> Felipe Lorenz
>> 
>> 
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>> 
> 
> -

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. 

Regards.
Antonio.

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 Struts2 book available now (with all
> recent updates of struts2)
> 
> And any link pointing to Best Practices and Performance tuning for latest
> struts2

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 (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 :
>> 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:
>> 
>> 
>> And to fix the issue, I remove the name attribute.
>> 
>> 
>> 
>> But, my question is, why does it affect the action tag? I understand that 
>> using executeResult = false should be respected.
>> 
>> Att,
>> 
>> Felipe Lorenz
>> Gerente de Projetos
>> Idealogic Software
>> Fone: (51) 3715 5523 - (51) 3715 5548
>> www.idealogic.com.br
>> 
>> Em 21/06/2013, às 10:15, Lukasz Lenart escreveu:
>> 
>>> 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/
>>> 
>>> -
>>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>>> For additional commands, e-mail: user-h...@struts.apache.org
>>> 
>> 
>> 
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>> 
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 



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  wrote:

> I've always liked
> Struts 2 in Action 
> (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.
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


-- 
e: davelnew...@gmail.com
m: 908-380-8699
s: davelnewton_skype
t: @dave_newton 
b: Bucky Bits 
g: davelnewton 
so: Dave Newton 


Re: Best Advanced Struts2 Book

2013-06-21 Thread tkofford
I've always liked
Struts 2 in Action   
(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.

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 Yaragalla.*
> (Visit My Blog )
> *
>
>
> On Fri, Jun 21, 2013 at 7:01 PM, Sreekanth S. Nair <
> sreekanth.n...@egovernments.org> wrote:
>
> > 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 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 :
> 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:
> 
>
> And to fix the issue, I remove the name attribute.
>
> 
>
> But, my question is, why does it affect the action tag? I understand that 
> using executeResult = false should be respected.
>
> Att,
>
> Felipe Lorenz
> Gerente de Projetos
> Idealogic Software
> Fone: (51) 3715 5523 - (51) 3715 5548
> www.idealogic.com.br
>
> Em 21/06/2013, às 10:15, Lukasz Lenart escreveu:
>
>> 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/
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 )
*


On Fri, Jun 21, 2013 at 7:01 PM, Sreekanth S. Nair <
sreekanth.n...@egovernments.org> wrote:

> 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:


And to fix the issue, I remove the name attribute.



But, my question is, why does it affect the action tag? I understand that using 
executeResult = false should be respected.

Att,

Felipe Lorenz
Gerente de Projetos
Idealogic Software
Fone: (51) 3715 5523 - (51) 3715 5548
www.idealogic.com.br

Em 21/06/2013, às 10:15, Lukasz Lenart escreveu:

> 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/
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 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/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 
Para:   "Struts Users Mailing List" , 
Fecha:  21/06/2013 14:30
Asunto: Re: s:action tag showing result



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
Idealogic Software
Fone: (51) 3715 5523 - (51) 3715 5548
www.idealogic.com.br

Em 21/06/2013, às 02:34, Lukasz Lenart escreveu:

> Have you tried to use the previous versions?
> 
> 
> Regards
> -- 
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
> 
> 2013/6/20 Felipe Lorenz :
>> Hi all,
>> 
>> I have been using struts quite a long time, but in the last days I have 
faced a strange behaviour of s:action tag.
>> 
>> In my JSP I am using the tag action to load list to be used to mount my 
s:select. But in the redered HTML, the result of the action is showing, 
even when the executeResult is false.
>> 
>> There is something I missing?
>> 
>> 
>> JSP code:
>> 
>> 
>> >label="%{getText('global.lbl_nmEstado')}"
>>name="cidade.estado.idEstado"
>>listKey="idEstado"
>>listValue="nmEstado"
>>list="#estado.estados"
>>emptyOption="true"
>>id="estadoCombo"
>>tooltip="%{getText('global.hint_nmEstado')}"/>
>> 
>> struts.xml:
>> 
>> 
>>
>>
>>^estados\[\d+\]\.idEstado,
>>^estados\[\d+\]\.nmEstado
>>
>>
>> 
>> 
>> As you can see, in the struts.xml, I have only json result, and I only 
need as json, but when I use the action tag, I just only need the 
populated list to be used in the select tag. It is working very well, but 
the problem is that the json result is showing in the HTML. And it is 
showing in the top, not in the action tag position, what is strange.
>> 
>> Also, I try to change the struts.devMode to false, but nothing changes.
>> 
>> The project is using struts 2.3.14.3 with rest-plugin. But for this 
kind ok action, I avoid rest and use just json-plugin.
>> 
>> Please, if need any further info, ask me!
>> 
>> Thanks in advance.
>> 
>> 
>> Felipe Lorenz
>> 
>> 
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>> 
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 



.
.


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
Idealogic Software
Fone: (51) 3715 5523 - (51) 3715 5548
www.idealogic.com.br

Em 21/06/2013, às 02:34, Lukasz Lenart escreveu:

> Have you tried to use the previous versions?
> 
> 
> Regards
> -- 
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
> 
> 2013/6/20 Felipe Lorenz :
>> Hi all,
>> 
>> I have been using struts quite a long time, but in the last days I have 
>> faced a strange behaviour of s:action tag.
>> 
>> In my JSP I am using the tag action to load list to be used to mount my 
>> s:select. But in the redered HTML, the result of the action is showing, even 
>> when the executeResult is false.
>> 
>> There is something I missing?
>> 
>> 
>> JSP code:
>> 
>> > flush="false" />
>> >label="%{getText('global.lbl_nmEstado')}"
>>name="cidade.estado.idEstado"
>>listKey="idEstado"
>>listValue="nmEstado"
>>list="#estado.estados"
>>emptyOption="true"
>>id="estadoCombo"
>>tooltip="%{getText('global.hint_nmEstado')}"/>
>> 
>> struts.xml:
>> 
>> > class="br.com.seedingControl.action.EstadoAction">
>>
>>
>>^estados\[\d+\]\.idEstado,
>>^estados\[\d+\]\.nmEstado
>>
>>
>> 
>> 
>> As you can see, in the struts.xml, I have only json result, and I only need 
>> as json, but when I use the action tag, I just only need the populated list 
>> to be used in the select tag. It is working very well, but the problem is 
>> that the json result is showing in the HTML. And it is showing in the top, 
>> not in the action tag position, what is strange.
>> 
>> Also, I try to change the struts.devMode to false, but nothing changes.
>> 
>> The project is using struts 2.3.14.3 with rest-plugin. But for this kind ok 
>> action, I avoid rest and use just json-plugin.
>> 
>> Please, if need any further info, ask me!
>> 
>> Thanks in advance.
>> 
>> 
>> Felipe Lorenz
>> 
>> 
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>> 
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 



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 21, 2013 at 12:36 PM, Sreekanth S. Nair <
sreekanth.n...@egovernments.org> wrote:

> 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
> www.egovernments.org
> Mob : 9980078913
> 
>
>
> On Fri, Jun 21, 2013 at 12:27 PM, Lukasz Lenart 
> wrote:
>
>> 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 :
>> > 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
>> > 
>> >
>> >
>> > On Fri, Jun 21, 2013 at 12:14 PM, Lukasz Lenart <
>> lukaszlen...@apache.org>wrote:
>> >
>> >> There is nothing like CatchAll in Struts 2, you define result per
>> >> exception type
>> >>
>> >> 
>> >> > >>
>> exception="org.apache.struts.register.exceptions.SecurityBreachException"
>> >> result="securityerror" />
>> >> > />
>> >> 
>> >>
>> >> so all other exceptions than SecurityBreachException will be directed
>> >> to result "error" and error.jsp prints the stacktrace as well:
>> >>
>> >> Exception Details: 
>> >>
>> >> so maybe remove that line and your are done.
>> >>
>> >>
>> >> Regards
>> >> --
>> >> Łukasz
>> >> mobile +48 606 323 122 http://www.lenart.org.pl/
>> >>
>> >> 2013/6/21 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
>> >> > 
>> >> > eGovernments Foundations
>> >> > www.egovernments.org
>> >> > Mob : 9980078913
>> >> > 
>> >> >
>> >> >
>> >> > On Fri, Jun 21, 2013 at 11:50 AM, Lukasz Lenart <
>> lukaszlen...@apache.org
>> >> >wrote:
>> >> >
>> >> >> 2013/6/21 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.
>> >> >>
>> >> >>
>> http://struts.apache.org/development/2.x/docs/exception-handling.html
>> >> >>
>> >> >>
>> >> >> Regards
>> >> >> --
>> >> >> Łukasz
>> >> >> + 48 606 323 122 http://www.lenart.org.pl/
>> >> >>
>> >> >>
>> -
>> >> >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> >> >> For additional commands, e-mail: user-h...@struts.apache.org
>> >> >>
>> >> >>
>> >>
>> >> -
>> >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> >> For additional commands, e-mail: user-h...@struts.apache.org
>> >>
>> >>
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>


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
www.egovernments.org
Mob : 9980078913



On Fri, Jun 21, 2013 at 12:27 PM, Lukasz Lenart wrote:

> 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 :
> > 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
> > 
> >
> >
> > On Fri, Jun 21, 2013 at 12:14 PM, Lukasz Lenart  >wrote:
> >
> >> There is nothing like CatchAll in Struts 2, you define result per
> >> exception type
> >>
> >> 
> >>  >>
> exception="org.apache.struts.register.exceptions.SecurityBreachException"
> >> result="securityerror" />
> >> 
> >> 
> >>
> >> so all other exceptions than SecurityBreachException will be directed
> >> to result "error" and error.jsp prints the stacktrace as well:
> >>
> >> Exception Details: 
> >>
> >> so maybe remove that line and your are done.
> >>
> >>
> >> Regards
> >> --
> >> Łukasz
> >> mobile +48 606 323 122 http://www.lenart.org.pl/
> >>
> >> 2013/6/21 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
> >> > 
> >> > eGovernments Foundations
> >> > www.egovernments.org
> >> > Mob : 9980078913
> >> > 
> >> >
> >> >
> >> > On Fri, Jun 21, 2013 at 11:50 AM, Lukasz Lenart <
> lukaszlen...@apache.org
> >> >wrote:
> >> >
> >> >> 2013/6/21 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.
> >> >>
> >> >>
> http://struts.apache.org/development/2.x/docs/exception-handling.html
> >> >>
> >> >>
> >> >> Regards
> >> >> --
> >> >> Łukasz
> >> >> + 48 606 323 122 http://www.lenart.org.pl/
> >> >>
> >> >> -
> >> >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> >> >> For additional commands, e-mail: user-h...@struts.apache.org
> >> >>
> >> >>
> >>
> >> -
> >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> >> For additional commands, e-mail: user-h...@struts.apache.org
> >>
> >>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>