How to get Exception info when I use global exception mappings?
I use "global-exception-mappings" to catch global exception in my project. for example, in my struts config file, I use following to handle exception /common/exception.jsp /common/myexception.jsp Here, it can redirect to error page when some exception occures. My question is: how can I get the exception info in the jsp page? For example, I hope display the exception message or exception stack in the jsp page. -- View this message in context: http://www.nabble.com/How-to-get-Exception-info-when-I-use-global-exception-mappings--tf3781586.html#a10694515 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to get Exception info when I use global exception mappings?
Thanks for your help, I got it. Guillaume Carré wrote: > > 2007/5/19, Kristian Duske <[EMAIL PROTECTED]>: >> See here: >> http://struts.apache.org/2.0.6/docs/exception-interceptor.html >> >> It's on the value stack, wrapped in an instance of ExceptionHolder. > > and see here too: > > http://struts.apache.org/2.x/docs/exception-configuration.html > -- > Guillaume Carré > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/How-to-get-Exception-info-when-I-use-global-exception-mappings--tf3781586.html#a10702235 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to specify the Resource Bundle Search path?
I see http://cwiki.apache.org/confluence/display/WW/Localization page has the description about Resource Bundle Search path. But I have a question, In my project we have too many resource properties files for one module. We hope we can storage these files under a directory,(for example, under com/module/resource/ directory). How can I do? I know we can define these in struts.properties, but it's not so good for us. Also, the package.properties file is not so good for us. I remember in struts1.x, we can specify the resource message files in struts-module.xml file for one module. Could struts2 provides this feature? Can you give us some suggestions? Thanks -- View this message in context: http://www.nabble.com/How-to-specify-the-Resource-Bundle-Search-path--tf3802633.html#a10759648 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Why I cannot use Interceptor to change the value of Action?
Thanks for your help, I got it. Dave Newton-4 wrote: > > --- kong xx <[EMAIL PROTECTED]> wrote: >> Why the interceptor cannot change the value after >> invode invocation.invoke() method? > > http://struts.apache.org/2.x/docs/writing-interceptors.html > > Note in particular the "big yellow box" section about > when the "invoke" method returns! > > d. > > > > > Give > spam the boot. Take control with tough spam protection in the all-new > Yahoo! Mail Beta. > http://advision.webevents.yahoo.com/mailbeta/newmail_html.html > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Why-I-cannot-use-Interceptor-to-change-the-value-of-Action--tf3764097.html#a10643197 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]