Generating Java constants class from message resources

2003-06-14 Thread Aaron Robinson
The most common approach I've seen to using error messages in code is set up a bunch of constants somewhere and then use these in the code... public class blah { private static int ERROR_CREATING_CLIENT = 1234; public void doThis() { raiseError(ERROR_CREATING_CLIENT) } } As

Basic session id question I'm embaraased to ask

2003-06-11 Thread Aaron Robinson
when creating hrefs using the link tag it will automagically encode the URL for you to support non cookie clients. Links are just one way the client can send a request back to the server. What happens to the URL assigned to the action on form submits? Presumably it still needs to be encoded -

Reasonable to use EJBs for validation in ActionForm validate method?

2003-06-10 Thread Aaron Robinson
For validation that can only be done against the database, should this go in the validate method or in the execute method? For example checking that a customer doesn't alerady exist before inserting it, or checking that a user has entered a valid address before the execute method is called to

Tiles and web.xml error-page declarations

2003-06-10 Thread Aaron Robinson
I want to set my webapp up to send all http errors and IO, Servlet and RuntimeExceptions to a generic error handling servlet. Are there any implication when using Tiles with this approach? _ It's fast, it's easy and it's free. Get

classloading error in struts

2003-06-09 Thread Aaron Robinson
I get the following error when requesting a page - any ideas or sugestions on the way forward very much apprec. 09-Jun-03 10:31:49 BST Error HTTP [WebAppServletContext(446862,SwanWebApp ,/ThisWebApp)] Root cause of ServletException java.lang.NoClassDefFoundError:

RE: classloading error in struts

2003-06-09 Thread Aaron Robinson
2003 18:45:18 +0800 Is your struts.jar in your webapps WEB-INF/lib? Do you have a struts.jar in a shared lib folder (problematic)? -Original Message- From: Aaron Robinson [mailto:[EMAIL PROTECTED] Sent: Monday, 9 June 2003 18:38 To: [EMAIL PROTECTED] Subject: classloading error in struts I

strange problem setting up struts

2003-06-09 Thread Aaron Robinson
I'm working through the readme with struts rc1.1 and get the following error from both Tomcat and WLS 8.1 when trying to start the servlet container after deploying the struts-examples war. The documentation war has deployed successfuly INFO: Initializing,

Problem starting server after deploying struts-examlpes jar rc 1.1

2003-06-09 Thread Aaron Robinson
Futrher to my previous post, the problem seems to be that the struts-examples war is trying to use the validator plug-in and on loading the validation rules through the WEB-XML/validator-rules.xml, it is failing to fing the DTD, because I am running offline. the DTD is looking for

RE: classloading error in struts

2003-06-09 Thread Aaron Robinson
else then Im afraid :-( -Original Message- From: Aaron Robinson [mailto:[EMAIL PROTECTED] Sent: Monday, 9 June 2003 18:47 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: classloading error in struts Yep, checked both of these, the struts lib is in the webapp lib

RE: classloading error in struts

2003-06-09 Thread Aaron Robinson
[EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: classloading error in struts Date: Mon, 9 Jun 2003 09:22:38 -0600 Where is the exception being thrown from? Is it in an action? or during the request? Brandon Goodin -Original Message- From: Aaron Robinson [mailto

Re: strange problem setting up struts

2003-06-09 Thread Aaron Robinson
solve the problem (I think!). A better solution is to download commons-validator 1.0.2 or just wait to download Struts 1.1 RC2 when it comes out in a few days. David -Kevin --- Aaron Robinson [EMAIL PROTECTED] wrote: I'm working through the readme with struts rc1.1 and get the following error

Re: strange problem setting up struts

2003-06-09 Thread Aaron Robinson
in a few days. David -Kevin --- Aaron Robinson [EMAIL PROTECTED] wrote: I'm working through the readme with struts rc1.1 and get the following error from both Tomcat and WLS 8.1 when trying to start the servlet container after deploying the struts-examples war. The documentation war has deployed

Showing errors on forms

2003-06-05 Thread Aaron Robinson
Struts 1.1 offers the ability to show a list of errors at the top of a form based on the errors from the ActionErrors class. Is there a way of getting struts to highlight the fields in error in any way? TIA _ Stay in touch with