Re: struts.xml parsing error, involving interceptor

2010-09-27 Thread Dave Newton
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

Re: struts.xml parsing error, involving interceptor

2010-09-27 Thread Li Ying
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

Re: struts.xml vs struts.properties which takes a precedence?

2010-03-26 Thread aum strut
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

Re: struts.xml vs struts.properties which takes a precedence?

2010-03-26 Thread Greg Lindholm
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

RE: struts.xml vs struts.properties which takes a precedence?

2010-03-26 Thread Martin Gainty
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

Re: struts.xml (struts-default) and meaning of %@ taglib prefix=s uri=/struts-tags %

2008-04-30 Thread Jim Kiley
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

Re: struts.xml (struts-default) and meaning of %@ taglib prefix=s uri=/struts-tags %

2008-04-30 Thread Laurie Harper
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

Re: struts.xml

2008-04-09 Thread Randy Burgess
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

Re: struts.xml

2008-04-09 Thread Ian Meikle
. - 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

Re: struts.xml

2008-04-09 Thread Lukasz Lenart
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

Re: struts.xml

2008-04-09 Thread Martin Gainty
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

Re: struts.xml

2008-04-04 Thread Adam Hardy
); 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

Re: struts.xml

2008-04-03 Thread Adam Hardy
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,

RE: struts.xml

2008-04-03 Thread Relph,Brian
(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

RE: struts.xml

2008-04-03 Thread Relph,Brian
()); 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

Re: struts.xml

2008-04-03 Thread Adam Hardy
, 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

Re: struts.xml usage of param element in action element

2007-08-30 Thread Chris Pratt
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

Re: struts.xml usage of param element in action element

2007-08-30 Thread akash agrawal
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

Re: struts.xml usage of param element in action element

2007-08-30 Thread Chris Pratt
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

Re: struts.xml usage of param element in action element

2007-08-30 Thread akash agrawal
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*)

Re: struts.xml usage of param element in action element

2007-08-30 Thread Chris Pratt
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

Re: Struts.xml

2007-04-28 Thread Dave Newton
--- 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

Re: struts.xml - change default location

2007-03-28 Thread doktora
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

Re: struts.xml - change default location

2007-03-28 Thread Manu Mahajan
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

Re: struts.xml - change default location

2007-03-28 Thread Ted Husted
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

Re: struts.xml - change default location

2007-03-27 Thread doktora
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

Re: struts.xml - change default location

2007-03-27 Thread Ted Husted
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

Re: struts.xml - change default location

2007-03-23 Thread Ted Husted
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

Re: struts.xml - change default location

2007-03-20 Thread Bartek
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).

Re: struts.xml - change default location

2007-03-19 Thread James Mitchell
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

Re: struts.xml - change default location

2007-03-19 Thread Bartek
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

Re: struts.xml - change default location

2007-03-19 Thread James Mitchell
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

Re: struts.xml problem

2007-02-26 Thread Philip Lorenz
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

Re: struts.xml problem

2007-02-25 Thread Adam Ruggles
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

Re: struts.xml problem

2007-02-25 Thread alex xander
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

Re: struts.xml error - Element type constant must be declared

2007-02-01 Thread shahab
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

Re: struts.xml error - Element type constant must be declared

2007-02-01 Thread Dave Newton
--- 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!?

Re: struts.xml error - Element type constant must be declared

2007-02-01 Thread shahab
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 -

Re: struts.xml error - Element type constant must be declared

2007-02-01 Thread Dave Newton
--- 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.

Re: struts.xml error - Element type constant must be declared

2007-02-01 Thread shahab
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

Re: struts.xml error - Element type constant must be declared

2007-02-01 Thread Dave Newton
--- 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

Re: struts.xml error - Element type constant must be declared

2007-02-01 Thread shahab
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

Re: struts.xml error - Element type constant must be declared

2007-02-01 Thread Dave Newton
--- 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

Re: struts.xml error - Element type constant must be declared

2007-02-01 Thread Dave Newton
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

Re: struts.xml error - Element type constant must be declared

2007-02-01 Thread shahab
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

Re: struts.xml error - Element type constant must be declared

2007-01-31 Thread Don Brown
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)

Re: struts.xml error - Element type constant must be declared

2007-01-31 Thread shahab
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

Re: struts.xml error - Element type constant must be declared

2007-01-31 Thread Joe Germuska
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

Re: struts.xml error - Element type constant must be declared

2007-01-31 Thread shahab
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]

Re: struts.xml error - Element type constant must be declared

2007-01-31 Thread Don Brown
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

Re: struts.xml error - Element type constant must be declared

2007-01-31 Thread Musachy Barroso
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