How to get MyException from ExceptionHandler

2004-10-08 Thread Ralf Schneider
I want to implement an application specific exception handling for my struts application. So, I defined my own Exception class that extends a normal Exception by an error code and the filename where the exception occured: public class MyException extends Exception { private int

Application specific Exception Handling

2004-10-05 Thread Ralf Schneider
Hi, I try to implement an application specific exception handling. Therefor I created a class that extends ExceptionHandler and my own Exception class that has variables for holding an error code and the filename where the exception occured. When I generate a NullPointerException I generate a

Multiple Resource Bundles

2004-07-20 Thread Ralf Schneider
Hi, I try to use multiple resource bundles that get the strings from a database in an environment using JBoss, Struts and Velocity. I have defined two message-resources in struts-config.xml: message-resources factory=com.bk.web.struts.BKWebStringResourceFactory

MessageResources Problem in Action

2004-06-01 Thread Ralf Schneider
Hi, I want to access the strings in a resource bundle from within an action. I have two resource files (ApplicationResources.properties and ApplicationResources_de.properties) and they are accessed correctly from the JSP, but not from the action. When I look at the locale with

Re: MessageResources Problem in Action

2004-06-01 Thread Ralf Schneider
Am Dienstag, 1. Juni 2004 15:15 schrieb None None: I use the following code: myActionForm.setMessage(getResources(request).getMessage(getLocale(request) , messages.deleteFailed)); Great! This works fine! The only thing that I missed was to get the locale from the request. Thanks, Ralf.

Re: Special Characters (german Umlaute)

2004-05-04 Thread Ralf Schneider
Am Montag, 3. Mai 2004 21:57 schrieb Ruth, Brice: You can use the native2ascii application that is bundled with your JDK to automatically convert your native-encoded file with umlauts to \u format encodings. Thanks, works fine! The only thing I have to manage now is to automate this task

Re: How to use resource bundle in attributes

2004-05-03 Thread Ralf Schneider
}/ /fmt:message Nathan On May 3, 2004, at 8:44 AM, Ralf Schneider wrote: Could you give a short example of how this can be done with JSTL or point me to an example? I looked into the Java Web Services Tutorial, but the chapter about internationalization with JSTL only describes the use

Re: How to use resource bundle in attributes

2004-05-03 Thread Ralf Schneider
Yes! That's exactly what I was looking for. Thanks a lot! I missed this attribute when looking through the endless list of attributes of the HTML taglib. Ralf. Am Montag, 3. Mai 2004 18:28 schrieb bOOyah: Ralf Schneider wrote: how can a use internationalized text strings stored

Special Characters (german Umlaute)

2004-05-03 Thread Ralf Schneider
Hi, my web application loads german strings from a resource bundle. Unfortunately, the special characters (german Umlaute like , , ) are displayed incorrectly if they come from the resource bundle. When I write them directly into the HTML code they are displayed correctly. At the beginning of

Re: Problem with Data Source Definition

2004-04-21 Thread Ralf Schneider
Am Dienstag, 20. April 2004 08:53 schrieb Xuemin Guan: Tomcat (5.0.19) comes together with commons-pool-1.1.jar, which is under CALINA_HOME/common/lib. This directory is both seen by container and you web applications. So, I guess the problem is not cause by the lack of commons-pool-1.1.jar.

Problem with Data Source Definition

2004-04-19 Thread Ralf Schneider
Hi, I'm trying to setup Struts 1.1 with a database connection using DBCP 1.1 to connect to a SAP DB 7.4 database. Unfortunately, I get the following error during startup of Tomcat (5.0.19): StandardContext[/demo_03]Servlet /demo_03 threw load() exception javax.servlet.UnavailableException:

Re: Struts with Tomcat and Apache

2004-04-10 Thread Ralf Schneider
. -- ## Ralf Schneider ## Software Engineering - IT Research ## Fürstenallee 14, 34454 Bad Arolsen ## www.rs-soft-eng.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Problem with Struts example apps

2004-04-10 Thread Ralf Schneider
Hi, after copying the example apps that come with struts 1.1 into the webapps directory of my Tomcat 5.0.16, I wanted to try them. But when I try to access them (e.g. struts-blank) I get the following error: exception javax.servlet.ServletException:

Problem with Struts example apps

2004-04-10 Thread Ralf Schneider
Hi, after copying the example apps that come with struts 1.1 into the webapps directory of my Tomcat 5.0.16, I wanted to try them. But when I try to access them (e.g. struts-blank) I get the following error: exception javax.servlet.ServletException:

Re: Struts with Tomcat and Apache

2004-04-10 Thread Ralf Schneider
. -- ## Ralf Schneider ## Software Engineering - IT Research ## Fürstenallee 14, 34454 Bad Arolsen ## www.rs-soft-eng.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Struts with Tomcat and Apache

2004-04-09 Thread Ralf Schneider
Hi, I'm new to Struts and I'm trying to install Struts 1.1 with Tomcat 5.0.16 and Apache 2.0.48. The documentation only talks about Tomcat 3.x. My first try was to follow these instructions for Tomcat 3.2.1. I copied the war files included with the binary distribution into the webapps