Re: Class reloading

2009-07-13 Thread Dale Newfield
Musachy Barroso wrote: I could test the path as an absolute path, if it exist, use it, otherwise try it as a relative path to context root, sounds good? Almost. The File interface can tell you whether or not a given instance (path) isAbsolute(). Clearly if the (absolute or relative) file

Getter in action triggers twice. Bug?

2009-07-13 Thread Ritvars Rundzāns
Hi! I am wondering is this Struts2 ( *2.1.6* ) fw bug, or am i just misunderstanding something :). I created action mapping witch maps to an action and passes two args to it from base url (not param part), like this: action name=person-*-* class=example.Person param

Re: Class reloading

2009-07-13 Thread Musachy Barroso
On Mon, Jul 13, 2009 at 7:10 AM, Dale Newfieldd...@newfield.org wrote: Almost.  The File interface can tell you whether or not a given instance (path) isAbsolute().  Clearly if the (absolute or relative) file does not exist it should not be loaded, but existence shouldn't help you decide which

Re: Getter in action triggers twice. Bug?

2009-07-13 Thread Musachy Barroso
please post this question on the user mailing list. thanks musachy On Mon, Jul 13, 2009 at 7:21 AM, Ritvars Rundzānsrrundz...@gmail.com wrote: Hi! I am wondering is this Struts2 ( 2.1.6 ) fw bug, or am i just misunderstanding something :). I created action mapping witch maps to an action

Re: Class reloading

2009-07-13 Thread Wes Wannemacher
On Mon, Jul 13, 2009 at 12:10 PM, Lukasz Lenartlukasz.len...@googlemail.com wrote: 2009/7/13 Dale Newfield d...@newfield.org: Lately it seems like Struts is improving more due to the heroic effort of a few individuals than as a result of a community effort.  (I have a feeling that this has

Re: Class reloading

2009-07-13 Thread Musachy Barroso
On Mon, Jul 13, 2009 at 9:16 AM, Wes Wannemacherw...@wantii.com wrote: And no, Musachy doesn't sleep. well in fact, I sleep walk almost every night, so yeah I don't sleep much :) musachy -- Hey you! Would you help me to carry the stone? Pink Floyd

Re: Class reloading

2009-07-13 Thread Musachy Barroso
I am thinking about adding another constant which holds a list of regex, which if set, will limit what classes can be loaded by the reloading classloader. The reason for this, is that I would like to limit the reloaded classes to just my actions. If the reloading class loader loads something that

Re: Getter in action triggers twice. Bug?

2009-07-13 Thread Ritvars Rundzāns
If you think this post is inappropriate @ this mailing list, i disagree with you. Despite of fact this (twice-triggering) is simple thing/fact, it is more related to struts2 action handling implementation (dev thing) then my lack of knowledge (user list). Anyway, i will give it a try. Others are

Re: Getter in action triggers twice. Bug?

2009-07-13 Thread Musachy Barroso
I agree with you in principle, but there is a good chance that it is something not properly configured, like the static params interceptor applied twice to the action vs a struts bug. musachy On Mon, Jul 13, 2009 at 9:54 AM, Ritvars Rundzānsrrundz...@gmail.com wrote: If you think this post is

Re: Class reloading

2009-07-13 Thread Musachy Barroso
I added struts.class.reloading.acceptClasses, so now I can make the reloading class loader handle only action classes, so I don't get ClassCastException(s) I also added support for the relative paths, @Dale, take it for a spin and let me know how it works. musachy On Mon, Jul 13, 2009 at 9:29

Re: Getter in action triggers twice. Bug?

2009-07-13 Thread Ritvars Rundzāns
I understand and agree your way of thinking. Its true i tried struts 2 the first time today. But. This misconfiguration thing is doubtly possible, i think, because i used struts2 blank app as a base of my test. Just 1 filter @ web.xml (struts filter), @ struts xml - 2 constansts were set:

Re: Getter in action triggers twice. Bug?

2009-07-13 Thread Dave Newton
Please ask this question on the struts-user mailing list. The struts-dev list is for the development of Struts itself. http://struts.apache.org/mail.html Thanks, Dave Ritvars Rundza-ns wrote: Hi! I am wondering is this Struts2 ( *2.1.6* ) fw bug, or am i just misunderstanding something :).