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/
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
-
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
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]>
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
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
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
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
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
--- 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
>
>
--- 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
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
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
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.
--- "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
15 matches
Mail list logo