Struts action forms crossing sessions? Any idea why this ishappening?

2005-09-30 Thread Preston CRAWFORD
We have a problem. We're working on an application and we have some forms in session scope. The strange thing is if someone changes state on their form, users on other computers on other browsers hitting the same exact page see the state change that was made to the form on another computer. I have

Re: Struts action forms crossing sessions? Any idea why thisishappening?

2005-10-03 Thread Preston CRAWFORD
for example... c:if test=${! empty myFormBean.myArrayList} c:forEach items=${myFormBean.myArrayList} var=item varStatus=loop c:out value=${item.memberField} /br / /c:forEach /c:if Preston [EMAIL PROTECTED] 9/30/2005 6:19:26 PM On 10/1/05, Preston CRAWFORD [EMAIL PROTECTED] wrote: We

Re: Struts action forms crossing sessions? Any idea why thisishappening?

2005-10-03 Thread Preston CRAWFORD
in the ActionForm. It's probably a problem with instance variables in your Actions. On 9/30/05, Preston CRAWFORD [EMAIL PROTECTED] wrote: We have a problem. We're working on an application and we have some forms in session scope. The strange thing is if someone changes state on their form, users

Re: Struts action forms crossing sessions? Any idea whythisishappening?

2005-10-03 Thread Preston CRAWFORD
No. What information would be useful and relevant? Struts-config? The form bean itself? The action, the JSP? I didn't want to overload the list, obviously. Preston [EMAIL PROTECTED] 10/3/2005 9:40:37 AM Preston CRAWFORD wrote: Don't really have any instance variables in the actions. Just

Getting at exceptions in Action Classes when forwarded fromweb.xml?

2005-10-03 Thread Preston CRAWFORD
I'm trying to setup global exception handling. I have web.xml sending 404 and 500 exceptions to /error.do. In that action I should be able to get at the exception, shouldn't I? Or do I have to do that earlier in the process? I simply want to get at the exception and log it. Preston

Re: Getting at exceptions in Action Classes when forwardedfromweb.xml?

2005-10-03 Thread Preston CRAWFORD
can log that. Preston [EMAIL PROTECTED] 10/3/2005 2:33:16 PM Preston CRAWFORD on 03/10/05 21:47, wrote: I'm trying to setup global exception handling. I have web.xml sending 404 and 500 exceptions to /error.do. In that action I should be able to get at the exception, shouldn't I? Or do I have

Re: Getting at exceptions in Action Classes when forwardedfromweb.xml?

2005-10-03 Thread Preston CRAWFORD
://struts.apache.org/userGuide/building_controller.html#exception_handler That's probably the way you want to go, might save you some trouble. I'm not sure when it was introduced though, so if your a ways behind in Struts version it might not be available. Frank Adam Hardy wrote: Preston

Re: Getting at exceptions in Action Classes whenforwardedfromweb.xml?

2005-10-03 Thread Preston CRAWFORD
for mapping.getParameter() - perhaps slightly less coding. Preston CRAWFORD on 03/10/05 23:10, wrote: Even then, is there any way to get at the exception at self so it gets printed? The problem is that when you setup web.xml to send it to an action (I can't figure out a different way to do

Re: Getting at exceptions in Action Classeswhenforwardedfromweb.xml?

2005-10-03 Thread Preston CRAWFORD
browser-dependent. So basically a real live java exception would tell you no more than you already know, except perhaps if there is one, a stacktrace from the guts of your appserver. Preston CRAWFORD on 03/10/05 23:57, wrote: Right, but even at this point, if I did this, how do I get

Re: Getting at exceptions in Action Classeswhenforwardedfromweb.xml?

2005-10-03 Thread Preston CRAWFORD
This actually does get me some of the information. Unfortunately since I'm sticking another servlet (my action) in between, the exception acts like it's coming from my action. So it appears I may have to go the route of extending the ExceptionHandler. I was hoping there was a way to avoid that,

Re: Struts action forms crossing sessions? Any ideawhythisishappening?

2005-10-04 Thread Preston CRAWFORD
Tomcat 5.0.28. [EMAIL PROTECTED] 10/4/2005 3:34:31 AM What's your container? I saw this behaviour on older resin implementations, it was obviously a bug, that in some sequence of requsts the session got mixed, B got A's session, but only for one request, after that it had it's own session. Try

Re: Struts action forms crossing sessions? Any ideawhythisishappening?

2005-10-04 Thread Preston CRAWFORD
(as in I'll logout, shut down the browser, open up the browser and there it is again). So this has me wondering if it's related to hibernate, which we are using to populate this object. Preston [EMAIL PROTECTED] 10/4/2005 3:31:29 AM On 10/4/05, Preston CRAWFORD [EMAIL PROTECTED] wrote

Re: Struts action forms crossing sessions? Anyideawhythisishappening?

2005-10-04 Thread Preston CRAWFORD
in and it behaved as expected. It wasn't there. Preston [EMAIL PROTECTED] 10/4/2005 8:29:57 AM On 10/4/05, Preston CRAWFORD [EMAIL PROTECTED] wrote: Tomcat 5.0.28. this should work. However try logging out the sessionIds and compare them to the jsessionid cookies, just to be sure. Maybe you are also hit

Re: Struts action forms crossing sessions? Anyideawhythisishappening?

2005-10-05 Thread Preston CRAWFORD
know how do you populate the objects, if it's a complicated process try to take out some of the functionality temporary until you get to the point when it does work. Tamas On 10/4/05, Preston CRAWFORD [EMAIL PROTECTED] wrote: Well, a lot changed yesterday. I took all forms out of session

Re: Getting at exceptions in ActionClasseswhenforwardedfromweb.xml?

2005-10-05 Thread Preston CRAWFORD
trace. Preston [EMAIL PROTECTED] 10/5/2005 3:34:04 PM Preston CRAWFORD wrote: This actually does get me some of the information. Unfortunately since I'm sticking another servlet (my action) in between, the exception acts like it's coming from my action. So it appears I may have to go the route

Re: Struts action forms crossing sessions?Anyideawhythisishappening?

2005-10-06 Thread Preston CRAWFORD
logs off? Regards, Gareth Preston CRAWFORD wrote: This is why I haven't sent code. Because I am narrowing it down already. Same behaviour on WebSphere as of yesterday. Behaviour isn't exhibited when the object in question isn't created as a result of Hibernate, but rather populated manually

More questions on exception handling

2005-10-07 Thread Preston CRAWFORD
Once again a question about best practices. So I setup an error page, referenced in struts-config.xml that shows the error. My problem is this. #1 - I want to log the error and print out to the console in addition to going to the error page. This isn't happening. Does this mean that I need to

Is the best way to have multiple struts-config.xml andtiles-defs.xml files, modules?

2005-10-11 Thread Preston CRAWFORD
I've done this in the past. Used modules to logically (and for the sake of having sane config files) break up these config files. However I'm wondering if anyone avoids using modules and maybe merges the files using ANT or something? Reason I ask is because I know there are pitfalls to using

Re: Is the best way to have multiple struts-config.xml andtiles-defs.xml files, modules?

2005-10-11 Thread Preston CRAWFORD
fit. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] On Tue, October 11, 2005 4:36 pm, Preston CRAWFORD said: I've done this in the past. Used modules to logically (and for the sake

Re: Is the best way to have multiple struts-config.xml andtiles-defs.xml files, modules?

2005-10-11 Thread Preston CRAWFORD
and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] On Tue, October 11, 2005 4:36 pm, Preston CRAWFORD said: I've done this in the past. Used modules to logically (and for the sake of having sane config files) break up

Re: Is the best way to have multiplestruts-config.xmlandtiles-defs.xml files, modules?

2005-10-11 Thread Preston CRAWFORD
Oooh. I like that. That works relatively well so far, although it's not picking up on my secondary tiles-defs.xml file. Preston [EMAIL PROTECTED] 10/11/2005 2:26:22 PM From: Preston CRAWFORD [EMAIL PROTECTED] I've done this in the past. Used modules to logically (and for the sake of having

Why do action mappings default to session scope for formbeans?

2005-10-26 Thread Preston CRAWFORD
I don't know why (I've been doing struts development for years, but I guess we've always been very explicit in our struts-config files), but only recently did I discover that this was the default behavior for form beans. And I'm trying to figure out, mostly on a higher level, on a theoretical

Re: Why do action mappings default to session scope forformbeans?

2005-10-26 Thread Preston CRAWFORD
will be included into next version of Struts Dialogs. Michael. On 10/26/05, Preston CRAWFORD [EMAIL PROTECTED] wrote: I don't know why (I've been doing struts development for years, but I guess we've always been very explicit in our struts-config files), but only recently did I discover

Validation seemingly not getting called any longer

2005-11-08 Thread Preston CRAWFORD
We have a simple login form. By the book. For some reason all of a sudden the validation in validation.xml is no longer getting called. We have validate set to true in the action. Everything is still named the same. Any idea why this would have changed or where to start looking? Preston

RE: Validation seemingly not getting called any longer

2005-11-08 Thread Preston CRAWFORD
file telling it to use the validation plugin. Try that line of investigation. Not sure off the top of my head. Shawn D. Garner -Original Message- From: Preston CRAWFORD [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 08, 2005 11:39 AM To: user@struts.apache.org Subject: Validation

Re: Validation seemingly not getting called any longer

2005-11-08 Thread Preston CRAWFORD
Nothing that I can see. What could I log to find out what's going on? It basically just doesn't get called. Preston [EMAIL PROTECTED] 11/8/2005 10:52 AM Preston CRAWFORD wrote: We have a simple login form. By the book. For some reason all of a sudden the validation in validation.xml

RE: Validation seemingly not getting called any longer

2005-11-08 Thread Preston CRAWFORD
need something in the struts config file telling it to use the validation plugin. Try that line of investigation. Not sure off the top of my head. Shawn D. Garner -Original Message- From: Preston CRAWFORD [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 08, 2005 11:39 AM To: user

Re: Validation seemingly not getting called any longer

2005-11-08 Thread Preston CRAWFORD
and the interesting thing is that I don't see the form validation getting built or initialized. What would that look like? I wonder why that would not be occurring. Preston [EMAIL PROTECTED] 11/8/2005 3:23 PM On 11/8/05, Preston CRAWFORD [EMAIL PROTECTED] wrote: I have that. Either way the bottom line

RE: Validation seemingly not getting called any longer

2005-11-08 Thread Preston CRAWFORD
-rules.xml, etc. Are they recent (as in someone might have modified them before the last webapp restart) or dated months ago (indicating no recent changes) ? Regards, David -Original Message- From: Preston CRAWFORD [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 08, 2005 7:05 PM To: user

RE: Validation seemingly not getting called any longer

2005-11-09 Thread Preston CRAWFORD
using multiple (or module based) struts-config.xml files. Regards, David -Original Message- From: Preston CRAWFORD [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 08, 2005 9:27 PM To: user@struts.apache.org Subject: RE: Validation seemingly not getting called any longer Solved

Is Shale the way forward?

2005-11-17 Thread Preston CRAWFORD
It appears that way. I've been so heads-down doing Struts alone that I hadn't really noticed this change in direction. I applaud the Struts team for being nimble and picking a direction while keeping backwards compatability. My question, though, is how many of you out there are actually beginning

How would you solve this problem?

2005-11-17 Thread Preston CRAWFORD
Okay, this is a little complex, so hopefully I can describe it well so as not to confuse anyone. We have a need for the following. We need a reusable set of actions, JSPs, etc. that operate in a popup to allow the user to search for a medical provider. That's easy enough. The catch is this. The

Re: How would you solve this problem?

2005-11-18 Thread Preston CRAWFORD
such request. And then use javascript window.open.href etc to point to the form in the page and do the necessary updations.you can both change the form values or add components to the html page. try it..do inform the result. Regards, R.Raghavan [EMAIL PROTECTED] 11/18/05 1:23 pm On 11/17/05, Preston

Re: How would you solve this problem?

2005-11-18 Thread Preston CRAWFORD
Yeah, no easy solution for this. The more I think about it the more it occurs to me that what we're attempting to do is setup a common code base for updating any N number of forms using Javascript. The plumbing for this is easy and obvious (I listed it earlier). But making it a single code base

Re: How would you solve this problem?

2005-11-22 Thread Preston CRAWFORD
to do is change one value. Or maybe we should give in and use forms[0].X, etc. Preston [EMAIL PROTECTED] 11/19/2005 11:57:50 AM Preston CRAWFORD wrote: Yeah, no easy solution for this. The more I think about it the more it occurs to me that what we're attempting to do is setup a common code base

Re: Ok, I'll bite. Struts + Webwork = Struts Ti?

2005-11-28 Thread Preston CRAWFORD
Oh boy. It's hard to know which direction to go with all this churn. Preston [EMAIL PROTECTED] 11/28/2005 12:38:25 PM I found this very interesting this morning: http://www.theserverside.com/news/thread.tss?thread_id=37794#192216 and this as well

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-01 Thread Preston CRAWFORD
And this is about where I start ramping up my Ruby studying. I mean, I'm all for competing frameworks, but when the Struts umbrella covers 3 different frameworks (which in term utilize how many technologies?) it begins to get a little silly. Which one should I be learning/using? I know,

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-01 Thread Preston CRAWFORD
[EMAIL PROTECTED] 12/1/2005 7:30:16 PM My personal belief is that component oriented development is more accessible to a wider array of developers than action oriented frameworks. Therefore, I spend my time (disclaimer: I'm paid to do this too, but that doesn't cover much of my open source

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-02 Thread Preston CRAWFORD
You may not be marketing anything, Ted. But those of us out in the field that work with the decision makers and who help in the decision making have to think about these things. It's the reality of living and developing in a world where there are so many options. Preston

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-05 Thread Preston CRAWFORD
[EMAIL PROTECTED] 12/3/2005 6:06:27 AM On 12/2/05, Preston CRAWFORD [EMAIL PROTECTED] wrote: You may not be marketing anything, Ted. But those of us out in the field that work with the decision makers and who help in the decision making have to think about these things. It's the reality

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-05 Thread Preston CRAWFORD
if Shale were it's own project, not tied to the Struts name and Struts core was allowed to ride off into the Sunset. This would be less confusing to the business decision maker, I believe. Preston [EMAIL PROTECTED] 12/5/2005 2:16:17 PM On 12/5/05, Preston CRAWFORD [EMAIL PROTECTED] wrote: Of course

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-05 Thread Preston CRAWFORD
I can see the roof analogy. I just thought, branding wise, it was confusing. You already have one layer with it being an Apache project. So really Shale is Apache Struts Shale (formerly a Jakarta project that still uses lots of Jakarta components). :-) I don't know. I think the way things are

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-05 Thread Preston CRAWFORD
Exactly. Or back to my example. Apache Jakarta Struts Shale. Preston [EMAIL PROTECTED] 12/5/2005 3:12:00 PM Hm. Is it untidy that the Apache Software foundation has at least three web application frameworks? Should they be untethered from the Apache name and allowed to ride off... ? For that

Is JSF ready?

2005-12-12 Thread Preston Crawford
I'm starting to begin looking at JSF in part because of what I've read here on the Struts mailing list. i.e. Struts is embracing JSF, many developers see it as inevitable. I have some experience with Tapestry and Ruby on Rails so I'm excited about component frameworks. However, what I don't know,

RE: Is JSF ready?

2005-12-13 Thread Preston Crawford
I don't know what the future will hold. JSF may win the day on nothing but marketing alone. It has the force of being a standard, and while not all standards ultimately succeed, it certainly is a leg up on other I would argue that with Java (J2EE specifically) standards have largely just

Re: Is JSF ready?

2005-12-13 Thread Preston Crawford
On Tue, 13 Dec 2005, Dakota Jack wrote: Preston, none of those examples are J2EE. They can be used with J2EE but they have nothing to do with anything beyond J2SE. Toolkit. As in the tools one uses to build J2EE apps. Pedantic much... Preston

Re: Is JSF ready?

2005-12-13 Thread Preston Crawford
On Tue, 13 Dec 2005, Dakota Jack wrote: And, Josh, last time I looked JSP was not on the list we are talking about. So, what was your point? The point is you're being pedantic. I wasn't describing the entirety of J2EE or even the implementation. Rather the tools, frameworks, etc. used to

Re: Is JSF ready?

2005-12-13 Thread Preston Crawford
On Wed, 14 Dec 2005, Josh McDonald wrote: Mainly I thought I'd interrupt the ranting :) And what's tomcat if it's not an implementation of JSP / Servlets, and hence a partial implementation of J2EE? Just ignore him. He doesn't care to be helpful. Just wants to hear himself speak. Preston

Re: Is JSF ready?

2005-12-14 Thread Preston Crawford
On Wed, 2005-12-14 at 08:18 -0800, Dakota Jack wrote: Look, Preston, if you want your own language with your own meanings, that is I'm not creating my own language. You're being pedantic. http://dictionary.reference.com/search?q=toolkit Main Entry: toolkit Part of Speech: noun Definition:

Re: Is JSF ready?

2005-12-14 Thread Preston Crawford
with anything beyond J2SE. On 12/13/05, Preston Crawford [EMAIL PROTECTED] wrote: I don't know what the future will hold. JSF may win the day on nothing but marketing alone. It has the force of being a standard, and while not all standards ultimately succeed

Re: Is JSF ready?

2005-12-14 Thread Preston Crawford
On Wed, 2005-12-14 at 08:37 -0800, Dakota Jack wrote: This is not a koffee klatch where the girls can say whatever they like. This is a professional forum and presumably it is okay to ask the participants to make sense without being pedantic. What did I say that didn't make sense? That I

Re: Is JSF ready?

2005-12-14 Thread Preston Crawford
On Wed, 2005-12-14 at 08:47 -0800, Dakota Jack wrote: You originally said that your list was the virtual core of J2EE. That's No. I never said virtual core. what you said. You call someone a pedant when you want to demean something they taught you. Anyway, for your pedantic purposes: Or

Re: Is JSF ready?

2005-12-14 Thread Preston Crawford
On Wed, 2005-12-14 at 08:47 -0800, Dakota Jack wrote: You originally said that your list was the virtual core of J2EE. That's what you said. You call someone a pedant when you want to demean something they taught you. Anyway, for your pedantic purposes: Also, after you inevitably reply to

Re: Is JSF ready?

2005-12-14 Thread Preston Crawford
Ha!! :-) Wow! that J2EE definition just rocked! I was so impressed that I looked it up ... it comes from here: http://www.answers.com/topic/j2ee Cool hey?! I guess I'll be looking up that resource for ad-hoc tech definitions too. Dakota Jack wrote: Date: Wed, 14 Dec 2005 08:47:38 -0800

Re: Is JSF ready?

2005-12-14 Thread Preston CRAWFORD
Sorry about the noise there. I thought that was just sent to me and not the list, so I accidentally replied to the list when I didn't mean to. Preston [EMAIL PROTECTED] 12/14/2005 3:34:26 PM Ha!! :-) - To unsubscribe,

Re: [ANNOUNCEMENT] Apache Struts offers Shale for JSF

2005-12-16 Thread Preston Crawford
I have never had a concern about the umbrella idea, which is the latest description of what is happening. I would in fact encourage that and cannot see any problem with it. However, I pay more attention to people's feet than their lips. Is Shale the Next Struts? is the feet. The community

Re: [ANNOUNCEMENT] Apache Struts offers Shale for JSF

2005-12-17 Thread Preston Crawford
to show huge restraint of pen and tongue, since you did not comment on the Struts lists for three years after your recently disclosed active involvement. On 12/16/05, Preston Crawford [EMAIL PROTECTED] wrote: I have never had a concern about the umbrella idea, which is the latest description