Re: [OS-webwork] Re: Freemarker WAS Using SiteMesh for the UI tags
- Original Message - From: Rickard Öberg [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 2003. január 29. 6:24 Subject: Re: [OS-webwork] Re: Freemarker WAS Using SiteMesh for the UI tags Now back to our regular programming. +1. I'm here with the sole reason of kickstarting a WW+FM integration process that will (hopefully) be useful to both projects. It seems like Chris already caught on :-) I view anything that isn't a technology discussion focused on productively going forward as just Not Belonging Here. Going forward in this spirit, Cheers, Attila. regards, Rickard --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
[OS-webwork] ActionContext clarification
Hi all, I tried to get map of values stored in HttpSession by calling ActionContext.getSession() Docs state that it shall return map of values in actual HttpSession while in servlet environment, and just a map ( global one? ) if called elsewhere. I used it from JPS , and different documents got different maps from action context. I also looked in the code, and did not found any signs that ActionContext actually pick into HttpSession. Maybe I overlook something in docs. Is there a better way to obtain HttpSession contens in webwork? regards, = Konstantin Priblouda ( ko5tik )Freelance Software developer http://www.pribluda.de play java games - http://www.yook.de render charts online - http://www.pribluda.de/povray/ __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] ActionContext clarification
--- Rickard_Öberg [EMAIL PROTECTED] wrote: Konstantin Priblouda wrote: Hi all, I tried to get map of values stored in HttpSession by calling ActionContext.getSession() Docs state that it shall return map of values in actual HttpSession while in servlet environment, and just a map ( global one? ) if called elsewhere. I used it from JPS , and different documents got different maps from action context. Using the ActionContext is only valid from within an action (i.e. after a dispatcher has set it up properly). If you are accessing it from a page that has not previously executed then you will get the wrong answer. Is this your case? Yep. I have to live with frameset, and on couple the first executions of various jsps it delivers different objects. But then it stabilizes... Kind of weird. I think I will provide 2 methods for my factory: from jsp feed it with session and extract object from t here and fromj action just ask ActionContext for object with the same key. Is there a better ( servlet agnostic? more webworky? ) way to obtain global object from web application? regards, = Konstantin Priblouda ( ko5tik )Freelance Software developer http://www.pribluda.de play java games - http://www.yook.de render charts online - http://www.pribluda.de/povray/ __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] ActionContext clarification
Konstantin Priblouda wrote: Yep. I have to live with frameset, and on couple the first executions of various jsps it delivers different objects. But then it stabilizes... Kind of weird. I think I will provide 2 methods for my factory: from jsp feed it with session and extract object from t here and fromj action just ask ActionContext for object with the same key. Is there a better ( servlet agnostic? more webworky? ) way to obtain global object from web application? Well, if you're using scriptlets then I guess you can use the request directly. The WebWorky way is to have all code that does stuff in actions, and in that case you'd never have any problem. /Rickard -- Rickard Öberg [EMAIL PROTECTED] Senselogic Got blog? I do. http://dreambean.com --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] ActionContext clarification
Well, if you're using scriptlets then I guess you can use the request directly. The WebWorky way is to have all code that does stuff in actions, and in that case you'd never have any problem. So you suggest that I convert my factory class into action, and this action shall deposit my desired class in [say] thread local upon execution? Is there webwork example for such factory actions? regards, = Konstantin Priblouda ( ko5tik )Freelance Software developer http://www.pribluda.de play java games - http://www.yook.de render charts online - http://www.pribluda.de/povray/ __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] ActionContext clarification
Konstantin Priblouda wrote: So you suggest that I convert my factory class into action, and this action shall deposit my desired class in [say] thread local upon execution? Is there webwork example for such factory actions? What are you using the factory for? Sounds like the dispatcher to me. /Rickard -- Rickard Öberg [EMAIL PROTECTED] Senselogic Got blog? I do. http://dreambean.com --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] ActionContext clarification
Is there webwork example for such factory actions? What are you using the factory for? Sounds like the dispatcher to me. I need a application-global object. Original version was: ---%- public static getFoo(HttpSession bar) { Foo foo = bar.getValue(FOO_KEY); if(foo == null) { foo = new Foo(); bar.put(FOO_KEY,foo); } return foo; } ---%- Then i was in need to perform the same from action - so I modified this method to luse Map instead of session and added another static method which just feeds first one with ActionContext.getSession() Shall I use [say ] GenerixcDispatcher to initialize ActionContext ? regards, = Konstantin Priblouda ( ko5tik )Freelance Software developer http://www.pribluda.de play java games - http://www.yook.de render charts online - http://www.pribluda.de/povray/ __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] ActionContext clarification
Konstantin Priblouda wrote: Is there webwork example for such factory actions? What are you using the factory for? Sounds like the dispatcher to me. I need a application-global object. Original version was: ---%- public static getFoo(HttpSession bar) { Foo foo = bar.getValue(FOO_KEY); if(foo == null) { foo = new Foo(); bar.put(FOO_KEY,foo); } return foo; } ---%- Hm.. this is not application-global. It is session-specific. Then i was in need to perform the same from action - so I modified this method to luse Map instead of session and added another static method which just feeds first one with ActionContext.getSession() Shall I use [say ] GenerixcDispatcher to initialize ActionContext ? First of all: do you want it to be application-wide or session-wide? Regardless, the initialization should probably be done using a ServiceContextListener. /Rickard -- Rickard Öberg [EMAIL PROTECTED] Senselogic Got blog? I do. http://dreambean.com --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] ActionContext clarification
Just an observation from your error description: Is the initial framset file a html file or a jsp file? If it is html and then if the frames are JSP files then I think you could get the behaviour you are describing with different sessions since no session is created when the frameset html file is requested and then several JSP pages (for each frame) is requested simultaneously. The solution is to make the frameset a JSP file as well. But maybe this is not the case, if so, please ignore this post. Everything is JSP, but IMHO session shall be created on the first context invocation. Losing session track due plain html could be an issue for url-mangled sessions, but not cookie-ones... regards, = Konstantin Priblouda ( ko5tik )Freelance Software developer http://www.pribluda.de play java games - http://www.yook.de render charts online - http://www.pribluda.de/povray/ __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] ActionContext clarification
Konstantin Priblouda wrote: Regardless, the initialization should probably be done using a ServiceContextListener. What is ServiceContextListener? Nothing in webwork docs about it, neither in servlet api Sorry, I meant this one: http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletContextListener.html /Rickard -- Rickard Öberg [EMAIL PROTECTED] Senselogic Got blog? I do. http://dreambean.com --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] ActionContext clarification
--- Rickard_Öberg [EMAIL PROTECTED] wrote: Konstantin Priblouda wrote: Regardless, the initialization should probably be done using a ServiceContextListener. What is ServiceContextListener? Nothing in webwork docs about it, neither in servlet api Sorry, I meant this one: http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletContextListener.html Well, not quite webworky :) I would like to be servlet-agnostic... What is correct way to obtain ActionContext which was initialized with HttpSession data if there is HttpSession around? regards, = Konstantin Priblouda ( ko5tik )Freelance Software developer http://www.pribluda.de play java games - http://www.yook.de render charts online - http://www.pribluda.de/povray/ __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] ActionContext clarification
Konstantin Priblouda wrote: Well, not quite webworky :) The idea is to not reinvent the wheel. I would like to be servlet-agnostic... Ok, then put the code that initializes the context in a class and call it from a ServiceContextListener. What is correct way to obtain ActionContext which was initialized with HttpSession data if there is HttpSession around? I think ServletActionContext.getSession() works. /Rickard -- Rickard Öberg [EMAIL PROTECTED] Senselogic Got blog? I do. http://dreambean.com --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] ActionContext clarification
What is correct way to obtain ActionContext which was initialized with HttpSession data if there is HttpSession around? I think ServletActionContext.getSession() works. This method does not exists in current CVS version of webwork... Another question: It seems to me that ActionContext is stored as TreadLocal, is this map kept in synch with session contents? regards, = Konstantin Priblouda ( ko5tik )Freelance Software developer http://www.pribluda.de play java games - http://www.yook.de render charts online - http://www.pribluda.de/povray/ __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] ActionContext clarification
Konstantin Priblouda wrote: What is correct way to obtain ActionContext which was initialized with HttpSession data if there is HttpSession around? I think ServletActionContext.getSession() works. This method does not exists in current CVS version of webwork... Sorry, that should be ActionContext.getSession() Another question: It seems to me that ActionContext is stored as TreadLocal, is this map kept in synch with session contents? The reference to the session is updated every time an action is executed. Execute an action - works. Don't execute an action - doesn't work, or unspecified. Again, if you just run an action access to the context is not a problem. If you try to access the context in any other scenario, you're asking for trouble. /Rickard -- Rickard Öberg [EMAIL PROTECTED] Senselogic Got blog? I do. http://dreambean.com --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] Re: Freemarker WAS Using SiteMesh for the UI tags
A flamewar wouldn't be complete without a few kindlings thrown in by me, so herw goes... Do you think I'm the only guy around who doesn't like it when people spread disinformation about him behind his back? Other than that, do you think that *I* have any interest in showing up on a webwork list and arguing about some silly exchange that occured on the velocity list? Hey, I've got plans and things to do... *you* are the guy who brought up the subject! Yes, and you're the one seeming unable to drop it. Moreover, you mischaracterize something completely, and I respond, quite politely, and have pointed people to the information they need to form their own judgment of what happened. Politely, but at great tedious length. Now back to our regular programming. Right. No problem. But you shouldn't have brought up the subject. It was a very bad idea. sigh I hate to say it, but this perfectly illustrates Rickard's point. 'right, no problem', yet you had endless opinions/facts/whatever to throw around, without anything relevant to webwork. If anything, I'd say you've proven quite admirably what Rickard was warning against. All rather amusing. Hani --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] Re: Freemarker WAS Using SiteMesh for the UI tags
On Wednesday, January 29, 2003, at 03:09 PM, boxed wrote: Anybody who reads the thread and was not born yesterday will see that the Velocity people started all the personal attacks, all the ad hominem and character assastination stuff against me specifically because they could not deal with me in legitimate debate. That you, Rickard, cannnot see through this, does not speak terribly well for you. Please shut up now. I don't care if you were right or wrong, and neither does the majority of the people on this list. If you really wish to debate this create your own mailing list or mail the relevant people privately. This is a WebWork mailing list, it is NOT for flame fests about totally unrelated things. I didn't bring up the topic. I'm through. JR Anders Hovmöller [EMAIL PROTECTED] http://boxed.killingar.net --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] Re: Freemarker WAS Using SiteMesh for the UI tags
On Wednesday, January 29, 2003, at 03:13 PM, Hani Suleiman wrote: A flamewar wouldn't be complete without a few kindlings thrown in by me, so herw goes... Do you think I'm the only guy around who doesn't like it when people spread disinformation about him behind his back? Other than that, do you think that *I* have any interest in showing up on a webwork list and arguing about some silly exchange that occured on the velocity list? Hey, I've got plans and things to do... *you* are the guy who brought up the subject! Yes, and you're the one seeming unable to drop it. sigh Hani, you're pathetic. I can read you like a book. Here's the play: You post some stuff like you just have, in a deliberate attempt to fan the flames. I rise to the bait. You pompously and pretentiously start talking about what a bad guy I am starting flamewars and so on. But it's not going to work. This situation is utterly simple. If you don't want me showing up to set the record straight, you shouldn't talk about me behind my back, particularly grotesquely mischaracterizing things that happened. That was a mistake. Moreover, you mischaracterize something completely, and I respond, quite politely, and have pointed people to the information they need to form their own judgment of what happened. Politely, but at great tedious length. Now back to our regular programming. Right. No problem. But you shouldn't have brought up the subject. It was a very bad idea. sigh I hate to say it, but this perfectly illustrates Rickard's point. 'right, no problem', yet you had endless opinions/facts/whatever to throw around, without anything relevant to webwork. sigh Whatever happened on the velocity list is of course off-topic on a webwork list. But I didn't bring it up. How the hell is it *my* fault that this subject is being discussed? If anything, I'd say you've proven quite admirably what Rickard was warning against. All rather amusing. Look, people started talking about me and I simply pointed out a link and stated that if anybody wanted to know what really happened, they could refer to that. But here are 2 suggestions if you truly do find this thread tedious and off-topic (as I surely do) : 1. Blame the person who brought up the tedious off-topic stuff. (Not me.) 2. Do not contribute to said thread yourself. I'm going to unsubscribe from this list now. I don't have time for this kind of hypocritical bad-faithed stuff and I don't have time to play these kinds of childish games you're trying to engage me in. It bores me, it's too transparently obvious all this... SHIT. Bye now, Jonathan Revusky -- FreeMarker 2.2pre2 is out! http://freemarker.org/ --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
[OS-webwork] (Offtopic) Freemarker WAS Using SiteMesh for the UI tags
I'll bite. Just this once. Jonathan Revusky wrote: Absolutely, go read it. I think you should go read it too, Rickard. Your comments here do not seem to be based on any grasp of what really happened. Just re-read it, and it re-confirmed my assesment of what happened, and my comments still stand. Anybody who reads the thread and was not born yesterday will see that the Velocity people started all the personal attacks, all the ad hominem and character assastination stuff against me specifically because they could not deal with me in legitimate debate. That you, Rickard, cannnot see through this, does not speak terribly well for you. Okidoki. I am specifically saying that this is where the thread starts. Somebody starts talking about comparing monetary value and I take the opportunity to point out that FreeMarker has the features they want. The discussion continues where a bunch of the Velocity people decide to debate philosophically the desirability of decimal numbers and such. What I meant was that it was a pretty good start of the rant, that went on and on and on and on. I really think you ought to read the thread as well. I think that if you do, you will discover, to your chagrin, that my characterization of it is correct, and that, in fact, you owe me an apology. I owe you zilch. What an eloquant way to say I have the right to say whatever I want, wherever I want, whenever I want, no matter what anyone else thinks. It's really fine up until the very last point. Your above reasoning would allow us to go to the Struts list to explain to them what a monumentally mediocre piece of work they have, Hold on a second. I *never* stated on the Velocity list that Velocity was a monumentally mediocre piece of work. I just stated it here. On the Velocity list, I restricted myself to pointing out that features (such as decimal support among other things) that Velocity users were lobbying for, were already present in FreeMarker. That has its obnoxious side, but it is completely fair comment and I do not believe that you can really maintain otherwise. You went in there with a specific agenda (which you stated yourself after a while), and from that point of view you thought that I have the right to say whatever I want, wherever I want, whenever I want, no matter what anyone else thinks, which is a point where we disagree and is the attitude that I objected to. I wouldn't want Struts people strutting around here like you did, and neither would I want WW folks ranting on the Struts lists. It's just bad taste. In any case, your basic stance is fundamentally nonsensical. If you wanted to know what my behavior would be like on this list if FreeMarker became an OS project, the thing to look at would be my behavior on the FreeMarker list, *not* on the Velocity list. Furthermore, your characterization of my behavior on the Velocity list (though utterly irrelevant anyway) is also inaccurate. The other people invariably commenced the ad hominem attacks on me because they could not deal with me in legitimate technical debate. This is not a matter of legitimate controversy. It is what a reading of the electronic record will show. And again, those who are interested in understanding this story should go read it. It's quite illuminating, especially since we seem to see completely different things. BTW, in terms of my assessment of Velocity's quality as a piece of work, I pretty much completely pulled my punches there. I mean, just as one example, look at the way Velocity handles macro parameters. It passes them in as strings, that are reparsed and evaluated every time the parameter is referenced in the macro. I simply pointed out that features that people had been lobbying unsuccessfully for in Velocity for god-knows-how-long were available in FreeMarker. That's probably an interesting point, but this is the WW list. We don't really care. which get the level of usage and attention that it does because it is a part of apache.org. Factually correct (one could argue), but oh so irrelevant. I guess we will just have to agree on disagreeing on this point. Well, as for agreeing to disagree, with the overtones of political correctness and relativism, well... sorry... I don't just agree to disagree with you on this matter. I am stating that your characterization of what happened is FALSE. And I have backed up the assertion by pointing to the exchange in question that anybody can read. Or so you think. Most amusing. Note that the reading of it is not particularly flattering to me. It shows my ability to push people's buttons for fun somewhat. BUT the behavior of the other people in the thread was typically far worse than mine. That much is pretty clear. To you. In other words, if someone else is a prick you have the right to be a prick too. Interesting logic, and again I guess we will just have to agree on disagreeing on this point. I was simply stating
Re: [OS-webwork] Re: Freemarker WAS Using SiteMesh for the UI tags
+1. Anyone actually want to commit something now? Don't forget if you don't have CVS access - email me your diffs I'll commit them. Cheers, Scott boxed wrote: Anybody who reads the thread and was not born yesterday will see that the Velocity people started all the personal attacks, all the ad hominem and character assastination stuff against me specifically because they could not deal with me in legitimate debate. That you, Rickard, cannnot see through this, does not speak terribly well for you. Please shut up now. I don't care if you were right or wrong, and neither does the majority of the people on this list. If you really wish to debate this create your own mailing list or mail the relevant people privately. This is a WebWork mailing list, it is NOT for flame fests about totally unrelated things. Anders Hovmöller [EMAIL PROTECTED] http://boxed.killingar.net --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork -- ATLASSIAN - http://www.atlassian.com Expert J2EE Software, Services and Support --- Need a simple, powerful way to track and manage issues? Try JIRA - http://www.atlassian.com/software/jira --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
RE: [OS-webwork] ActionContext clarification
Konstantin, I think the problem here is that you're not using the Model2 paradigm, which Webwork is based upon. It sounds like you are hitting the JSPs directly, whereas, in Webwork, we would hit foo.action, which (because *.action is mapped to the Webwork ServletDispatcher) would be handled by Webwork, and the ActionContext would be automatically set up for you and ready to access from ActionContext.getSession(). Jason -Original Message- From: Konstantin Priblouda [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 8:30 AM To: [EMAIL PROTECTED] Cc: webwork-devel Subject: Re: [OS-webwork] ActionContext clarification What is correct way to obtain ActionContext which was initialized with HttpSession data if there is HttpSession around? I think ServletActionContext.getSession() works. This method does not exists in current CVS version of webwork... Another question: It seems to me that ActionContext is stored as TreadLocal, is this map kept in synch with session contents? regards, = Konstantin Priblouda ( ko5tik )Freelance Software developer http://www.pribluda.de play java games - http://www.yook.de render charts online - http://www.pribluda.de/povray/ __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] ActionContext clarification
- Original Message - From: Jason Carreira [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 29, 2003 4:19 PM Subject: RE: [OS-webwork] ActionContext clarification Konstantin, I think the problem here is that you're not using the Model2 paradigm, which Webwork is based upon. It sounds like you are hitting the JSPs directly, whereas, in Webwork, we would hit foo.action, which (because *.action is mapped to the Webwork ServletDispatcher) would be handled by Webwork, and the ActionContext would be automatically set up for you and ready to access from ActionContext.getSession(). As Rickard has said the problem is that there is no initialized context, however I would not go as far saying that Webwork is only for Model-2. In the WW documentation it is clearly described to be for both Model-1 and Model-2 (that part written by Rickard originally I think). And in a Model-1 approach you use the ww:action and ww:bean tags. And I think one should not forget this because there are times when Model-1 can be useful, and you can scare away people by saying that it is only Model-2 (because they feel it gets more complicated than they want it). In Konstantin's case one solution could be to use a ww:action in the page. Best regards, Dick [EMAIL PROTECTED] --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
RE: [OS-webwork] URLTag changes in ww 1.3
sorry to come in so late...;-) I think the default should be how it is now, since after the last change, people have on the whole adapter their code to the new behaviour. no problem with that, but then it should be remembered to adapt the webwork table jsp template to mirror the original (1.2.1) behavior. Here is a suggestion for a change to the URLTag for 1.3. It uses a new attribute includeParams to determine what parameters to include: none, get or all. very good :-) this should match the requirements. Could this be checked in? Cheers -Paolo --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
RE: [OS-webwork] Re: Freemarker WAS Using SiteMesh for the UI tags
-Original Message- From: Chris Nokleberg [mailto:[EMAIL PROTECTED]] When is the next WebWork release planned for? -Chris Good question :-) --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
[OS-webwork] Problem with Eclipse and Tomcat Plugin
Hi, I have a problem, runnung Eclipse 2.1 on W2K with the tomcat 4.12 plugin from Sysdeo. If I use the webwork classes in my project and start tomcat within the eclipse ide, tomcat returns the error HTTP Status 503 - Servlet action is currently unavailable after calling an webwork action. JSP pages run correctly. If I start tomcat normally with the startup.bat from the bin directory, everything works fine. Does anyone has experiences with eclipse, tomcat and webwork? Do I have to set other jars in the project-classpath, I only added the webwork.jar to the libraries in the projects java build path. Thanks for your help, Thomas Kramer --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
RE: [OS-webwork] Problem with Eclipse and Tomcat Plugin
I ran into this one as well. I have to check my home configuration, but I think you do have to add your jars to the project classpath - Eclipse/Sysdeo seem to effect the Tomcat classpath settings. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Thomas Kramer Sent: Thursday, 30 January 2003 9:24 AM To: [EMAIL PROTECTED] Subject: [OS-webwork] Problem with Eclipse and Tomcat Plugin Hi, I have a problem, runnung Eclipse 2.1 on W2K with the tomcat 4.12 plugin from Sysdeo. If I use the webwork classes in my project and start tomcat within the eclipse ide, tomcat returns the error HTTP Status 503 - Servlet action is currently unavailable after calling an webwork action. JSP pages run correctly. If I start tomcat normally with the startup.bat from the bin directory, everything works fine. Does anyone has experiences with eclipse, tomcat and webwork? Do I have to set other jars in the project-classpath, I only added the webwork.jar to the libraries in the projects java build path. Thanks for your help, Thomas Kramer --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
Re: [OS-webwork] (Offtopic) Freemarker WAS Using SiteMesh for theUI tags
Still off-topic. Rickard Öberg wrote: hge snip Goodbye Jonathan. Jonathan is bashing on me off-line. Has anyone read the Velocity thread and found my characterization of it as disgusting to be way out of line and bordering on harassment of Jonathan? He sez: And you had no fucking business badmouthing me on a public list where it was completely off-topic. Also, the characterization of my ranting -- as if nobody else's shit stank there -- was fundamentally dishonest. Did anyone consider my opinion of the thread as badmouthing him? Just curious. /Rickard -- Rickard Öberg [EMAIL PROTECTED] Senselogic Got blog? I do. http://dreambean.com --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork