Naming conventions for Struts actions, Tiles definitions and JSPs

2003-12-16 Thread Philip Mark Donaghy
Hello world, Naming conventions help organize large projects and facilitates the establishment of relationships between objects and entities configured in an XML file. My current project is using the following convention. The forward success path is similar to the action path. action path="/foo/

Re: Multiple struts-config files

2003-12-15 Thread Philip Mark Donaghy
In Struts 1.1, you have two options: you can list multiple struts-config files as a comma-delimited list, or you can subdivide a larger application into modules. Do so in the web.xml file. Add the tag to the tag. config /WEB-INF/conf/struts-default.xml,another-struts-config.xml -

Re: Struts Exception Handling

2003-11-25 Thread Philip Mark Donaghy
Hi Baljinder, The best approach that I know of is to create an Exception for each type of expected error, like a duplicate key in a DAO. Then create a message in a global message resource for each full class name so that the key is unique. Example, java.lang.Exception=Something bad happened dud

Re: Problem

2003-11-21 Thread Philip Mark Donaghy
Hi Gurpreet, It could be that you used case insensitive links and references to files and links. Verify that first. Then look at your file paths are there any file paths that contain the \ character. Linux uses the / character as the file separator. Phil --- Gurpreet Dhanoa <[EMAIL PROTECTED]>

RE: Using Tiles Definitions In Standard Links?

2003-11-19 Thread Philip Mark Donaghy
A link can be made to this jsp : <%@ page language="java" %> <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %> Tiles are processed and the page returned corresponds the tile defined by the attribute definition. This is the way the web app tiles-documentation does it. Phil = J

Which version of Commons Digester released with Struts 1.1

2003-11-06 Thread Philip Mark Donaghy
I would like to debug a problem that I have with Digester. The error is : java.lang.NoSuchMethodException: No such accessible method: addFormBeanConfig() on object: java.lang.String How can I get the version number of Commons Digester that is distributed with Struts 1.1. Phil = Java Web App

Which version of Commons Digester released with Struts 1.1

2003-11-06 Thread Philip Mark Donaghy
I would like to debug a problem that I have with Digester. The error is : java.lang.NoSuchMethodException: No such accessible method: addFormBeanConfig() on object: java.lang.String How can I get the version number that is distributed with Struts 1.1. Phil = Java Web Application Architect m

Re: Best Practices in Struts for Form objects?

2003-11-06 Thread Philip Mark Donaghy
If all of your Forms have exactly the same properties then use the same form mapping for all your actions. If all of your Forms share some properties then use different forms for each action. Each of these forms would extend a generic form which extends of course ActionForm or ValidatorForm. Phil

RE: html:submit and 2 buttons

2003-11-06 Thread Philip Mark Donaghy
Your action can read the value attribute of your submit tag. This is the label in your case. Use the request.getParameter to find out which button was clicked. Give each of your submit buttons a different NAME. request.getParameter(NAME) will return the label of the submit button clicked or null

Re: Locale - how to set?

2003-10-30 Thread Philip Mark Donaghy
--- Frers Michael <[EMAIL PROTECTED]> wrote: > Hello > > just a simple question > > how can set the actual used local? > > i have two propertie files: > > application.properties > application_de.properties > application_en.properties > > struts takes as default application_de.properties > >

Re: How do I disable struts logging?

2003-10-30 Thread Philip Mark Donaghy
--- Jeremy Nix <[EMAIL PROTECTED]> wrote: > The debug init-param no longer works with v1.1 I'm not sure about that? But... > what other options do > we have on disable the struts internal logging? I found this nice log4j config file xml. I am using log4j version 1.2.8 and it outputs all org.apac

Re: Request PRocessor

2003-10-21 Thread Philip Mark Donaghy
Abhijeet, I have created Request PreProcessors. You create a class that extends RequestProcessor and overrides the method processPreprocess. You do whatever you want in that method (logging, security, and session validation is useful) and it will be executed before every action is executed. It mus

Re: Presentation of the errors in the bottom of a page

2003-10-21 Thread Philip Mark Donaghy
Benoit, It might be interesting for you to put more than one occurence of . One at the top of the page and one at the bottom. The same messages will appear twice and your user is sure to get the point. Phil --- BenoƮt_Segaert <[EMAIL PROTECTED]> wrote: > I am working on a page with a FORM in th

Re: logs

2003-10-16 Thread Philip Mark Donaghy
When I put a log4j.properties in my TOMCAT4_HOME/shared/classes directory the console went wild. This could help if you are debugging Tomcat and your application. Phil __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.

RE: logs

2003-10-16 Thread Philip Mark Donaghy
--- "Gilbert, Antoine" <[EMAIL PROTECTED]> wrote: > can i use something like that ? directly ? > > log4j.category.org.apache=DEBUG I got this sample log4j.properties from the log4j short manual. # Set root logger level to DEBUG and its only appender to A1. log4j.rootLogger=DEBUG, A1 # A1 is se