AW: exception message

"Bernhard Woehrlin" <[email protected]>
Newsgroups gmane.comp.java.strutscx.user
Organization IT.CappuccinoNet.com
Message-ID <000301c35100$f766b8a0$4c01a8c0@javaws>
Hi Nitin,

since StrutsCX v0.9.3 you can plug out/in the use of the
StrutsCX-Rosource-Properties (variables_xx.xml). The
StrutsCXDocumentBuilder does not any longer throw an Exception if no
such file is provided.

If you need an error message in the XSL Stylesheet make sure it will be
present in the XML-Output-Document. A simple way to do this would be in
your Action to put the message to the HttpServletRequest.

StrutsCX uses the ActionError objects basically as a flag for an error
that occurred. It does not make use of the Struts ActionMessages...

Consider to use the Struts Validator, too. If you once understood the
concept you can handle validation logic through configuring some xml
files (struts-config.xml, validator.xml). Your input will then be error
proofed far before it ever gets to any Business-Delegate.

Regards,

Berny

-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Nitin
Gaur
Gesendet: Mittwoch, 23. Juli 2003 07:04
An: [email protected]
Betreff: [Strutscx-user] exception message

Hi,
What I think, if I use ActionErrors, I need to retreive text from
resource xml.
But I want to pass my application exception message text (thrown by
business delegate) as it is. 
 
Is it possible using ActionErrors? or the only way is to add it to xml
doc in Action 
and access it from xsl.
 
Any thoughts?
 
Thanks
-Nitin



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.