RE: wierd stack trace regarding parsing of struts.xml

2012-11-30 Thread Davis, Chad
> IMO it just needs to match the DTD in the jar; as I said, I've generally seen > this happen when there's a mis-match. > > In regards to your SO question, it would depend completely on the > implementation and its configuration. > Here's the one that doesn't work: http://www.opensymphony.com

Re: wierd stack trace regarding parsing of struts.xml

2012-11-30 Thread Dave Newton
IMO it just needs to match the DTD in the jar; as I said, I've generally seen this happen when there's a mis-match. In regards to your SO question, it would depend completely on the implementation and its configuration. Dave On Fri, Nov 30, 2012 at 6:52 PM, Davis, Chad wrote: > >> Without knowi

RE: wierd stack trace regarding parsing of struts.xml

2012-11-30 Thread Davis, Chad
> Without knowing what you're specifying in your struts config it's tough to > say. > > The times I've seen this are when there's a mismatch between what's in the > config and what's in the libraries, like if it can't find the file locally, > it goes on > to the network. > So, I think the iss

Re: wierd stack trace regarding parsing of struts.xml

2012-11-30 Thread Dave Newton
Without knowing what you're specifying in your struts config it's tough to say. The times I've seen this are when there's a mismatch between what's in the config and what's in the libraries, like if it can't find the file locally, it goes on to the network. I also recall this being container-depe

RE: wierd stack trace regarding parsing of struts.xml

2012-11-30 Thread Davis, Chad
> > Probably trying to go out to the web for a DTD/XSD or something? > Okay. It does appear to be finding the struts.xml file, and then timing out while trying to get something else over the network. I guess my first reaction is . . . . does my struts app really need to be able to reach out

Re: Best way to add to ValueStack in an Interceptor

2012-11-30 Thread Eric Lentz
Good call Chris! I didn't realize that. The context solution Maurizio offered now works for me. Pros/cons to both approaches. The context approach could be confusing to the uninitiated on the UI side. Pop/push could be confusing or mysterious at the interceptor level (again, for the casual Struts c

Re: wierd stack trace regarding parsing of struts.xml

2012-11-30 Thread Dave Newton
Probably trying to go out to the web for a DTD/XSD or something? On Fri, Nov 30, 2012 at 3:06 PM, Davis, Chad wrote: > So, when I restarted my struts2 app this afternoon I got complains about > "unable to load configuration. - [unknown location]". But, the location of > my struts.xml - inside

RE: Struts2 Rest Plugin

2012-11-30 Thread Davis, Chad
> I think, the basic idea was to allow cooperate the REST plugin with the > Convention plugin and code behind is a deprecated plugin that will be > discarded soon (with 3.x) 1) So, it doesn't "depend" on it, in any technical sense? 2) But it's made to work with the convention plugin, if that plu

wierd stack trace regarding parsing of struts.xml

2012-11-30 Thread Davis, Chad
So, when I restarted my struts2 app this afternoon I got complains about "unable to load configuration. - [unknown location]". But, the location of my struts.xml - inside of the classes folder of the WAR - has not changes. And, indeed, the file is there. The stack trace is below. For start

Re: Best way to add to ValueStack in an Interceptor

2012-11-30 Thread Chris Pratt
Remember, when you use Maurizio's way, you have to reference the values as context, not stack variables. So instead of using %{myvar} you have to use %{#myvar). (*Chris*) On Fri, Nov 30, 2012 at 10:42 AM, Eric Lentz wrote: > Maurizio, tried your way and no joy. Looks like I'll go with Łukasz'

Re: Best way to add to ValueStack in an Interceptor

2012-11-30 Thread Eric Lentz
Maurizio, tried your way and no joy. Looks like I'll go with Łukasz' way. Thanks everyone for your consideration and help! On Fri, Nov 30, 2012 at 1:31 PM, Lukasz Lenart wrote: > 2012/11/30 Eric Lentz : > > Inside of an interceptor, I'd like to add a value onto the the > ValueStack. > > What is

Re: Best way to add to ValueStack in an Interceptor

2012-11-30 Thread Lukasz Lenart
2012/11/30 Eric Lentz : > Inside of an interceptor, I'd like to add a value onto the the ValueStack. > What is the best way to do this? > > I tried this: > invocation.getStack().set("myValueStackName", theValueIwantForThisName); > > But that pushes that value to the top of the stack, pushing my act

Re: Struts2 Rest Plugin

2012-11-30 Thread Lukasz Lenart
2012/11/28 Davis, Chad : > The docs for the REST plugin talk about how it builds on the Convention > plugin ( sometimes it says "code behind" ). However, I don't see that using > the REST plugin pulls in either of these plugins . . . in what sense does it > "build" on them? I think, the basic

RE: Inconsistency in Struts2 s:component parameters handling

2012-11-30 Thread Martin Gainty
ok so your take is i want to reference a HTML component to uniquely identify a component in lieu of idso we're on the same page the HTML spec says The id attribute assigns a unique identifier to an element (which may be verified by an SGML parser). For example, the following paragraphs are dis

Re: Inconsistency in Struts2 s:component parameters handling

2012-11-30 Thread Thim Anneessens
Dear Martin, According to struts documentation: "id" is not required. However it seems that even if I do not specify a value for "id", Struts will assign an empty String value to it, which would prove what you are saying. Maybe the documentation sho

Re: Best way to add to ValueStack in an Interceptor

2012-11-30 Thread Maurizio Cucchiara
Did you try to put the value in the context? invocation.getStack().getContext().put("myValueStackName", > theValueIwantForThisName); Twitter :http://www.twitter.com/m_cucchiara G+ :https://plus.google.com/107903711540963855921 Linkedin:http://www.linkedin.com/in/mauriziocucchiar

RE: Inconsistency in Struts2 s:component parameters handling

2012-11-30 Thread Martin Gainty
correct..ID is a required attribute of the component tag title is a parameter scoped at request level which will be suffixed for the call to your Action e.g. YourAction?title='title' since ID is already a required attribute for every component it would not make sense to *also add ID as the more

Best way to add to ValueStack in an Interceptor

2012-11-30 Thread Eric Lentz
Inside of an interceptor, I'd like to add a value onto the the ValueStack. What is the best way to do this? I tried this: invocation.getStack().set("myValueStackName", theValueIwantForThisName); But that pushes that value to the top of the stack, pushing my action class down which becomes problem

Re: Inconsistency in Struts2 s:component parameters handling

2012-11-30 Thread Thim Anneessens
Hi Martin, Thank you for your time but I am not sure that it answers my question. Here is some code to illustrate: This works: id="newsletter-subscribe-box"> Welcome to our site This does not work: Welcome to our site newslett

Re: Struts2 String ThreadSafe?

2012-11-30 Thread J. Garcia
This is definitely wrong. You can mix data from two different concurrent sessions! On Thu, Nov 29, 2012 at 4:42 PM, Rohit Gupta wrote: > So given the fact that my beans are not prototype, there is a chance that > the same action class may be used for two consecutive requests. > > Regards, > >

Inconsistency in Struts2 s:component parameters handling

2012-11-30 Thread Thim Anneessens
Hello, We are using Struts 2.3.1.2 and have noticed a strange behavior in component parameter handling: We have a component that uses both an "id" parameter and a "title" parameter. What is strange is that when we use s:component, the "title" param