Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
-none-

-none-

2007-09-03       - By Don Brown

 Back
Yes, the way to specify the location is the 'config' parameter in
web.xml, however, it will try to load the path from the classpath, not
the webapp root.  If you do specify it, it is recommended to add to
the existing - 'struts-default.xml,struts-plugin.xml,struts.xml' -
rather than replacing it, as features like plugins will fail to work.

Specifying 'config' in web.xml is a per-web app setting, so specifying
it in two webapps should be ok.

Don

On 8/31/07, Lane, Ron <ron.lane@(protected)> wrote:
> Zarar,
> This probably won't do the trick, since the classpath is for the entire
> Java Application server, and struts.properties is then for the entire
> Java App server.  Then the new name of struts.xml would apply to all the
> web apps in the Java app server. We need a parm that is in web.xml, so
> it is specific to the web application, so each web app could have its
> own name for struts.xml.  This is in essence what the config "init" parm
> in web.xml did for Struts1 - each web app could specify its own name for
> the config file.
> Ron
>
> -- --Original Message-- --
> From: Zarar Siddiqi [mailto:zarars@(protected)]
> Sent: Thursday, August 30, 2007 2:41 PM
> To: Struts Users Mailing List
> Subject: Re: Can you specify the name of struts.xml for Struts2?
>
> The struts.configuration.files property in struts.properties at the root
> of your classpath can specify struts configuration files using a comma
> separated list, by default this property is set to:
>
> struts.configuration.files=struts-default.xml,struts-plugin.xml,struts.x
> ml
>
> You can change it if you like.
>
> Zarar
>
> On 8/30/07, Lane, Ron <ron.lane@(protected)> wrote:
> > We're having a problem with Struts2 running under Jrun.
> > The 'web application class loader' in Jrun is not finding struts.xml
> > in WEB-INF/classes.
> > We can put struts.xml in the overall classpath of the Java application
>
> > server, but then that means only one per Java app server.
> >
> > 1. Has anyone else experienced this problem and have a solution or
> > workaround?
> > 2. In Struts-1 (See http://uts-1.ora-code.com), one could specify a name of the struts config file -
> > is there a way in web.xml to specify an alternative name of
> struts.xml?
> > That way each of the web apps can specify its unique name, and even
> > though all the config files are in the overall classpath, they can be
> > unique per web app by having a unique name.
> >
> > Ron Lane
> >
> > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >
>
> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.