Well, no, you need to follow the DTD.
Dave
On Mon, Sep 27, 2010 at 7:52 PM, Ken ken.mcwilli...@aerose.com wrote:
This has been driving me nuts...
The following works in my code (typed by hand not copied from source):
struts
!-- If I add the missing content (found below) HERE, then this
Hi Ken:
In the DTD file, it is defined:
!ELEMENT package (result-types?, interceptors?, default-interceptor-ref?,
default-action-ref?, default-class-ref?, global-results?,
global-exception-mappings?, action*)
That means, you should add the definition of interceptor
as children nodes of the
struts.properties
http://struts.apache.org/2.0.11/docs/strutsproperties.html
On Fri, Mar 26, 2010 at 8:03 AM, Bhaarat Sharma bhaara...@gmail.com wrote:
Hi,
If the same property is set in struts.xml and struts.properties which one
takes precedence? also, is there any documentation where
This page shows the search order:
http://struts.apache.org/2.x/docs/constant-configuration.html
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
Subject: Re: struts.xml vs struts.properties which takes a precedence?
From: aum.str...@gmail.com
To: user@struts.apache.org
struts.properties
http://struts.apache.org/2.0.11/docs/strutsproperties.html
On Fri, Mar 26, 2010 at 8:03 AM, Bhaarat Sharma bhaara...@gmail.com wrote:
Hi
struts-default.xml can be found in the struts2-core jar (mine is
struts2-core-2.0.11.jar but YMMV).
struts-tags.tld is in the same jar, under META-INF.
On Wed, Apr 30, 2008 at 12:51 PM, Vinay Nagrik [EMAIL PROTECTED] wrote:
Hello Group,
I was building my first HelloWorld web application and
Vinay Nagrik wrote:
[...]
%@ taglib prefix=s uri=/struts-tags %
What is the meaning of prefix and uri=/struts-tags % and if I can look at
this file/page.
[...]
If you aren't familiar with Servelts, Java Server Pages and Java web
application development in general, I strongly recommend
All this is linked right from the Core Developers Guide at
http://struts.apache.org/2.x/docs/guides.html. Click the result types link
and there you go.
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
From: Ian Meikle [EMAIL PROTECTED]
Reply-To: Struts Users Mailing
.
-
Randy Burgess [EMAIL PROTECTED]
09.04.2008 16:37
Please respond to
Struts Users Mailing List user@struts.apache.org
To
Struts Users Mailing List user@struts.apache.org
cc
Subject
Re: struts.xml
All this is linked right from the Core Developers Guide at
http
Well this give me some info, but for example
it does not explain what all the valid values of the type attribute are
and what each value means.
Is this documented anywhere ?
Look into the struts2-core.jar and find struts-default.xml, that will
give more information, then you can look
1:40 PM
Subject: Re: struts.xml
Hi Lukasz,
Thanks very much for that. This has given me the info I needed.
Regards
Ian
CSC Solutions Norge AS
Registered Office: SandsliƄsen 57, 5254 Sandsli, Norway
Registered in Norway No: 958 958 455
);
dispatcher.init();
Dispatcher.setInstance(dispatcher);
-Original Message-
From: Relph,Brian [mailto:[EMAIL PROTECTED] Sent: Thursday,
April 03, 2008 9:48 AM
To: Struts Users Mailing List
Subject: RE: struts.xml
You need to have access to the Dispatcher and the ServletContext in
your
Adam Hardy on 02/04/08 12:23, wrote:
Can I have a second struts.xml in my test directory, and if so, how do I
configure it?
I'm testing some stuff using HttpUnit which launches the whole webapp in
my tests. Having a test-only struts.xml will keep the test mappings out
of the real webapp,
(servletContext,
testConfig);
dispatcher.init();
Dispatcher.setInstance(dispatcher);
-Original Message-
From: Relph,Brian [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2008 9:48 AM
To: Struts Users Mailing List
Subject: RE: struts.xml
You need to have access
());
dispatcher.init();
Dispatcher.setInstance(dispatcher);
-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2008 5:00 AM
To: Struts Users Mailing List
Subject: Re: struts.xml
Adam Hardy on 02/04/08 12:23, wrote:
Can I have a second
, April 03, 2008 9:48 AM
To: Struts Users Mailing List
Subject: RE: struts.xml
You need to have access to the Dispatcher and the ServletContext in your tests,
but you could do something like this for per-unit test configurations:
ConfigurationProvider provider = new
Just create a mutator in your action and Struts will populate the
value for you automatically. I use this to set the Role into my base
action
action name=myaction
param name=roleadmin/param
/action
(*Chris*)
On 8/30/07, akash agrawal [EMAIL PROTECTED] wrote:
Hi,
Can someone explain me
Hi,
Thanks for the reply Chris.
Do you mean providing a setter like setRole(String role) or setRoles(String
role) would do?
When would this setter be called? If I define an interceptor, Can I check for
this property inside interceptor before my execute() is called?
Thanks,
-Akash
Chris
Yes, setRole(String role) for my example.
(*Chris*)
On 8/30/07, akash agrawal [EMAIL PROTECTED] wrote:
Hi,
Thanks for the reply Chris.
Do you mean providing a setter like setRole(String role) or setRoles(String
role) would do?
When would this setter be called? If I define an
Chris,
When would this setter be called? Can I access this property inside an
interceptor (custom interceptor/pre-packaged interceptor)? (This would help to
check it before execute is called)
Thanks.
Chris Pratt [EMAIL PROTECTED] wrote: Yes, setRole(String role) for my example.
(*Chris*)
When would this setter be called? Can I access this property inside an
interceptor (custom interceptor/pre-packaged interceptor)? (This would help
to check it before execute is called)
I believe it is called by the ParamInterceptor, so as long as your
interceptor is later in the stack, the
--- Emmanuel JOKE [EMAIL PROTECTED] wrote:
So far I've defined the following in strust.xml
action name=addCategory
class=com.ebespoke.web.admin.action.Categories
result/admin/category.jsp/result
/action
How can I define a some paremeter to pass to a
Result page defined in Struts.xml
I think the fact that you cannot change the location of struts.xml should be
put in here:
http://struts.apache.org/2.x/docs/struts-1-solutions.html
This will help out a lot of people who do not expect s2 to have this
different behaviour. I failed to find this documented anywhere which cost me
I second this.
And thanks for the replies.
doktora wrote:
I think the fact that you cannot change the location of struts.xml should be
put in here:
http://struts.apache.org/2.x/docs/struts-1-solutions.html
This will help out a lot of people who do not expect s2 to have this
different
Done.
You can also add comments directly to the page.
-T.
On 3/28/07, doktora [EMAIL PROTECTED] wrote:
I think the fact that you cannot change the location of struts.xml should be
put in here:
http://struts.apache.org/2.x/docs/struts-1-solutions.html
This will help out a lot of people who
Why is it that putting this in the FilterDispatcher filter section in
web.xml breaks Sturts2:
init-param
param-nameconfig/param-name
param-value/WEB-INF/struts.xml/param-value
/init-param
It looks to me as if this makes S2 confused about the whereabouts of its
other
Struts 2 uses a different approach to loading the configuration. The
initial struts.xml is loaded from the root of the classpath. The
easiest way to set that up is to put the struts.xml under the classes
folder. The boostrap struts.xml can then load whatever other
struts.xml's you would like
Put a stub struts.xml on the classpath that loads your working
configuration from another location. If the stub is under classes and
the one you want is under WEB-INF, try
struts
include file=..\struts.xml/
/struts
-HTH, Ted
http://www.husted.com/ted/blog/
On 3/19/07, Bartek [EMAIL
Hi James
Well, the person who created the project structure is not me. I just have to
fit my development into it.
So the discussion if this makes sense or not is not the point of this topic
:).
But nerevtheless, thank you for confirming what I have also supposed (and
what you called a battle).
Can you restate your question?
--
James Mitchell
The Ruby Roundup
http://www.rubyroundup.com/
On Mar 19, 2007, at 5:21 AM, Bartek wrote:
Hi
I have to face up the following issue. My location of struts.xml
shoudl be
WEB-INF directory, not WEB-INF/classes.
What is the easiest way to
Hi James
Well, the default location of struts.xml is classpath location e.g.
WEB-INF/classes. And I want to load it from outside the classpath, e.g.
directly from WEB-INF directory. How can I do this? I thought , I coudl do
this as in case of struts1 - using param-nameconfig/param-name of
I don't understand why it has to be loaded from outside the
classpath. There are facilities in place to let you do what you
want, but you would be fighting an uphill battle.
I don't see the justification for changing code to simplify this.
Please help me understand why you have to have
for sure, i already put struts2-core-2.0.6.jar in my lib folder
and inside that, there is struts-default.xml in the root folder
if i remove my struts-pensiun.xml and put into just struts.xml
everything work fine.
is there any bug in this release.
thx
This seems to be a problem in Struts
Can you confirm that you have struts2-core-2.0.6.jar in you lib folder
and it contains the struts-default.xml file in the root folder in the
jar file.
alex xander wrote:
hi, im using struts 2.x
and i have some problem here.
i break up my struts.xml into smaller piece
when i used struts
for sure, i already put struts2-core-2.0.6.jar in my lib folder
and inside that, there is struts-default.xml in the root folder
if i remove my struts-pensiun.xml and put into just struts.xml
everything work fine.
is there any bug in this release.
thx
Adam Ruggles [EMAIL PROTECTED] wrote: Can you
Hi:
Please ignore my silliness, as I am new to this.
Where can you get struts 2.0.3? In the Struts download site, I only see
2.0.1.
Again, I apologize for my ignornance.
thanx
Shahab
Musachy Barroso-2 wrote:
It was written using 2.0.3 :)
musachy
Don Brown wrote:
I believe the
--- shahab [EMAIL PROTECTED] wrote:
Where can you get struts 2.0.3?
One place is http://people.apache.org/builds/struts/
but I don't know if that's the official location or
not.
Dave
Do you Yahoo!?
thanx.
However, after I got the new jars tomcat cannot start the app, I get the
following erorr in locahost log -
SEVERE: Exception starting filter struts2
Unable to load bean: type:org.apache.struts2.dispatcher.MultiPartRequest
class:org.apache.struts2.dispatcher.PellMultiPartRequest - bean -
--- shahab [EMAIL PROTECTED] wrote:
[...] PellMultiPartRequest
https://issues.apache.org/struts/browse/WW-1692
I changed the plugin config to the right name and
re-jarred; YIMV.
Dave
The fish are biting.
Hi:
How do I download 2.0.5 or the jar that you changed?
thanx
Shahab
Dave Newton-4 wrote:
--- shahab [EMAIL PROTECTED] wrote:
[...] PellMultiPartRequest
https://issues.apache.org/struts/browse/WW-1692
I changed the plugin config to the right name and
re-jarred; YIMV.
Dave
--- shahab [EMAIL PROTECTED] wrote:
How do I download 2.0.5 or the jar that you changed?
The JAR that I changed is
struts2-pell-multipart-plugin-2.0.4.jar; you already
have it. FWIW I'm having a different issue that may or
may not be related, so I don't know if making the same
change will work
Thanx
However, I am still getting the following error -
SEVERE: Exception starting filter struts2
Cannot locate the chosen ObjectFactory implementation: spring - [unknown
location]
at
org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionProvider.java:224)
thanx
Shahab
Dave
--- shahab [EMAIL PROTECTED] wrote:
However, I am still getting the following error -
SEVERE: Exception starting filter struts2
Cannot locate the chosen ObjectFactory
implementation: spring - [unknown
location]
at
Whoops.
Do you have the Spring plugin jar in lib?
--- shahab [EMAIL PROTECTED] wrote:
Thanx
However, I am still getting the following error -
SEVERE: Exception starting filter struts2
Cannot locate the chosen ObjectFactory
implementation: spring - [unknown
location]
at
Hi Dave:
I have spring.jar. But I couldnt find the struts2-Spring-plugin.jar
anywhere.
Just to let you know, I am trying sometihng that Musachy has in
http://cwiki.apache.org/S2WIKI/struts-2-spring-jpa-ajax.html.
thanx
Shahab
Dave Newton-4 wrote:
Whoops.
Do you have the Spring plugin
You have an old version of the DTD cached somewhere. We really should
make a FAQ out of this :)
Don
On 1/31/07, shahab [EMAIL PROTECTED] wrote:
Hi:
I am getting the following error while accessing my web pages -
SEVERE: Element type constant must be declared. at (null:7:60)
Hi:
I think I would need some more help from you. I dont see any dtd or xsd file
in my application.
What else I should look for?
I also tried to download struts-2.0.dtd and asaved it under WEB-INF/lib. But
that didnt help either.
Please help.
thanx
Shahab
Don Brown wrote:
You have an
On 1/31/07, shahab [EMAIL PROTECTED] wrote:
Hi:
I think I would need some more help from you. I dont see any dtd or xsd
file
in my application.
What else I should look for?
It's probably in the JAR. Which version of Struts are you using? The
change was introduced after Struts 2.0.1
Joe
Hi:
I am using Struts 2.0.1. I have added few jar files from spring 2.0 as well.
I am trying struts 2 + spring + JPA. Similar to the example located at
http://cwiki.apache.org/S2WIKI/struts-2-spring-jpa-ajax.html
thanx
Shahab
Joe Germuska wrote:
On 1/31/07, shahab [EMAIL PROTECTED]
I believe the tutorial requires at least Struts 2.0.3.
Don
On 1/31/07, shahab [EMAIL PROTECTED] wrote:
Hi:
I am using Struts 2.0.1. I have added few jar files from spring 2.0 as well.
I am trying struts 2 + spring + JPA. Similar to the example located at
It was written using 2.0.3 :)
musachy
Don Brown wrote:
I believe the tutorial requires at least Struts 2.0.3.
Don
On 1/31/07, shahab [EMAIL PROTECTED] wrote:
Hi:
I am using Struts 2.0.1. I have added few jar files from spring 2.0
as well.
I am trying struts 2 + spring + JPA. Similar to
51 matches
Mail list logo