Can I access URL parameters within struts.xml using ognl ?

2007-10-02 Thread mikeh96
I would like to do something like this: (e.g. http://foo/view.action?page=help.vm) /templates/screens/#request['page'] I know I can do it if I write my own action with setters/getters for the parameter .. but I was wondering if I can use some ognl syntax or other (e.g. $

Re: Struts 2: Unable to catch exceptions via global-exception-mappings

2007-10-01 Thread mikeh96
the previous posting seems to not like the \ You are right... I am just trying to catch those rare events. Now here's something crazy: (and I have checked, and double checked, restarted server, etc). BUT if I add a to my action, the exception mapping WORKS. If I take it away, the exce

Re: Struts 2: Unable to catch exceptions via global-exception-mappings

2007-10-01 Thread mikeh96
truction is complete, exceptions such as the > one you are getting are never thrown, because the paths through the site > are well know. > > /Ian > > mikeh96 wrote: >> Thanks for the clarification. Is the solution of extending >> VelocityResult >> and configurin

Re: Struts 2: Unable to catch exceptions via global-exception-mappings

2007-10-01 Thread mikeh96
est to a template that will not exist? I find that > most of the time, once construction is complete, exceptions such as the > one you are getting are never thrown, because the paths through the site > are well know. > > /Ian > > mikeh96 wrote: >> Thanks for the c

Re: Struts 2: Unable to catch exceptions via global-exception-mappings

2007-10-01 Thread mikeh96
ic, and not > developer-based configuration which will usually be managed during the > construction phase. > > /Ian > > mikeh96 wrote: >> thanks for looking. I pasted the full stack trace below. I am not >> using >> any home grown action code (yet). This is

Re: Struts 2: Unable to catch exceptions via global-exception-mappings

2007-10-01 Thread mikeh96
ecute() (or equivalent) > business logic method? This is where the exception handler interceptor > is applied. It seems like the exception you are receiving is from a > rendering phase outside the execution of the actions logic. > > /Ian > > > > mikeh96 wrote: >>

Re: Struts 2: Unable to catch exceptions via global-exception-mappings

2007-10-01 Thread mikeh96
Brian- > > On Sep 30, 2007, at 9:43 PM, mikeh96 wrote: > >> >> I am unable to trap an exception and it's being pushed up until it >> becomes a >> 500 Servlet Exception. >> >> Basically, I want to catch the exception if a user mistypes an >&

Struts 2: Unable to catch exceptions via global-exception-mappings

2007-09-30 Thread mikeh96
I am unable to trap an exception and it's being pushed up until it becomes a 500 Servlet Exception. Basically, I want to catch the exception if a user mistypes an action name I am using struts2 (2.0.9). Here's the top of the trace: org.apache.velocity.exception.ResourceNotFoundException: Unable