Hi,
I came across this, which may be of interest to
others, when debugging OPS:
Problem:
1) An Xform submits to a Struts
action.
2) The action throws exception.
3) Exception handling has been configured
declaratively in config.xml to use a velocity template for displaying an error
page.
4) Velocity throws an excpetion because it cannot
find a template called .
Cause:
At runtime OPS
passes an instance of ExternalContextToHttpServletRequestWrapper to the Struts action.
This object's getServletPath() method in turn calls getServletPath() on an
member variable of type ForwardExternalContextRequestWrapper. The
problem is that this method always returns an empty string. Conequentially the
VelocityViewServlet handleRequest() method always fails when it tries to get the
template name from the servlet path.
Jonathan
Skype:
jonathan.j.wright
--
You receive this message as a subscriber of the
[hidden email] mailing list.
To unsubscribe: mailto:
[hidden email]
For general help: mailto:
[hidden email]?subject=help
ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws