Re: call javascript from an action class
Actions do not control the users browser and therefore can't create popups. JSP Pages are sent to the browser which can contain Javascript which can do what you want. Follow Nils-H's links to see how to do create a pop-up in a page, and the Struts2 tutorials (http://struts.apache.org/2.x/docs/home.html) for information on how to get your data onto the page. Al. elyes sallem wrote: dou you understand my question first?, i don't want to display a confirmation message from a javascript i wanna display it from an action, so from java class i wanna make query in database depending on the result of the query, i will display the pop up and second time, depending on the user is response, ok or no , il will do some trt and make forward , all this in an action = java Regards Elyes 2008/12/18 Nils-Helge Garli Hegvik nil...@gmail.com As mentioned, google is a good source for information: http://www.google.com/search?q=javascript+tutorial http://www.google.com/search?q=javascript+popup Nils-H On Thu, Dec 18, 2008 at 4:40 PM, elyes sallem elyes.sal...@gmail.com wrote: i wanna display a pop up information 2008/12/18 Nils-Helge Garli Hegvik nil...@gmail.com I would be a lot easier to help if you gave some examples what you're actually trying to do. Invoking javascript from the action doesn't make much sense. Please provide som more information. Nils-H On Thu, Dec 18, 2008 at 4:27 PM, elyes sallem elyes.sal...@gmail.com wrote: Hello, i wanna call javascript from an action class, any one has an example? Thanks Regards Elyes. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Elyes. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: IRC channel
It's called trying to get you focused on the job ;). Al. Dave Newton wrote: --- On Wed, 12/17/08, Musachy Barroso wrote: a few of us hang in freenode #struts Today I discovered that my current gig (done Friday) blocks IRC. They block a lot of things. I don't like that. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: s:if test= how to find out the NULL value?
I use username neq null or usename eq null Al. Mead Lai wrote: Hi All, s:if test=${username !=null}Show something here/s:if s:if test=username == null Show something here/s:if which is right Tag above? I heared, It can't use like that expression after 2.0.11version, really? Any feedback is appreciated. -- Al Sutton W: www.alsutton.com B: alsutton.wordpress.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts2 static content
Nick, The way I do it is to have a web server front end backing off to a servlet engine and serve the static content from the web server. To give you an example of one of my sites (andappstore.com), I have Apache at the front end which connects to Tomcat at the back end via mod_jk ajp13, this means that the dynamic parts of the site are under a path (e.g. http://andappstore.com/AndroidPhoneApplications/apps/) and the static content is served by Apache without involving Tomcat (e.g. http://andappstore.com/images/defaulticon.jpg) This may be overkill for your app, but I've found that using Apache as a front end gives me more flexibility over bother dynamic and static content than trying to serve everything from an appserver. Al. Nick J wrote: Oh well, no one's answered me yet, but I have found a way, but it's not very satisfactory. The problem (as well as the action extension being set to empty string) was I had an action in the default namespace as action name=*... so it would intercept all remaining requests. For static content, I needed these additional packages- not ideal, because the namespaces are not hierarchical I need a separate namespace for each static content folder. Can anyone think of a better way? package name=static extends=struts-default namespace=/static action name=* result/{1}/result /action /package package name=static-css extends=struts-default namespace=/static/css action name=* result/css/{1}/result /action /package package name=static-js extends=struts-default namespace=/static/js action name=* result/js/{1}/result /action /package Nick J wrote: I am using struts2. I don't want .action or .do on the end of the url's, so I set struts.action.extension='' (empty string) -- Al Sutton W: www.alsutton.com B: alsutton.wordpress.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Performance and High CPU utilization
Are you, by any chance, trying to display a big list all at once? Al. sajanv007 wrote: sOME MORE TRACES CPU SAMPLES BEGIN (total = 8868) Sat Sep 6 12:29:17 2008 rank self accum count trace method 1 20.44% 20.44%1813 303423 ognl.SimpleNode.evaluateGetValueBody 2 12.55% 33.00%1113 300397 java.net.PlainSocketImpl.socketAccept 3 8.37% 41.36% 742 300856 java.net.SocketInputStream.socketRead0 4 7.81% 49.18% 693 303426 ognl.Ognl.getValue 5 4.52% 53.70% 401 303853 ognl.ASTProperty.getValueBody 6 4.18% 57.88% 371 302117 java.net.PlainDatagramSocketImpl.receive0 7 4.18% 62.07% 371 301880 java.net.SocketInputStream.socketRead0 sajanv007 wrote: These are HProf results CPU SAMPLES BEGIN (total = 3267) Sat Sep 6 12:27:45 2008 rank self accum count trace method 1 15.70% 15.70% 513 300397 java.net.PlainSocketImpl.socketAccept 2 10.47% 26.17% 342 300856 java.net.SocketInputStream.socketRead0 3 5.23% 31.40% 171 302117 java.net.PlainDatagramSocketImpl.receive0 4 5.23% 36.64% 171 301880 java.net.SocketInputStream.socketRead0 5 5.23% 41.87% 171 301035 weblogic.socket.DevPollSocketMuxer.doPoll 6 3.28% 45.15% 107 303426 ognl.Ognl.getValue 7 2.48% 47.63% 81 301738 sun.reflect.Reflection.getCallerClass 8 1.99% 49.62% 65 300923 java.lang.String.intern 9 1.87% 51.48% 61 303423 ognl.SimpleNode.evaluateGetValueBody 10 1.81% 53.29% 59 300505 java.util.zip.ZipFile.getEntry 11 1.56% 54.85% 51 301639 java.lang.Throwable.fillInStackTrace 12 1.41% 56.26% 46 303434 java.util.ResourceBundle.getObject 13 1.16% 57.42% 38 301739 java.lang.Object.clone 14 1.13% 58.56% 37 303267 ognl.OgnlRuntime.getHandler 15 1.01% 59.57% 33 301953 java.lang.Object.hashCode Al Sutton wrote: Do the ideas listed at http://java.sun.com/developer/technicalArticles/Programming/HPROF.html shed any light on it? sajanv007 wrote: I am using the latest Freemarker version 2.3.13 and Spring 2.5 OGNL 2.7.2 with Javaassist . Al Sutton wrote: Replace your freemarker lib with 2.3.13 or later. Prior releases had a concurrency performance issue. Al. sajanv007 wrote: It is a solaris box and has 16 GB memory and 4 CPU it is high end server class machine . Some how I suspect it is the OGNL or Freemarker rendering issue . Jim Kiley wrote: What kind of server are you using here, how much memory, what CPU -- when we are getting to CPU utilization, all of these issues are relevant. On Thu, Sep 18, 2008 at 3:43 PM, sajanv007 [EMAIL PROTECTED] wrote: I have tried all the tuning parameters mentioned in the link somehow CPU utilization is always 80% ,I observed that it takes tags are rendered from free marker cache but still the cpu 80-90% . Regards Sajan Nils-Helge Garli wrote: Maybe this can help: http://struts.apache.org/2.0.11.2/docs/performance-tuning.html Nils-H On Thu, Sep 18, 2008 at 9:11 PM, sajanv007 [EMAIL PROTECTED] wrote: There is huge performance issue and CPU hogging with Struts2 tag , this was observed while rendering JSP. These are some performance results obtained Strut 2 Tag - With all performance tuning applied as per Struts 2 documentation - Freemarker caching etc... Load Runner Tool 40 users 900 hits per second 10 transaction per second Results CPU utilization 90% Response 3.5 sec Replaced some of Struts2 Tag , with Custom JSP Tags like (s:label, s:text,s:textfield,s:hidden,s:param) 40 users 900 hits per second 15 transaction per second Results CPU utilization 70% Response 2.0 sec Some where down the line Struts 2 tag are very cpu hungry , to people to adopt to strut2 framework cpu utilization should be optimized . Did anybody come across on how to over come this problem -- View this message in context: http://www.nabble.com/Performance-and-High-CPU-utilization-tp19559123p19559123.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http
Re: Performance and High CPU utilization
Replace your freemarker lib with 2.3.13 or later. Prior releases had a concurrency performance issue. Al. sajanv007 wrote: It is a solaris box and has 16 GB memory and 4 CPU it is high end server class machine . Some how I suspect it is the OGNL or Freemarker rendering issue . Jim Kiley wrote: What kind of server are you using here, how much memory, what CPU -- when we are getting to CPU utilization, all of these issues are relevant. On Thu, Sep 18, 2008 at 3:43 PM, sajanv007 [EMAIL PROTECTED] wrote: I have tried all the tuning parameters mentioned in the link somehow CPU utilization is always 80% ,I observed that it takes tags are rendered from free marker cache but still the cpu 80-90% . Regards Sajan Nils-Helge Garli wrote: Maybe this can help: http://struts.apache.org/2.0.11.2/docs/performance-tuning.html Nils-H On Thu, Sep 18, 2008 at 9:11 PM, sajanv007 [EMAIL PROTECTED] wrote: There is huge performance issue and CPU hogging with Struts2 tag , this was observed while rendering JSP. These are some performance results obtained Strut 2 Tag - With all performance tuning applied as per Struts 2 documentation - Freemarker caching etc... Load Runner Tool 40 users 900 hits per second 10 transaction per second Results CPU utilization 90% Response 3.5 sec Replaced some of Struts2 Tag , with Custom JSP Tags like (s:label, s:text,s:textfield,s:hidden,s:param) 40 users 900 hits per second 15 transaction per second Results CPU utilization 70% Response 2.0 sec Some where down the line Struts 2 tag are very cpu hungry , to people to adopt to strut2 framework cpu utilization should be optimized . Did anybody come across on how to over come this problem -- View this message in context: http://www.nabble.com/Performance-and-High-CPU-utilization-tp19559123p19559123.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Performance-and-High-CPU-utilization-tp19559123p19560223.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jim Kiley Technical Consultant | Summa [p] 412.258.3346 [m] 412.445.1729 http://www.summa-tech.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Performance and High CPU utilization
Do the ideas listed at http://java.sun.com/developer/technicalArticles/Programming/HPROF.html shed any light on it? sajanv007 wrote: I am using the latest Freemarker version 2.3.13 and Spring 2.5 OGNL 2.7.2 with Javaassist . Al Sutton wrote: Replace your freemarker lib with 2.3.13 or later. Prior releases had a concurrency performance issue. Al. sajanv007 wrote: It is a solaris box and has 16 GB memory and 4 CPU it is high end server class machine . Some how I suspect it is the OGNL or Freemarker rendering issue . Jim Kiley wrote: What kind of server are you using here, how much memory, what CPU -- when we are getting to CPU utilization, all of these issues are relevant. On Thu, Sep 18, 2008 at 3:43 PM, sajanv007 [EMAIL PROTECTED] wrote: I have tried all the tuning parameters mentioned in the link somehow CPU utilization is always 80% ,I observed that it takes tags are rendered from free marker cache but still the cpu 80-90% . Regards Sajan Nils-Helge Garli wrote: Maybe this can help: http://struts.apache.org/2.0.11.2/docs/performance-tuning.html Nils-H On Thu, Sep 18, 2008 at 9:11 PM, sajanv007 [EMAIL PROTECTED] wrote: There is huge performance issue and CPU hogging with Struts2 tag , this was observed while rendering JSP. These are some performance results obtained Strut 2 Tag - With all performance tuning applied as per Struts 2 documentation - Freemarker caching etc... Load Runner Tool 40 users 900 hits per second 10 transaction per second Results CPU utilization 90% Response 3.5 sec Replaced some of Struts2 Tag , with Custom JSP Tags like (s:label, s:text,s:textfield,s:hidden,s:param) 40 users 900 hits per second 15 transaction per second Results CPU utilization 70% Response 2.0 sec Some where down the line Struts 2 tag are very cpu hungry , to people to adopt to strut2 framework cpu utilization should be optimized . Did anybody come across on how to over come this problem -- View this message in context: http://www.nabble.com/Performance-and-High-CPU-utilization-tp19559123p19559123.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Performance-and-High-CPU-utilization-tp19559123p19560223.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jim Kiley Technical Consultant | Summa [p] 412.258.3346 [m] 412.445.1729 http://www.summa-tech.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: on the chrome bandwagon
The only problem I have had is with the EULA that lets Google use your usernames and passwords to gain access to websites they otherwise couldn't index. Quote; By submitting, posting or displaying the content you give Google a perpetual, irrevocable, worldwide, royalty-free, and non-exclusive license to reproduce, adapt, modify, translate, publish, publicly perform, publicly display and distribute any content which you submit, post or display on or through, the services. This license is for the sole purpose of enabling Google to display, distribute and promote the services and may be revoked for certain services as defined in the additional terms of those services. Musachy Barroso wrote: I have been using it since yesterday, and all the websites I often use, seem to work. musachy On Wed, Sep 3, 2008 at 2:42 PM, dynamicd [EMAIL PROTECTED] wrote: My App is working perfectly fine on chrome. Seems to be working the same as in firefox. Jukka Välimaa wrote: This is one bandwagon I've been riding since I read that comic. I've done a brief overview of our app with Chrome, and mostly dojo tags seem to be working perfectly. Div, button and tree, listen- and notifytopics work just the same as in Firefox. There's one view with tabbedpanel where content from tabs escapes to other tabs or outside the panel. On Wed, Sep 3, 2008 at 7:03 AM, Jeromy Evans [EMAIL PROTECTED] wrote: I don't often jump on bandwagon's and I'm not really an early-adopter, but I think many struts users would appreciate the chrome comic strip: http://www.google.com/googlebooks/chrome/ javascript hidden class transitions... mmm... i like that To put this on topic, has any one tested the struts 2 dojo tags in chrome yet? cheers, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/on-the-chrome-bandwagon-tp19282592p19295392.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: REST Showcase 2.1.2
Scott, Annotations serve a very useful purpose, and unless you're using a JRE less than version 5 they're worth the effort. I didn't think they were worth it until I had an opportunity to write a Struts2/Hibernate app from scratch and saw how it moved a lot of the config from a dis-associated file into the relevant section of the code. Al. P.S. As for your sister... well if it's some you want to do I won't hold you making a choice between the two. Wes Wannemacher wrote: What's wrong with annotations, and more importantly - How hot is your sister?! (sorry, couldn't resist) -Wes On Mon, 2008-09-01 at 08:57 -0500, [EMAIL PROTECTED] wrote: Thanks Jeromy -- I'd rather sleep with my sister than embed annotations in my code. This notwithstanding, I understand your reluctance to add yet another permutation to that lookup scheme. I poked around in the code back in 2.0 and nearly got a nose bleed. I hope there are a ton of unit tests around that baby! I'm getting the feeling that REST is not ready for prime time. I too wondered why it was excluding edit, editNew. I'm sure there was a reason. Peace, Scott On Mon, Sep 1, 2008 at 8:09 AM, Jeromy Evans [EMAIL PROTECTED] wrote: stanlick wrote: Also, what is the naming convention for validation xml files using the Code Behind/REST plug-in? I've tried several combinations of naming, but none seem to work. The short answer is: you can't. It doesn't work. Fortunately annotation validation works correctly in 2.1, so the approach I've used is: - the action carries validation annotations on the applicable methods; - the model's use XML validation as they can be used together and it's well suited to ModelDriven. The problem is that the DefaultValidatorFileParser in Xwork that reads the XML file has no way to specify which method it should be applied to. It applies to the entire class. With wildcards in 2.0 you could get around this because the action alias included the method name. It's the same reason using method='update' spefied in struts.xml never worked properly with XML validation. The parameter was ignored by the XML validator. This had always frustrated me. Fortunately somebody fixed the annotation interceptor so it can distinguish between the methods being executed. Unfortunately that fix (validateAnnotatedMethodOnly) is not enabled by the rest plugin by default. Further compounding the problem is that rest plugin has disabled validation for the edit, editNew and other relevant methods. (I'm not sure why...there must have been a reason for that). What I've done is replace the rest default stack with one that includes the validation interceptor with better configuration: interceptor-ref name=validation param name=excludeMethodsinput,back,cancel,browse,index/param param name=validateAnnotatedMethodOnlytrue/param /interceptor-ref interceptor-ref name=restWorkflow param name=excludeMethodsinput,back,cancel,browse,index/param /interceptor-ref I've been tempted to delve in a fix this but so far I've stayed out of xwork. The rest plugin does the right thing setting up the ActionInvocation with the action name and method name; the XML validation config reader just needs to use the method name to select the file (eg. to load OrdersControler-action-method-validation.xml if it exists). But I feel it already searches for far too many combinations, so I've been reluctant to touch it. stanlinck also wrote: Would you share the interceptor stack to fold paramsPrepareParamsStack capabilities into the restDefaultStack? I haven't experimented with this much with the rest plugin as I try to avoid it . It's reasonable logical... The actionMappingParams interceptor is the one responsible for setting the id, so it needs to appear before the prepare interceptor. If you need other params, before prepare, you also need params before prepare. The actionMappingParams and params are then required after prepare again. ie. set the id, load the object, set the id and params It's different because the ActionMapper obtained the id from URI. If you use other variables in the namespace you also need this interceptor before prepare. Hope that helps, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Al Sutton W: www.alsutton.com B: alsutton.wordpress.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts 2 Hibernate Examples?
There's an article in the wiki at http://cwiki.apache.org/S2WIKI/struts-2-spring-2-jpa-ajax.html Al. Andrew Myers wrote: Hi, I was hoping someone may be able to send me some links to some useful tutorials or sample apps using Struts 2 and Hibernate, or failing that any good books that might guide me through this. Any advice would be greatly appreciated. Thanks! Andrew. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: [S2] Iterate through two lists
C... I love a puzzle.. Can you give us the 9 characters in an anagram?? Dave Newton wrote: --- On Thu, 8/28/08, Milan Milanovic wrote: 9-character JSP trick, what is this ? It's a clue that you could (potentially) solve [1] your issue by adding 9 characters to your JSP, without having to change anything in the Java code. The Set Javadocs may help. Dave [1] ObCaveat: it's untested with your particular data and implementation. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Al Sutton W: www.alsutton.com B: alsutton.wordpress.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: [S2] Iterate through two lists
Define expesive... Do you mean expensive?, if so expensive in what terms; memory, speed, required goat sacrifices? Al. Milan Milanovic wrote: toArray() ? It works, but it is too expesive ? Milan newton.dave wrote: --- On Thu, 8/28/08, Al Sutton wrote: C... I love a puzzle.. Can you give us the 9 characters in an anagram?? A rotary? (Plus two non-alpha, but it's already too easy now.) Not having enough information sure is a pain, huh. Dave Dave Newton wrote: --- On Thu, 8/28/08, Milan Milanovic wrote: 9-character JSP trick, what is this ? It's a clue that you could (potentially) solve [1] your issue by adding 9 characters to your JSP, without having to change anything in the Java code. The Set Javadocs may help. Dave [1] ObCaveat: it's untested with your particular data and implementation. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Al Sutton W: www.alsutton.com B: alsutton.wordpress.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Al Sutton W: www.alsutton.com B: alsutton.wordpress.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: [S2] Iterate through two lists
If been using toArray recently so it's been kind of a necessity. Have you found a non-goat sacrificing optimisation? Jim Kiley wrote: Have you bought any goats lately? On Thu, Aug 28, 2008 at 1:12 PM, Al Sutton [EMAIL PROTECTED] wrote: Define expesive... Do you mean expensive?, if so expensive in what terms; memory, speed, required goat sacrifices? Al. Milan Milanovic wrote: toArray() ? It works, but it is too expesive ? Milan newton.dave wrote: --- On Thu, 8/28/08, Al Sutton wrote: C... I love a puzzle.. Can you give us the 9 characters in an anagram?? A rotary? (Plus two non-alpha, but it's already too easy now.) Not having enough information sure is a pain, huh. Dave Dave Newton wrote: --- On Thu, 8/28/08, Milan Milanovic wrote: 9-character JSP trick, what is this ? It's a clue that you could (potentially) solve [1] your issue by adding 9 characters to your JSP, without having to change anything in the Java code. The Set Javadocs may help. Dave [1] ObCaveat: it's untested with your particular data and implementation. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Al Sutton W: www.alsutton.com B: alsutton.wordpress.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Al Sutton W: www.alsutton.com B: alsutton.wordpress.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Al Sutton W: www.alsutton.com B: alsutton.wordpress.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: [S2] Iterate through two lists
And everything always has a price, even if you don't what it costs it may still be the only way to get what you want. georz1 wrote: Probably not too expensive in terms of speed considering this has been going on for 9 days now On Thu, Aug 28, 2008 at 1:06 PM, Milan Milanovic [EMAIL PROTECTED]wrote: Expensive, you got it. In terms of speed, of course, because I need to do this 3-4 times in a jsp...but we definitely should think about goat sacrifices too. -- Milan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: [S2] Iterate through two lists
If I had a solution I would give it to you faster than that :). Maybe you need to approach the problem from a different angle (i.e. display the data differently), or do some reworking in the action to put the data in a more friendly format. Milan Milanovic wrote: If you had solution, I'm sure that we would solve it in 5mins. georz1 wrote: Probably not too expensive in terms of speed considering this has been going on for 9 days now On Thu, Aug 28, 2008 at 1:06 PM, Milan Milanovic [EMAIL PROTECTED]wrote: Expensive, you got it. In terms of speed, of course, because I need to do this 3-4 times in a jsp...but we definitely should think about goat sacrifices too. -- Milan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help Jobs Search Engine Script
Advice : Find an appropriate mailing list to send this to. Can someone block this spammer. Ta, Al. Jeni Mattews wrote: Dear Friends, I would loke to start a Jobs Search Engine like www.simplyhired.com, Can anyone help / have Jobs Search Engine Script. Please advise Thank you Jeni Mattews -- Al Sutton W: www.alsutton.com B: alsutton.wordpress.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help Jobs Search Engine Script
This mailing list is for discussion about the struts2 framework by people who are using it. This is not the place to look for employees or contractors, you need to look for a job agency in order to do that. You posted your message twice, so hopefully now you will go looking elsewhere for someone to rip-off the copyrighted site you mentioned (and yes, you can get taken to court and sued if you live in Essex, UK and you copy an American copyrighted site). Jeni Mattews wrote: Try and know yourself who are spammers and help genuine people looking for information or help. --- On Tue, 8/26/08, Al Sutton [EMAIL PROTECTED] wrote: From: Al Sutton [EMAIL PROTECTED] Subject: Re: Help Jobs Search Engine Script To: Struts Users Mailing List user@struts.apache.org Date: Tuesday, August 26, 2008, 6:25 AM Advice : Find an appropriate mailing list to send this to. Can someone block this spammer. Ta, Al. Jeni Mattews wrote: Dear Friends, I would loke to start a Jobs Search Engine like www.simplyhired.com, Can anyone help / have Jobs Search Engine Script. Please advise Thank you Jeni Mattews -- Al Sutton W: www.alsutton.com B: alsutton.wordpress.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: Add yourself to mobchannel.com
Wonder if it tracks the Mobchannel are pants because they don't track anything blogs? Has someone booted this spammer from the list? Al. Dave Newton wrote: --- On Thu, 8/21/08, Arun wrote: I am running the site (mobchannel.com) which aggregates all the blogs in www. I find that unlikely; I would have guessed there were more than ~31k blogs. According to the Technorati they're tracking ~112m blogs [1], so you're still missing a few. At the least this should have been marked as off-topic. (Btw, I get a bunch of Error 0 strings on the home page when I click the Blogs menu item if I click it before the front page has completed rendering.) Dave [1] http://technorati.com/about/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Al Sutton W: www.alsutton.com B: alsutton.wordpress.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: Add yourself to mobchannel.com
What do you think a spammer is if it's not someone who clicks add all contacts and then sends a message? Arun wrote: Guys, I am not a spammer sorry I posted to the mailing list. I just clicked add all contacts and send that. Just ignore the message please Thanks Arun On Fri, Aug 22, 2008 at 12:41 AM, Al Sutton [EMAIL PROTECTED] wrote: Wonder if it tracks the Mobchannel are pants because they don't track anything blogs? Has someone booted this spammer from the list? Al. Dave Newton wrote: --- On Thu, 8/21/08, Arun wrote: I am running the site (mobchannel.com) which aggregates all the blogs in www. I find that unlikely; I would have guessed there were more than ~31k blogs. According to the Technorati they're tracking ~112m blogs [1], so you're still missing a few. At the least this should have been marked as off-topic. (Btw, I get a bunch of Error 0 strings on the home page when I click the Blogs menu item if I click it before the front page has completed rendering.) Dave [1] http://technorati.com/about/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Al Sutton W: www.alsutton.com B: alsutton.wordpress.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Al Sutton W: www.alsutton.com B: alsutton.wordpress.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Heads up for those using Tomcat in production.
http://www.kb.cert.org/vuls/id/343355 Off topic I know, but I suspect that most of us on here have a tomcat server in production somewhere. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Validate associate Map
If you can tell me how to put XML example code into an audio form I might start to believe you about them selling as anything more than a novelty. The biggest problem is that when dealing with computers you are extremely rarely dealing with the English language and the various code snippets, configuration files, etc. are only really of benefit when available visually as reference when reading (or hearing) the other parts of the text. But hey, if you want to record a podcast that has code snippets/configuration examples in it and prove me wrong feel free to go for it. Al. P.S. I've you want some career advice, work on the attention span. I've seen a number of people fired for looking incompetent because they kept disrupting co-workers with questions which could have been answered by reading the manual and they got bored of the job they have to do and churn out some really s**t code whilst messing around with other things.. most employers really don't like it. [EMAIL PROTECTED] wrote: Dude, I totally think technical books on audio would sell! Most NERDS (like myself) have the attention span of a moth and are so busy chasing shiny things they can never get to the end of a book! I would slam an aBook in my iPod for the commute. For a great example of what I mean by attention span disorder, check this http://www.coudal.com/regrets.php out. On Sat, Aug 16, 2008 at 3:23 PM, Dave Newton [EMAIL PROTECTED] wrote: --- On Sat, 8/16/08, Al Sutton wrote: lol... I've just had a mental image of Dave reading the XML examples. I have a very soothing XML voice. I'm like the Isaac Hayes (but alive-ier) of structured text. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts2 Application Structure
Not sure where you get the action-per page is the generally accepted norm, but if your page is purely static (i.e. accesses no variables and includes no forms), go straight to the html page. Not only does this save you the JSP compile/post-compile interpretation time it also allows you to move the page onto an separate Apache HTTPD server to improve performance. Al. Roger wrote: Having followed this group for a while I know that the generally accepted wisdom is that every page should be handled via an Action. However, I have an application that is probably going to be 70% static pages with 30% Strut-able actions to handle form entry etc etc. This means that I'm going to have an awful lot of action classes that do nothing other than display the next page which feels kludgy. How would people deal with this? Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Al Sutton W: www.alsutton.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts2 Application Structure
Roger wrote: Any link http://www.host.com/MyApplication passes directly to Struts 2. Only if you're using a strange configuration that says it should. Otherwise http://www.host.com/MyApplication/blah.jsp will be processed in the same way as any other jsp, and http://www.host.com/MyApplication/blah.html will be treated like any other HTML file. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Validate associate Map
lol... I've just had a mental image of Dave reading the XML examples. Some things just don't work in audio. Al. [EMAIL PROTECTED] wrote: Can you record *yourself *reading these documents and just post the Podcast? On Sat, Aug 16, 2008 at 9:24 AM, Dave Newton [EMAIL PROTECTED] wrote: --- On Sat, 8/16/08, Kibo wrote: I have to write custom validation method where I iterate all PageText class and validate it. I want to use validate() method from ActionSupport class but the method is invoke always. I need invoke validator method only when is invoke method save(); Is better resolution? One option would be to read the documentation for the validation interceptor [1,2] and its superclass, MethodFilterInterceptor [3]. Dave [1] Validation interceptor overview: http://struts.apache.org/2.x/docs/validation-interceptor.html [2] ValidationInterceptor Javadocs: http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/validator/ValidationInterceptor.html [3] MethodFilterInterceptor Javadocs: http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/interceptor/MethodFilterInterceptor.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Changing the way Context Root and Namespaces are rendered in URLS.
What you're talking about is an application server issue. An easy solution would be to name your war files/contexts to be your app name and then use a namespace of . Al. Pandolf wrote: Hi everyone, I'm using Struts 2 to author Facebook applications and I have a bit of a problem. When using the struts form or URL tags, struts 2 of course wants to render URLs as follows: /context root/namespace/action Because I'm running applications through Facebook, the urls must be in the following format: /my facebook app name/action Is there any way, perhaps in struts.xml, to change the way URLs are rendered by struts? Really what I need is to drop the context root and include my facebook app name. The only solution I've come up with is to set the context root of my web app to be / and then put all actions for my facebook app in a namespace called my app name. Unfortunately this clutters my namespace hierarchy and so I'm hoping there may be a better solution? Any thoughts? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Server Side caching of .action(s)
Apache HTTPD :- http://httpd.apache.org/docs/2.0/mod/mod_proxy.html#forwardreverse GF wrote: Hello. I want to do some server side caching of some specific .action of my websites. I am currently working on the CacheFilter of OsCache, but it doesn't seem very good and has some limitations I don't like. Can you suggest me some good open source alternatives to analyze? Thanks -- -- Al Sutton W: www.alsutton.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: struts 2 login issue
I'm pretty sure it's something else (unless your struts app is coded badly). Try disabling any Anti-Virus/Firewall/etc. software before running the test. Failing that look at your app server and memory usage. Al. nauke. wrote: Hi, I'm not sure if this is a struts problem or something else. I log into my app, when my session times out, I try to do something else. I get presented with the login page, which is correct, but it fails with the following error: Connection Interrupted, The connection to the server was reset while the page was loading. The network link was interrupted while negotiating a connection. Please try again. (button Try Again) The URL in my address bar says: http://localhost:8080/myapp/j_security_check Any ideas anyone? Cheers -- -- Al Sutton W: www.alsutton.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Refactoring Action classes
More like; package name=somePackage namespace=/myNamespace extends=struts-default action name=load method=load class=FirstObjectManager.../action action name=save method=save class=FirstObjectManager.../action action name=load method=load class=SecondObjectManager.../action action name=save method=save class=SecondObjectManager.../action ... /package You can also use singletons, utility classes, and good old-fashioned inheritance to reduce code duplication (remember, Actions don't have to extend ActionSupport, ActionSupport is just a utility class). Al. Milan Milanovic wrote: Dear Al, O.K. You suggest that I have multiple classes in one package/namespace, like this: package name=somePackafe namespace=/myNamespace extends=struts-default action name=load method=execute class=FirstActionClass ... /action ... action name=save method=execute class=SecondActionClass ... /action /package ? I understand what are you talking about, but my class is connected to little bit complex jsp-s, where I have, reading/saving master object, reading/saving its child objects, some links to other objects, and all of that must be placed during user input, like wizard, so it's hard to separate code in two classes, because I will have a lot of duplicate code (attributes). -- Regards, Milan Al Sutton wrote: You don't need to have all your actions for a namespace in a single class, you can use multiple classes. I usually group methods acting on a common object into a single class which usually leaves me with the 5 public methods in a class which map to actions (typically CRUD plus a View method), and multiple classes for different object types. Imho 20 is too many, 10 is a lot, 5 is OK (don't forget that's public action methods, the number of private methods you have will depend on your app). Al. Milan Milanovic wrote: Dear Al and Dave, I tried to fix that error with session variable all weekend and I didn't managed to fix it. When action is defined as redirect action to another namespace, and when that action is called, another action called method doesn't see my session variables. I just changed this redirect action to that another namespace, as standard action (not redirect) and I now see my variables! I don't have any idea why it doesn't work with redirect action, but I'm SURE that there is some problem. I have one question regarding refactoring action classes, is it much to have 20 actions per one namespace/action class ? -- Regards, Milan -- -- Al Sutton W: www.alsutton.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Al Sutton W: www.alsutton.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Refactoring Action classes
You can change the action name to something more explicit so instead of just load, save, load, save, you could have firstObjectLoad, firstObjectSave, You may want to look up RESTful URLs to get some inspiration. Al. Milan Milanovic wrote: Thanks Al. But in this way, how I'll now which load is for which class when defining a link ? -- Regards, Milan Al Sutton wrote: More like; package name=somePackage namespace=/myNamespace extends=struts-default action name=load method=load class=FirstObjectManager.../action action name=save method=save class=FirstObjectManager.../action action name=load method=load class=SecondObjectManager.../action action name=save method=save class=SecondObjectManager.../action ... /package You can also use singletons, utility classes, and good old-fashioned inheritance to reduce code duplication (remember, Actions don't have to extend ActionSupport, ActionSupport is just a utility class). Al. Milan Milanovic wrote: Dear Al, O.K. You suggest that I have multiple classes in one package/namespace, like this: package name=somePackafe namespace=/myNamespace extends=struts-default action name=load method=execute class=FirstActionClass ... /action ... action name=save method=execute class=SecondActionClass ... /action /package ? I understand what are you talking about, but my class is connected to little bit complex jsp-s, where I have, reading/saving master object, reading/saving its child objects, some links to other objects, and all of that must be placed during user input, like wizard, so it's hard to separate code in two classes, because I will have a lot of duplicate code (attributes). -- Regards, Milan Al Sutton wrote: You don't need to have all your actions for a namespace in a single class, you can use multiple classes. I usually group methods acting on a common object into a single class which usually leaves me with the 5 public methods in a class which map to actions (typically CRUD plus a View method), and multiple classes for different object types. Imho 20 is too many, 10 is a lot, 5 is OK (don't forget that's public action methods, the number of private methods you have will depend on your app). Al. Milan Milanovic wrote: Dear Al and Dave, I tried to fix that error with session variable all weekend and I didn't managed to fix it. When action is defined as redirect action to another namespace, and when that action is called, another action called method doesn't see my session variables. I just changed this redirect action to that another namespace, as standard action (not redirect) and I now see my variables! I don't have any idea why it doesn't work with redirect action, but I'm SURE that there is some problem. I have one question regarding refactoring action classes, is it much to have 20 actions per one namespace/action class ? -- Regards, Milan -- -- Al Sutton W: www.alsutton.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Al Sutton W: www.alsutton.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Al Sutton W: www.alsutton.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Refactoring Action classes
You don't need to have all your actions for a namespace in a single class, you can use multiple classes. I usually group methods acting on a common object into a single class which usually leaves me with the 5 public methods in a class which map to actions (typically CRUD plus a View method), and multiple classes for different object types. Imho 20 is too many, 10 is a lot, 5 is OK (don't forget that's public action methods, the number of private methods you have will depend on your app). Al. Milan Milanovic wrote: Dear Al and Dave, I tried to fix that error with session variable all weekend and I didn't managed to fix it. When action is defined as redirect action to another namespace, and when that action is called, another action called method doesn't see my session variables. I just changed this redirect action to that another namespace, as standard action (not redirect) and I now see my variables! I don't have any idea why it doesn't work with redirect action, but I'm SURE that there is some problem. I have one question regarding refactoring action classes, is it much to have 20 actions per one namespace/action class ? -- Regards, Milan -- -- Al Sutton W: www.alsutton.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OT: Asynchronous queue between two web applications
Wow, a problem that doesn't mention struts anywhere and isn't even about web frameworks, there's OT and way-OT. I think you need to find a list more in tune with your problem. Al. Janesh Subrahmanyan wrote: Hi, We have two applications and need to periodically synchronize data from one to another. One is the master (source) and other is the destination. The applications are running on tomcat servers on separate linux boxes. I thought of using a JMS based asynchronous queue for the data sync/handshake. From what I read there are multiple ways to do this - using activeMQ, openJMS, tomcat's inbuild JMS etc. Also there are a variety of supporting tools like Spring JMS etc. Not sure how to take this forward. Can someone tell which is the better way to implement this requirement? [if possible please provide pointer to some document/example to help me start with]. Thanks. Kind Regards, Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present
Dave, Repeat after me; It's Friday. It's nearly the weekend. And if they don't give me what I want I'm going to take my toys away and stop playing :). Al. Dave Newton wrote: --- On Fri, 8/1/08, Milan Milanovic [EMAIL PROTECTED] wrote: Yes, I understand. But I don't remove session variable or call invalidate anymore, and when my variable is stored during the whole scenario and when I click to this redirect I get lost of my variable. Then provide the artifacts I requested so people can look at it--how do you expect anybody to diagnose your problem if you don't provide what's necessary? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Al Sutton W: www.alsutton.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present
Just making sure hurricane Dave doesn't blow through the list. If you ask for help, and someone offers, give them what they ask for. They can always ask for a translation of bits that may be critical, but unless you've rewritten large chunks of the JVM and Struts your tags and code will still be understandable. Milan Milanovic wrote: Al ?! Dave, I cannot give you all that info, because of two things, first my classes and jsp-s are pretty complex, and not in english! So, I narrowed my scenario to this, my variable is in session - when redirect action is clicked, there is no variable in session any more! It's seems like that redirect action doesn't pass or set session to another action class. -- Regards, Milan Al Sutton wrote: Dave, Repeat after me; It's Friday. It's nearly the weekend. And if they don't give me what I want I'm going to take my toys away and stop playing :). Al. Dave Newton wrote: --- On Fri, 8/1/08, Milan Milanovic [EMAIL PROTECTED] wrote: Yes, I understand. But I don't remove session variable or call invalidate anymore, and when my variable is stored during the whole scenario and when I click to this redirect I get lost of my variable. Then provide the artifacts I requested so people can look at it--how do you expect anybody to diagnose your problem if you don't provide what's necessary? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Al Sutton W: www.alsutton.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Al Sutton W: www.alsutton.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present
:O imho first stop would be someone who will refactor them. 5 jsps and 2 classes with 5K lines of code is not a healthy program. Once they have been refactored you may find it easier to find the problem. Al. Milan Milanovic wrote: O.K. My 5 jsp which are used and two action classes have 5000+k lines of code, should I send them here ? -- Milan Al Sutton wrote: Just making sure hurricane Dave doesn't blow through the list. If you ask for help, and someone offers, give them what they ask for. They can always ask for a translation of bits that may be critical, but unless you've rewritten large chunks of the JVM and Struts your tags and code will still be understandable. Milan Milanovic wrote: Al ?! Dave, I cannot give you all that info, because of two things, first my classes and jsp-s are pretty complex, and not in english! So, I narrowed my scenario to this, my variable is in session - when redirect action is clicked, there is no variable in session any more! It's seems like that redirect action doesn't pass or set session to another action class. -- Regards, Milan Al Sutton wrote: Dave, Repeat after me; It's Friday. It's nearly the weekend. And if they don't give me what I want I'm going to take my toys away and stop playing :). Al. Dave Newton wrote: --- On Fri, 8/1/08, Milan Milanovic [EMAIL PROTECTED] wrote: Yes, I understand. But I don't remove session variable or call invalidate anymore, and when my variable is stored during the whole scenario and when I click to this redirect I get lost of my variable. Then provide the artifacts I requested so people can look at it--how do you expect anybody to diagnose your problem if you don't provide what's necessary? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Al Sutton W: www.alsutton.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Al Sutton W: www.alsutton.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Al Sutton W: www.alsutton.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present
Answer : No Only your code and your site design will affect the session variables you have set and whether they are accessible. Milan Milanovic wrote: Hi Piero, O.K. Basically I'm just asking one simple question, is it possible that redirect action delete session or variables in it or maybe not pass some, because they after redirecting I don't have that variable in session ? -- Regards, Milan Piero Sartini-3 wrote: It's seems like that redirect action doesn't pass or set session to another action class. If you can't give us the code, we aren't able to help you. Session's don't need to be passed between actions. They are managed by the servlet container. But it is pretty safe to assume that Struts2 is not destroying your session. Piero - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Al Sutton W: www.alsutton.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present
Seriously, refactor your code. 5K lines of code in 7 files could hide all manner of nasties. Milan Milanovic wrote: O.K. Thanks. I must see why my session is deleted when redirect action is called :-(. I checked everything 10 times, and I don't anything with session, so it is very wierd to me why it is removed after just one click. -- Regards, Milan Al Sutton wrote: Answer : No Only your code and your site design will affect the session variables you have set and whether they are accessible. Milan Milanovic wrote: Hi Piero, O.K. Basically I'm just asking one simple question, is it possible that redirect action delete session or variables in it or maybe not pass some, because they after redirecting I don't have that variable in session ? -- Regards, Milan Piero Sartini-3 wrote: It's seems like that redirect action doesn't pass or set session to another action class. If you can't give us the code, we aren't able to help you. Session's don't need to be passed between actions. They are managed by the servlet container. But it is pretty safe to assume that Struts2 is not destroying your session. Piero - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Al Sutton W: www.alsutton.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Al Sutton W: www.alsutton.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present
Thhhaaa she blows!! (I use she in the shipping sense of the word... i.e. everythings a she when you're at sea for that long and it's all blokes). Dave Newton wrote: --- On Fri, 8/1/08, Milan Milanovic [EMAIL PROTECTED] wrote: O.K. Basically I'm just asking one simple question, is it possible that redirect action delete session or variables in it or maybe not pass some, because they after redirecting I don't have that variable in session ? NO. There is no mechanism in S2 that arbitrarily removes session variables. The redirectAction result don't do anything to the session at all. In fact, very little does anything with the session at all. Look at the S2 code. Since you're not going to help us help you, you're going to have to help yourself. All the code is available. Step through it if you have to. Read the documentation of any code you use that might involve the session; not knowing what session.invalidate() does leads me to believe you haven't spent much time with the Javadocs. Check your interceptor stack and interceptor configuration. If you don't want to step through code, add an interceptor that tracks session variables and see if an interceptor is removing it. Understand Acegi better; if it's making you log in then something is wrong and you may lose your session there. RedirectAction is not the culprit, AFAICT, from the information you've provided. Hurricane Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Al Sutton W: www.alsutton.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present
Don't worry, I've just written a rant about not relying on dirty reads and had to re-word it to include the footnote This discussion is about the SQL JDBC Drivers and is not about porn. Dave Newton wrote: --- On Fri, 8/1/08, Al Sutton [EMAIL PROTECTED] wrote: Thhhaaa she blows!! *lol* Tropical Depression Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Al Sutton W: www.alsutton.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Friday] Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present
Captin... The cyclometric complexity meter is at max... I canne give it any more. Reflection can seriously help with big else-ifs. If your switching on a variable use the variable name and value as part of the class name and then do; Class blahHandlerClass = Class.forName( BlahHandlerFor+value ); BlahHandler blahHandler = blahHandlerClass.newInstance(); blahHandler.doYourWork(); It splits your code into more manageable chunks, allows you to add handlers for new values without touching the motherload, and it makes it look like you're a java ninja blending in with the workplace :). Al. Dave Newton wrote: Seriously, refactor your code. 5K lines of code in 7 files could hide all manner of nasties. We have a 1M class where I'm at now. That's *1M* of source. 30k+ lines, mostly if-elseif. It broke our cyclometric complexity meter, had to put in a bigger fuse. It makes Eclipse cry. It makes *me* cry. Kinda like this thread. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Al Sutton W: www.alsutton.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Friday] Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present
So you'd choose JDBC driver source code over porn and you called me wierd :). Dave Newton wrote: --- On Fri, 8/1/08, Al Sutton [EMAIL PROTECTED] wrote: Don't worry, I've just written a rant about not relying on dirty reads and had to re-word it to include the footnote This discussion is about the SQL JDBC Drivers and is not about porn. Well, they're both just as exciting. Right? Anyone? *chirp* Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Al Sutton W: www.alsutton.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Friday] Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present
Milan, Please read up on how sessions work. They are NOT passed via URLs unless you have cookies disabled, URL rewriting enabled on your appserver, and a very sick sense of what a normal configuration is. Al. Milan Milanovic wrote: Hi Dave, one short question, don't be angry ;-). The link which when clicked action class lost its session looks like this: http://localhost:8080/myproject/show.action?dojo.preventCache=1224214242324id=4 Is it possible that session is not passed through this link ? -- Regards, Milan newton.dave wrote: Seriously, refactor your code. 5K lines of code in 7 files could hide all manner of nasties. We have a 1M class where I'm at now. That's *1M* of source. 30k+ lines, mostly if-elseif. It broke our cyclometric complexity meter, had to put in a bigger fuse. It makes Eclipse cry. It makes *me* cry. Kinda like this thread. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Al Sutton W: www.alsutton.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Friday] Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present
A Medusa code. So named because anyone who looks at it gets so petrified they turn to freeze up and turn to stone. I once worked for a company where one of their classes was about 200K in size, the reason was the developer thought that in every you needed to catch every exception thrown, wrap it in something else, and re-throw it. Laugh... I laughed so hard I almost peed in my pants when I saw it. (and yes, the company was dumb enough to pay an expensive contractor to optimize the code. he corrected the exception handling, which reduced the code size and sped things up slighly, for which he got glowing praise by the management). Al. Dave Newton wrote: --- On Fri, 8/1/08, Al Sutton [EMAIL PROTECTED] wrote: It splits your code into more manageable chunks, [...] You're right, it does split *my* code. Unfortunately (well... fortunately, really) that code isn't mine and I'm forbidden from even looking at it. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Al Sutton W: www.alsutton.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Friday] Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present
Tonight on the Struts 2 comedy channel; How your employer is ensuring you enjoy your day by only filtering out the boring websites to avoid you having to waste time checking them out :). Dave Newton wrote: --- On Fri, 8/1/08, Al Sutton wrote: So you'd choose JDBC driver source code over porn And it's not filtered at work! Win-win! Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Al Sutton W: www.alsutton.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Friday] Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present
I refer you to the answer on sessions I gave you some emails ago. You **REALLY** should read how session work. They are not passed through a servlet. Al. Milan Milanovic wrote: I know that they are passed through serlvet, I'm just wondering if struts makes some error there. Could you be positive that Struts 2.0.11.1 doesn't do anything with session, i.e., session remains intact and session is set for folowing action in case of redirect action ? -- Regards, Milan Al Sutton wrote: Milan, Please read up on how sessions work. They are NOT passed via URLs unless you have cookies disabled, URL rewriting enabled on your appserver, and a very sick sense of what a normal configuration is. Al. Milan Milanovic wrote: Hi Dave, one short question, don't be angry ;-). The link which when clicked action class lost its session looks like this: http://localhost:8080/myproject/show.action?dojo.preventCache=1224214242324id=4 Is it possible that session is not passed through this link ? -- Regards, Milan newton.dave wrote: Seriously, refactor your code. 5K lines of code in 7 files could hide all manner of nasties. We have a 1M class where I'm at now. That's *1M* of source. 30k+ lines, mostly if-elseif. It broke our cyclometric complexity meter, had to put in a bigger fuse. It makes Eclipse cry. It makes *me* cry. Kinda like this thread. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Al Sutton W: www.alsutton.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Al Sutton W: www.alsutton.com T: twitter.com/alsutton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: sorting problem with display tag: please help
What did the display tag people say when you posted on their lists at http://displaytag.sourceforge.net/11/mail-lists.html ? Varun Deep wrote: Hi I am using the display tag for displaying the employee names . I want to short the names of the employee. Following is the code that is in .jsp file. %@ taglib prefix=display uri=http://displaytag.sf.net% display:table id=displaycolumn name=listOfEmployee pagesize=6 requestURI=searchEmployeeByDep.action decorator=com.unclejis.action.restaurant.DisplayDecorator align=left sort=external defaultsort=1 display:column property=name title=Name sortable=true / /display:table when I use the above code nothing is display. Can anyone please help me to solve this problem. I will be vary thankful. Thanks in advance varun - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Friday][OT] Re: sorting problem with display tag: please help
You think he got the message?, or are you expecting another message tomorrow? Dave Newton wrote: --- On Fri, 7/25/08, Al Sutton [EMAIL PROTECTED] wrote: What did the display tag people say when you posted on their lists [...] I see what you did there. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: similar comment
So can you develop one using Struts in less than a week?.. Bet now! (and you don't have to use displaytag if you don't want to) Dave Newton wrote: --- On Fri, 7/25/08, Al Sutton [EMAIL PROTECTED] wrote: You think he got the message?, or are you expecting another message tomorrow? So you're saying we need an off-track betting application? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: sorting problem with display tag: please help
As there are no struts tags you should post this to the displaytag list for a better response; http://displaytag.sourceforge.net/11/mail-lists.html Varun Deep wrote: Hi I am using the display tag for displaying the employee names . I want to short the names of the employee. Following is the code that is in .jsp file. %@ taglib prefix=display uri=http://displaytag.sf.net% display:table id=displaycolumn name=listOfEmployee pagesize=6 requestURI=searchEmployeeByDep.action decorator=com.unclejis.action.restaurant.DisplayDecorator align=left sort=external defaultsort=1 display:column property=name title=Name sortable=true / /display:table when I use the above code nothing is display. Can anyone please help me to solve this problem. I will be vary thankful. Thanks in advance varun - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts 2 perfromance among the worst???
I think page 24 says it all when it has The results may not be reflective of real world implementations? Beyond that; - There is no comparison of functionality provided by the frameworks. - Did the benchmarked follow the performance tuning guidelines? - Did they upgrade to freemarker 2.3.13 which has shown itself to give speed improvements in multi-threaded scenarios? All in all it's you're standard benchmark, it's only really relevant to the conditions which they impose and if your conditions are different (e.g. not running on XP and using as Server OS instead) you may see vastly different results. Al. Musachy Barroso wrote: I am sorry, but I will have to quote a movie on this one: Kevin Lomax: In the Bible you lose. We're destined to lose dad. John Milton: Well consider the source son. The Devil's Advocate ;) musachy On Tue, Jul 22, 2008 at 9:36 PM, neerashish [EMAIL PROTECTED] wrote: http://sujoebose.com/resources/javaone08.ppt any response from struts2 people? -- View this message in context: http://www.nabble.com/Struts-2-perfromance-among-the-worsttp18602242p18602242.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: struts menu problem
Have you looked at using the zindex property in your stylesheet? (http://www.w3schools.com/Css/pr_pos_z-index.asp) nauke. wrote: Hi, Thanks for replying. It occurs in firefox too. the customer for this will predominantly use IE so will have to get it working for IE in the end anyway :( :( :( On Wed, Jul 16, 2008 at 4:04 PM, Lukasz Lenart [EMAIL PROTECTED] wrote: Try with other browser than IE, it looks like a common problem in IE with layering. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts1 and Struts2 mailing lists separation ?
web forums are a nightmare for the dynamics shown by this list. There are a core few who respond to many of the questions asked, and there is a lot of traffic, which means with a web forum those few would need to either check for new posts every so often (which is a chore), or receive an endless string of messages saying New thread, click here to read. Web forums are OK when then volume is low or there is a higher peer-to-peer solution ratio is high, but personally I'd read even less of the posts if I had to go to a web page and click through a few times just to see whats been said. Al. Gabriel Belingueres wrote: I personally would like to interact using a web based forum where you can post with formatted java and xml code and even with emoticons instead of this email based mailing list, but this would be even more utopianphpBB would do :) 2008/7/7 Jason Wyatt [EMAIL PROTECTED]: Dave, may I ask why it has been consistently voted down (and voted by who?). It would seem to be a logical separation IMHO, what's the benefit of keeping them together when the platforms have nothing in common except the name struts? If people still don't know about or use the [S1] and [S2] convention, which seems to be the case, its likely that won't change because new members will be joining the list all the time. +1 to split Regards Jason -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Tuesday, 8 July 2008 2:40 AM To: Struts Users Mailing List Subject: Re: Struts1 and Struts2 mailing lists separation ? This has been brought up from time to time over the years and has been consistently voted down. (I suggested it once myself and am in favor of it as well.) In lieu of that happening I'd urge people to tag the subject line of all list messages with either [S1] or [S2] (or whatever, as long as it's adopted as an ad-hoc convention) and deal with it on the client side. Dave --- On Mon, 7/7/08, Chris Pratt [EMAIL PROTECTED] wrote: Not that my vote counts, but +1 again. On Mon, Jul 7, 2008 at 6:40 AM, Owen Berry [EMAIL PROTECTED] wrote: And another, +1 On Mon, Jul 7, 2008 at 8:28 AM, ManiKanta G [EMAIL PROTECTED] wrote: +1 me too Alessio Mereu wrote: +1 for me too 2008/7/7 Marc Logemann [EMAIL PROTECTED]: +1 for the suggestion Marc On Mon, 7 Jul 2008 12:53:14 +0200 (MEST), [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Could Struts project admins separate Struts1 and Struts2 users mailing lists? I think it is bad for the users to have two frameworks under the same mailing list. Ahora también puedes acceder a tu correo Terra desde el móvil. Infórmate pinchando aquí. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** DISCLAIMER ** Information contained and transmitted by this E-MAIL is proprietary to Sify Limited and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail notify us immediately at [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL
Re: Anyone want to show me up...
The problem with straight input.. is that you don't get the theme based formatting :( Gabriel Belingueres wrote: simple ways like: input type=hidden name=uri value=%= request.getRequestURI() %/ though I sometimes feel guilty for not using the equivalent S2 tag :P 2008/7/3 Musachy Barroso [EMAIL PROTECTED]: #request is just a map with the request attributes. If you want the real request object: #context['com.opensymphony.xwork2.dispatcher.HttpServletRequest'] there are probably other 300 ways of getting the same thing. musachy On Thu, Jul 3, 2008 at 11:47 AM, Al Sutton [EMAIL PROTECTED] wrote: I can't for the life of me get the value for getRequestURI from the HTTPServletRequest object into a hidden field. s:hidden name=uri value=#request.requestURI/ doesn't seem to work, anyone want to point out where I've dumbed out? Al. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Anyone want to show me up...
I can't for the life of me get the value for getRequestURI from the HTTPServletRequest object into a hidden field. s:hidden name=uri value=#request.requestURI/ doesn't seem to work, anyone want to point out where I've dumbed out? Al. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Anyone want to show me up...
Thanks Musachy, one day I will get to grips with OGNL :). Al. Musachy Barroso wrote: #request is just a map with the request attributes. If you want the real request object: #context['com.opensymphony.xwork2.dispatcher.HttpServletRequest'] there are probably other 300 ways of getting the same thing. musachy On Thu, Jul 3, 2008 at 11:47 AM, Al Sutton [EMAIL PROTECTED] wrote: I can't for the life of me get the value for getRequestURI from the HTTPServletRequest object into a hidden field. s:hidden name=uri value=#request.requestURI/ doesn't seem to work, anyone want to point out where I've dumbed out? Al. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where are the @Result,@Results annotations in Struts 2.1.2
http://struts.apache.org/2.1.2/docs/result-annotation.html Oren Livne wrote: Dear All, I am trying to use @Result and @Results with struts 2.1.2 (configured via maven dependencies). I can't find it anywhere. Has it been moved or deprecated? Is there a link with more info on that? Thanks, Oren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [s2] Whats the most strutsy way of doing....
Hi Jeromy, Thanks for the comments. I'm trying to steer away from javascript for the solution in order to maximise browser compatibility (this app may be used on older mobile phones). I'm hoping that AES encryption isn't cracked ;), and by the inclusion of some random noise in the properties list it should reduce the chances of a simple brute force attack by increasing the length of the encrypted data and not making the plain text obvious. I can understand the problems with your plugin, My architecture stores only the userId in the session and gets the user from the database as needed (due to the back end being JPA/Hibernate and the user having ManyToOne and OneToMany relationships I can't simply store the user in the session). The system I'm going to implement will decrypt the data from the cookie, verify it as valid, and then populate the session with the neccessary information, all of which will be serializable objects (Long, String, etc.) Thanks again, Al. Jeromy Evans wrote: Al Sutton wrote: Dave, I'm completely agree it's a great idea and useful thing to do, but the problem is what to put into the cookie and how to map it to the user. My current favourite is encrypt the properties you want to store (using AES for speed and JCE support), then decrypt and inject when needed. Cookies should be considered limited to 4K (due to the joys of RFC2109 Section 6.3), so as long as the data fits joy shall be mine :). Al. Hi Al, Just another variation I use where the useragent requires javascript: authenticate the user and generate a token; the token doesn't contain any sensitive data; the token is saved in a cookie and included in all requests (as cookie, header or param) an s2 interceptor checks the token is matched to an authenticated user. it injects relevant details to actions (eg. a store maps tokens to users; server-side manages expiry, concurrent logins etc) It's not as fast as encoding login information in the cookie but it can't be broken. I use the same method to sign XHR requests. If the user has checked the remember me box the javascript gets the token from the cookie and resumes using it. The server it knows not to invalidate that token. Vulnerabilities: - The token should be unguessable to minimize forged requests; - as javascript is inscecure, tokens can be stolen from the cookie (eg. by an advertisement, XSS) I wrote the above as an S2 plugin. The only problem with releasing it as a plugin is that the service that checks tokens can't be Xwork'@Inject'ed into the interceptor (rather it has to be injected via spring or guice) due to its potential external dependencies (eg. an EntityManager). The same plugin also allows me to apply roles to action methods (jsr-250). cheers, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[s2] Whats the most strutsy way of doing....
... a remember me tick box on a login page? If the user ticks the box they're don't have to log in again if they visit the site again, if they don't click it the login times out in the same manner as a normal session. Remember; I'm ideally looking for a method that stays within the framwork and doesn't make use of servlet request/response/context methods. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [s2] Whats the most strutsy way of doing....
Acegi is a bit of overkill for what I need. It's a simple app, so I'm looking for a simple struts based solution or failing that someone to say it can't be done :(. Al. Lukasz Lenart wrote: Hi 2008/6/26 Al Sutton [EMAIL PROTECTED]: ... a remember me tick box on a login page? If the user ticks the box they're don't have to log in again if they visit the site again, if they don't click it the login times out in the same manner as a normal session. Remember; I'm ideally looking for a method that stays within the framwork and doesn't make use of servlet request/response/context methods. Look at Acegi aka Spring Security, you have support for that out of box. Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [s2] Whats the most strutsy way of doing....
... and, with dependancies, it comes to over 1MB in size, which for me is too much bloat just for one small feature. If needs be I'll do something with crypto a cookie which will fit into a few K, I just wondered if there was an easier method. Lukasz Lenart wrote: 2008/6/26 Al Sutton [EMAIL PROTECTED]: Acegi is a bit of overkill for what I need. It's a simple app, so I'm looking for a simple struts based solution or failing that someone to say it can't be done :(. But it's wide used and you can find lot of examples, and the most important, someone who will take support for that application, will know what-is-going-on ;-) Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [s2] Whats the most strutsy way of doing....
I was thinking more along the lines of encrypting the userId and password hash using AES, store the value in the cookie, then if the cookie is available during another session decrypt, check everything matches, and let them back in. That way it avoids trying to maintain sync between the user and the server. Al. Lukasz Lenart wrote: I think there isn't any solution in Struts2, so then, implement that with cookies and save such cookie also on the server side in db, you can also allow such thing for selected users, etc. Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [s2] Whats the most strutsy way of doing....
It's going to be a problem with whatever method is used. Even if there is a server side IP address record for each cookie you still have the problem of cookies stoled and used at the same location :(. Unless you have an idea you wish to share? :). Al. Musachy Barroso wrote: Be aware of cookie stealing. musachy On Thu, Jun 26, 2008 at 10:32 AM, Al Sutton [EMAIL PROTECTED] wrote: I was thinking more along the lines of encrypting the userId and password hash using AES, store the value in the cookie, then if the cookie is available during another session decrypt, check everything matches, and let them back in. That way it avoids trying to maintain sync between the user and the server. Al. Lukasz Lenart wrote: I think there isn't any solution in Struts2, so then, implement that with cookies and save such cookie also on the server side in db, you can also allow such thing for selected users, etc. Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [s2] Whats the most strutsy way of doing....
The key(s) can be a single key per day/week/month. The date of the cookie generation can be included and the relevant key looked up. The problem with MD5 is it's one way so I'd have to have either a search and match algorithm, or a database of MD5ed text to user mappings. With AES I can extract the user ID and a check that the password hasn't changed from the cookie itself by decrypting the cookie data. Al. Lukasz Lenart wrote: Hi, 2008/6/26 Al Sutton [EMAIL PROTECTED]: I was thinking more along the lines of encrypting the userId and password hash using AES, store the value in the cookie, then if the cookie is available during another session decrypt, check everything matches, and let them back in. But you will have to store keys on the server side for future use, maybe simple MD5 plus some arbittary text will be better? http://java.sun.com/developer/technicalArticles/Security/AES/AES_v1.html Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [s2] Whats the most strutsy way of doing....
Dave, I'm completely agree it's a great idea and useful thing to do, but the problem is what to put into the cookie and how to map it to the user. My current favourite is encrypt the properties you want to store (using AES for speed and JCE support), then decrypt and inject when needed. Cookies should be considered limited to 4K (due to the joys of RFC2109 Section 6.3), so as long as the data fits joy shall be mine :). Al. Dave Newton wrote: Personally I kinda liked my idea of a cookie interceptor that will inject type-converted cookie values into actions; we'll probably use something like that for our new projects. Dave --- On Thu, 6/26/08, Al Sutton [EMAIL PROTECTED] wrote: From: Al Sutton [EMAIL PROTECTED] Subject: Re: [s2] Whats the most strutsy way of doing To: Struts Users Mailing List user@struts.apache.org Date: Thursday, June 26, 2008, 10:32 AM I was thinking more along the lines of encrypting the userId and password hash using AES, store the value in the cookie, then if the cookie is available during another session decrypt, check everything matches, and let them back in. That way it avoids trying to maintain sync between the user and the server. Al. Lukasz Lenart wrote: I think there isn't any solution in Struts2, so then, implement that with cookies and save such cookie also on the server side in db, you can also allow such thing for selected users, etc. Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [struts] Slow performance with Struts2
If your benchmark uses multiple threads throw in a freemarker upgrade to 2.3.13 and have another spin :). One thing you might want to bear in mind is that if you're using a persistance framework there maybe some back end fetching taking place between a.b.c and a.b.c.d. Even though you write simple beans and accessors you can't guarentee whats happening to your objects under the covers. Al. yorlick kilroy wrote: I replaced OGNL 2.6.11 with the latest 2.7.2 Version. I did a bit of benchmarking comparing the two and it absolutely surprised me, that 2.7.2 in some cases is almost twice as slow as 2.6.11 The test scenario: iterate a large java.util.List in a jsp. the List contains a pretty large tree of objects. in the jsp I access a String property in the last node of this object graph. OGNL 2.6.11 takes roughly 600 ms to complete, 2.7.2 roughly 1050 ms From that I gather that OGNL wasn't designed for high performance when processing large and complex object trees in jsps. I guess I'll have to go back and do it like in the old Struts1 days: use shallow objects like in ActionForms On Wed, Jun 25, 2008 at 8:31 PM, Dale Newfield [EMAIL PROTECTED] wrote: yorlick kilroy wrote: Still... the problem seems to be the OGNL implementation in struts2. I'm guessing here, but maybe your issues are related to: http://jira.opensymphony.com/browse/OGNL-141 Which has been pushed off in Xwork to 2.5: http://jira.opensymphony.com/browse/XW-631 And which has been pushed off in Struts2 until at least 2.1.3: https://issues.apache.org/struts/browse/WW-2128 You're welcome to update the version of ognl you're using in your own app (but remember to add javassist if so). s:iterate ... s:property value=#object.a.b.c.name/ s:property value=#object.a.b.c.phone/ /s:iterate Theoretically this translates to a straight lookup for #object, then getA().getB().getC().getName()... If A, B, and C are just accessors, it should be fast. If they do much work to determine what to return, you're doing that work 2*N times (where N is the number of times through the loop) instead of just once...why would you put a long lookup like that in an iterator if it doesn't change with each iteration? -Dale - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: minimal app server for embedded Struts1 or 2 solution
Scott, Most customers don't want to know about or get involved in installing an appserver. The app my company produces has been sold for over 4 years, is purely web based, and started live as a JSP/.Servlet combo, and I beleive that less than 20% of sales have gone to companies who know what an appserver is let alone have the technical experience to install one. The customers do run the app on a server, but from our point of view (and theirs) having a small installable download makes the product more attractive than including a bloatware piece of software which includes an entire app server. Al. P.S. At the moment we ship the product with a minimal version of Jetty 5, precompile the JSPs, and it seems to work well. [EMAIL PROTECTED] wrote: This sounds a little suspicious! When you say I cannot assume a Servlet container to be installed on machines my app will run on what do you mean? I would hope you are planning to host this from a server someplace, right? Not sure about your environment, but you could always use an ISP to host your Struts application. I use DailyRazor and have full control over the server and none of the headaches of babysitting the machinery. Scott On Mon, Jun 23, 2008 at 7:08 AM, [EMAIL PROTECTED] wrote: Hi, I am currently working on a little application which needs a user interface for administration. I think an embedded app server with a Struts based application might be a good choice. But one big obstacle is in the way, I fear: the size of such a solution. What do you think is the minimal solution giving the comfort of a Struts based approach and not dominating the workhorse app with tons of jars only needed for the small admin part? Jetty as an App server? Or Tomcat? Or some other, really small? Struts 1 or 2 (I would think Struts1 is the smaller solution)? Or shouldn't I attempt this approach and write a simple servlet? What do you do? I cannot assume a Servlet container to be installed on machines my app will run on. There might be multiple instances of my app running on the same machine. The UI should work over the network although a console based approach might be possible, too. Thanks in advance Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error replicating sessions with Struts 2 framework java application
Just to add to this, S2 is compliant with J2EE specs, therefore if the container has problems clusting a S2 application, it's not S2 that's at fault, it's the clustering capability of the appserver. My guess is that youy need to look at the information replication strategy employed by your chosen app server, you may find the app server vendor has some notes about the reliability and replication latency for the available strategies. Al. P.S. About the mail in the link; I'm not sure what comment is neccessary, check the code mentioned and see for yourself how it's implemented. Dave Newton wrote: Clustering is generally framework-neutral--it's straight JEE as far as I know. As long as the session is serializable (hey, thanks a lot, subList :( it should work no matter what the framework is. We're running S2 clustered with no issues. Dave --- On Sat, 6/21/08, Ildefonso Montero [EMAIL PROTECTED] wrote: From: Ildefonso Montero [EMAIL PROTECTED] Subject: Re: Error replicating sessions with Struts 2 framework java application To: Struts Users Mailing List user@struts.apache.org Date: Saturday, June 21, 2008, 6:31 AM Dear Laurie, thanks for your quick response, maybe I would rename this thread as: Does Struts 2 support clustering? (see linkhttp://mail-archives.apache.org/mod_mbox/struts-user/200804.mbox/[EMAIL PROTECTED] ) I have doubts about the replicacion of a SessionMap object on the quoted architecture, What do you think? Regards 2008/6/20 Laurie Harper [EMAIL PROTECTED]: Problems with Tomcat session replication are really a Tomcat issue, not a Struts issue. You will likely have more luck asking on the Tomcat user's list. You should include more details about how you configured Tomcat for session replication, too, since that seems likely to be where the problem lies. L. Ildefonso Montero wrote: Hi, we are having a problem when balancing Tomcat session among to clusters. Architecture is the following: Apache (A) balancing 50-50 over Tomcat (1) and Tomcat (2). We are working on a big application and we saw that the session is not replicated properly because we are doing one request for each Tomcat sequentially (see 50-50 balancing) and we have checked that a simple counter that we created inside the session object (our own object) accesing using session.getAttribute(name) the resulted pattern is: Request 1 in T1, counter = 1 Request 2 in T2, counter = 2 Request 3 in T1, counter = 2 Request 4 in T2, counter = 3 Request 5 in T1, counter = 3 Request 6 in T2, counter = 4 Request 7 in T1, counter = 4 Request 8 in T2, counter = 5 so, the value of the counter is not replicated properly or we are accesing it in a wrong way. Is interesting for us that the Session ID (session.getID()) shows the same ID in both Tomcats so, we guess the is the same but replication of attributes values seems to be not replicated. Could you please help us? Than you in advance. some details: Apache 2.2.3, used mod_proxy_ajp instead of mod_jk, so we did not configured workers.properties file, we customized httpd.conf file. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- - Ildefonso Montero Pérez ildefonso.montero{arroba}gmail.com monteroperez{arroba}.us.es - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] What slows you down?
Web Design :). I can code it in a few days, but getting it to look pretty so that users don't complain, thats a b**ch. Seriously though, one of the things we could do is a something link Suns blueprints or a cookbook of code recepies where we have pages which show and explain the code solutions to common problems. I know there are some bits and bobs around, and there are some sample webapps, but it would be nice to have thinks like the the S2/Spring2/JPA/Ajax page at http://struts.apache.org/2.0.11.1/docs/struts-2-spring-2-jpa-ajax.html in one place along with some others. Al. Ted Husted wrote: Since it's friday, let me pose a question to the group ... Even with rock-solid frameworks like Apache Struts, it still seems like web application development takes longer than it should. Some frameworks, like Ruby on Rails, speak directly to time to market concerns and have been gathering many followers. But why does web application still seem so difficult or so time-consuming? Are there time bandits that still suck days or weeks out of your development schedule? Are there time gremlins that nickel-and-dime you every hour of every day? Is there anything more that frameworks like Apache Struts can do to help? Or are just there intractable problems with web development itself? Thoughts? :) -Ted. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts Welcome page
Most of the work is being put into Struts 2 now. If you'd like to start fixing the bugs listed against 1.3.9 feel free. Al. ratm wrote: Struts 1.3.9 beta has been released on 01 Aug 2007 (almost one year !) When the Struts 1.3.9 GA release will be done ? Why in struts jar name there no beta tag appears ? Thanks for responses, Anthony. newton.dave wrote: --- On Thu, 6/19/08, ratm [EMAIL PROTECTED] wrote: The Struts Welcome page: http://struts.apache.org/ talk about struts 1.3.9 like a beta version. Is it true? AFAIK S1.3.9 is beta, S1.3.8 is the current S1 GA, just like it says. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: REST plugin URL syntax
Mike, The safari signup requires a credit card which I'm not going to give so I'm afraid I can't comment after seeing the book. It has always been my understanding that the /Earth/France/Paris style of notation is a search engine optimised (SEO) layer which has the design goal of being descriptive to humans and search engines and is not designed with the REST principals of performance and efficiency. The main problem with performance is that, in most cases, you're going to be looking the data up in a database table, therefore you have your unique ID as the primary key for the table. The data in the table may, in turn, be a reference to a storage device and location where the data is stored, but at the top level you have the single primary key, hence the single /noun/id combination. If you're thinking of mapping the book to a folder name and the chapter to a filename in the folder then I would urge you to look at some of the comments around the web on how flat file systems scale, and possibly think about an intermediate table which maps IDs to the location of the chapter data which would allow you to have separate file stores to spread the data accross. Al. Mike Watson wrote: Thanks for the feedback. I actually disagree regarding whether my url syntax is restful. Have you read the O'Reilly book: RESTful Web Services by Leonard Richardson; Sam Ruby? If not please take a look (you can probably see sample chapters on Safari if you don't have an account). Specifically in section 5.5.1 Encode Heirarchy into Path Variables where examples like this are provided: http://maps.example.com/Earth/France/Paris In fact the samples the entire book is based on all rely on hierarchy. Hierarchy is *very* relevant to my problem domain and is something that a RESTful interface *should* be able to support. Do you not agree a news website is hierarchical? The web is hierarchical in nature. REST is supposed to be the language of the web... If the REST plugin can't support this hierarchical model I'd say it is fundamentally flawed. I'm happy to help rectify this but to say that this approach just isn't REST is simply not true. Can anybody suggest where I would start in an attempt to implement this hierarchical model? Or do I need to start looking for a replacement for the Struts2 REST plugin? Thanks for your time. Mike 2008/6/17 Al Sutton [EMAIL PROTECTED]: It's true that it takes a bit of reading between the lines, but basically REST relies on unique identifiers for resources, which for HTTP is commonly taken to mean a URLs of the form; http://server/resource_noun/id (to confirm this have a spin through the google results showing various examples). With servers with many apps on this is commonly expanded to; http://server/app/resource_noun/id In the strictest send the Mikes URLs should be; http://www.mydomain.com/chapter/123_1 because we are uniquely identifying a chapter and to do this we need to include the book id, but for the sake of clarity (which was the reason I beleive he was using x/x_id/y/y_id notation I expanded the noun to show book and chapter. Al. Laurie Harper wrote: It may be the case that the REST plugin can't support this (I don't know if that's true) but I don't see anything in the cited reference that says such URLs are un-RESTful. And a Struts apps should certainly be able to support them, even if it requires writing a little more code (e.g. a custom action mapper?) L. Al Sutton wrote: Mike, Rest URLs doesn't work that way, so the plugin is correct and your needs are not in sync with REST standards (see http://en.wikipedia.org/wiki/Representational_State_Transfer for a more details on REST). If you want to do something with multiple IDs my suggestion would be URLs along the lines of; http://www.mydomain.com/rest/bookAndChapter/123_1 Al. Mike Watson wrote: Hi Folks, I'm trying to use the REST plugin to implement a service that serves resources using the following url syntax: http://www.mydomain.com/rest/book/123 (which works fine) http://www.mydomain.com/rest/book/123/chapter (which throws a 500 because my book controller doesn't have a chapter() method) http://www.mydomain.com/rest/book/123/chapter/1 (which returns 404) I'd expect the two chapter urls to access the ChapterController instead of the BookController. Being able to request resources 'within resources' like this is crucial to my application. Can anybody tell me how I can configure the rest plugin to behave like this, or point me at some documentation that does? Thanks in advance, Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
Re: What can you do with S2?
How about a Jacking Struts Day? Dave Newton wrote: --- On Mon, 6/16/08, dusty [EMAIL PROTECTED] wrote: For sure, but since we are Java developers with a captial J, then we can call it something other than hackfest which suits the script kitties well. ;-) No thanks; as a founding member of The Society for Preserving the True Hacking Heritage we must not allow the original definition of the word to be besmirched, watered-down, or used inappropriately. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts 2 hibernate session-per-request
I think he's trying to do whats at http://cwiki.apache.org/S2WIKI/struts-2-spring-2-jpa-ajax.html without using the great google first :). Al. Laurie Harper wrote: Márcio Gurgel wrote: Hi Everyone, Some time ago I asked you about a problem with old objects in session. I noted that my application is using diferent sessions to recovery a data from db. Some times the application shows the corect result, other shows old results (with old session). I guess that if I use session-per-request I'll throw my problem away. Does anyone knows how to implement a session-per-request in Struts 2? The term 'session-per-request' doesn't really make a lot of sense, unless you are using 'session' to mean something other than a web application session (perhaps a database 'session'? a Hibernate session? something else?). IIRC, though, your previous problem *was* about web application sessions, as in unwanted sharing of session-scoped data. Perhaps you could explain what you mean by session-per-request? L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: (!) Simple for-next loops using s:iterator..., was: Re: [S2] using s:iterator for a sequence of integers
+100 for the for tag. It'll mean I don't end up using displaytag and including the jar just to show simple paged lists. Musachy Barroso wrote: Nice, and confusing :) //I think we should create a for tag musachy On Tue, Jun 17, 2008 at 9:38 AM, Dave Newton [EMAIL PROTECTED] wrote: From time to time people ask about implementing a simple loop using s:iterator... similar to c:forEach begin=... end= Turns out there's some OGNL magic for doing simple loops (start at 0, go to n-1), and the significance of it never really struck me until the #this questions. s:iterator value=(10).{ #this } Narnar /s:iterator Aww yeah. Dave OGNL FTW Newton --- On Sat, 6/14/08, Pierre Thibaudeau [EMAIL PROTECTED] wrote: From: Pierre Thibaudeau [EMAIL PROTECTED] Subject: [S2] using s:iterator for a sequence of integers To: Struts Users Mailing List user@struts.apache.org Date: Saturday, June 14, 2008, 10:26 PM Is there a simple syntax with s:iterator or s:generator for displaying a sequence of integers from 0 to N-1 ? (The value of N is not known at compile time.) At the moment, the only way I can think of doing this is not very appealing: Within the action, create an ArrayList and populate it with the sequence of integers. Then iterate over that list with s:iterator. Is there an easier way? Something that would not involve the action? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: REST plugin URL syntax
Mike, Rest URLs doesn't work that way, so the plugin is correct and your needs are not in sync with REST standards (see http://en.wikipedia.org/wiki/Representational_State_Transfer for a more details on REST). If you want to do something with multiple IDs my suggestion would be URLs along the lines of; http://www.mydomain.com/rest/bookAndChapter/123_1 Al. Mike Watson wrote: Hi Folks, I'm trying to use the REST plugin to implement a service that serves resources using the following url syntax: http://www.mydomain.com/rest/book/123 (which works fine) http://www.mydomain.com/rest/book/123/chapter (which throws a 500 because my book controller doesn't have a chapter() method) http://www.mydomain.com/rest/book/123/chapter/1 (which returns 404) I'd expect the two chapter urls to access the ChapterController instead of the BookController. Being able to request resources 'within resources' like this is crucial to my application. Can anybody tell me how I can configure the rest plugin to behave like this, or point me at some documentation that does? Thanks in advance, Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: REST plugin URL syntax
It's true that it takes a bit of reading between the lines, but basically REST relies on unique identifiers for resources, which for HTTP is commonly taken to mean a URLs of the form; http://server/resource_noun/id (to confirm this have a spin through the google results showing various examples). With servers with many apps on this is commonly expanded to; http://server/app/resource_noun/id In the strictest send the Mikes URLs should be; http://www.mydomain.com/chapter/123_1 because we are uniquely identifying a chapter and to do this we need to include the book id, but for the sake of clarity (which was the reason I beleive he was using x/x_id/y/y_id notation I expanded the noun to show book and chapter. Al. Laurie Harper wrote: It may be the case that the REST plugin can't support this (I don't know if that's true) but I don't see anything in the cited reference that says such URLs are un-RESTful. And a Struts apps should certainly be able to support them, even if it requires writing a little more code (e.g. a custom action mapper?) L. Al Sutton wrote: Mike, Rest URLs doesn't work that way, so the plugin is correct and your needs are not in sync with REST standards (see http://en.wikipedia.org/wiki/Representational_State_Transfer for a more details on REST). If you want to do something with multiple IDs my suggestion would be URLs along the lines of; http://www.mydomain.com/rest/bookAndChapter/123_1 Al. Mike Watson wrote: Hi Folks, I'm trying to use the REST plugin to implement a service that serves resources using the following url syntax: http://www.mydomain.com/rest/book/123 (which works fine) http://www.mydomain.com/rest/book/123/chapter (which throws a 500 because my book controller doesn't have a chapter() method) http://www.mydomain.com/rest/book/123/chapter/1 (which returns 404) I'd expect the two chapter urls to access the ChapterController instead of the BookController. Being able to request resources 'within resources' like this is crucial to my application. Can anybody tell me how I can configure the rest plugin to behave like this, or point me at some documentation that does? Thanks in advance, Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What can you do with S2?
I think it's more a case of Tomcat doesn't pass the jsessionid down to the filters webapp, whereas jetty does. The jsessionid is still appended onto the URL in the browser, but with Tomcat the app works, with Jetty the error occurs. Al. Wendy Smoak wrote: On Sat, Jun 14, 2008 at 3:48 PM, Dave Newton [EMAIL PROTECTED] wrote: Not sure about WAS, but don't (at least) Tomcat and Resin do that (a) before it knows if cookies are enabled, and (b) if cookies aren't enabled? It's part of the Servlet spec. Tracking by cookies is required. If the client won't accept a cookie, the container may do url rewriting, and if it chooses to do so, it must use a path parameter called jsessionid. (SRV.7.1.3) The container is required to support sessions for clients that do not accept cookies. While the spec doesn't mandate url rewriting, it does say containers commonly support it. I'm curious what difference you're seeing between Jetty and Tomcat? It sounds like Tomcat stops appending the jsessionid, but Jetty continues doing it? That's certainly valid (at least for the first response)... perhaps the framework needs to deal with it better? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What can you do with S2?
It's been pointed out to me that people couldn't see the full demo of lifefeed.info because registration was broken, but it's now fixed. Al. For those that are interested; OpenSuSE installs gnu-javamail when you install the tomcat55 package and symlinks to gnu-javamail from common-lib. This means that if you put Suns Javamail in your webapps WEB-INF\lib directory you enter jar hell and your app won't be able to send emails. The fix is to uninstall gnu-javamail using --nodeps so that tomcat55's dependency is ignored. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What can you do with S2?
Many moons ago I started out using Tomcat, but moved to Jetty because I work with at a company along with Greg Wilkins and imho he had the righ attitude towards doing things (get it right rather than just get it out the door), and I had seen people encounter some problems with Tomcat (such as the one described at http://www.jguru.com/faq/view.jsp?EID=1037039), but the way it's handling jsessionid makes me think it's time to move on to a different appserver. My current interim approach apache/tomcat55 setup is based on what OpenSuSE provides as packages (so I can benefit from OpenSuSEs automatic update system), but even that causes problems (see my recent email about javamail problems with the 5 day S2.1 demo site I've done). Maybe Glassfish is my next step, and maybe we need a chart of appservers we need to test against for a good GA release of struts and the plugins. Al. Musachy Barroso wrote: I haven't looked into it yet, but I don't like how it uses a colon (;jsessionid=xwy), which might be valid, not sure. For the moment I am using glassfish, which starts really quick: https://maven-glassfish-plugin.dev.java.net/ musachy On 6/14/08, Al Sutton [EMAIL PROTECTED] wrote: Is it a REST thing or a Jetty thing? My view would be that as Jetty is adding the jsessionid Jetty should also recognize it, strip it off, and not pass it to the underlying webapp because it's part of the webapp magic of session to request mapping. Al. Musachy Barroso wrote: I just hit the same problem, I think the REST plugin doesn't handle that case very well. musachy On Fri, Jun 13, 2008 at 2:15 PM, Al Sutton [EMAIL PROTECTED] wrote: OK, Problem solved (switched to using apache and tomcat). Now, as I was saying... can you do better that http://www.lifefeed.info/ ? Al. Al Sutton wrote: OK, small hitch atm, Jetty in it's infinite wisdom is adding a jsessionid to all requests which is screwing over the REST plugin argggh!! Al Sutton wrote: Well, OK, S2.1 (but the title wouldn't sound so catchy). A push is being made for a high quality 2.1 GA release, and in order to do this the codebase needs a jolly good thrashing in every way imaginable, and the best way of doing this is to write S2.1 apps (and don't worry, the codebase loves a good thrashing). So, in the space of 5 working days, what can you produce that uses S2.1? On Monday I started writing a webapp that you can now play with at http://www.lifefeed.info/, so it's possible to write at least something in that amount of time :). So come on, show us what you can do Al. P.S. For those who are interested, in order to cut down on the coding time I used Hibernate, Sitemesh, and the S2.1 REST plugin. Feel like trying a better combination? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What can you do with S2?
Is it a REST thing or a Jetty thing? My view would be that as Jetty is adding the jsessionid Jetty should also recognize it, strip it off, and not pass it to the underlying webapp because it's part of the webapp magic of session to request mapping. Al. Musachy Barroso wrote: I just hit the same problem, I think the REST plugin doesn't handle that case very well. musachy On Fri, Jun 13, 2008 at 2:15 PM, Al Sutton [EMAIL PROTECTED] wrote: OK, Problem solved (switched to using apache and tomcat). Now, as I was saying... can you do better that http://www.lifefeed.info/ ? Al. Al Sutton wrote: OK, small hitch atm, Jetty in it's infinite wisdom is adding a jsessionid to all requests which is screwing over the REST plugin argggh!! Al Sutton wrote: Well, OK, S2.1 (but the title wouldn't sound so catchy). A push is being made for a high quality 2.1 GA release, and in order to do this the codebase needs a jolly good thrashing in every way imaginable, and the best way of doing this is to write S2.1 apps (and don't worry, the codebase loves a good thrashing). So, in the space of 5 working days, what can you produce that uses S2.1? On Monday I started writing a webapp that you can now play with at http://www.lifefeed.info/, so it's possible to write at least something in that amount of time :). So come on, show us what you can do Al. P.S. For those who are interested, in order to cut down on the coding time I used Hibernate, Sitemesh, and the S2.1 REST plugin. Feel like trying a better combination? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Looking for some more troubleshooting resources
Can you post the HTML for your page. Ta, Al. Karr, David wrote: I'm starting to do some simple experiments with Struts2 (those who know me would wonder what took me so long :) ). I have one blocking problem, but I would more appreciate hints on how to diagnose particular kinds of problems, as opposed to just giving me the answer. In this case I'm getting the infamous No result defined for action Action and result input. The problem is I'm pretty sure I HAVE an input result in my action. My struts.xml is very simple: --- ?xml version=1.0 encoding=UTF-8? !DOCTYPE struts PUBLIC -//Apache Software Foundation//DTD Struts Configuration 2.0//EN struts-2.0.dtd struts constant name=struts.devMode value=true / package extends=struts-default name=main namespace=/main action name=Form class=com.wamu.strutsform.FormAction result name=input/form.jsp/result result name=success/form.jsp/result /action /package /struts --- So, for instance, what pieces of information could I look at that could give me hints on what I'm doing wrong here? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Struts 2] Two action classes ?
If you're using a persistence framework (Hibernate, JPA, etc.) then No. During after the first request the EntityManager will be closed, so when you access it during the second request updates will not be propagated to the database. Al. Milan Milanovic wrote: But could I pass object through session object ? newton.dave wrote: --- On Fri, 6/13/08, Milan Milanovic [EMAIL PROTECTED] wrote: Yes that's what I want. The first action search in database and show the list of Fruits. Then user click on one and that concrete Fruit object is passed to other action for editing. All you can pass in an HTTP request is a string. You can *use* that string to create or retrieve an object. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
What can you do with S2?
Well, OK, S2.1 (but the title wouldn't sound so catchy). A push is being made for a high quality 2.1 GA release, and in order to do this the codebase needs a jolly good thrashing in every way imaginable, and the best way of doing this is to write S2.1 apps (and don't worry, the codebase loves a good thrashing). So, in the space of 5 working days, what can you produce that uses S2.1? On Monday I started writing a webapp that you can now play with at http://www.lifefeed.info/, so it's possible to write at least something in that amount of time :). So come on, show us what you can do Al. P.S. For those who are interested, in order to cut down on the coding time I used Hibernate, Sitemesh, and the S2.1 REST plugin. Feel like trying a better combination? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Re: [JPA more than Struts 2] Two action classes ?
Milan, Please read the EntityManager JavaDoc at http://java.sun.com/javaee/5/docs/api/javax/persistence/EntityManager.html and http://www.oracle.com/technology/pub/articles/gupta-jpa.html You'll see these explain why you can't simply put the object into a session and keep using it. You need to store the ID in the web page, refetch the object, then update with the data posted from the form whilst ensuring your security constraints are not violated. Al. Milan Milanovic wrote: Yes, EntityManager will be closed, but it always closes whenevery you do something (read/write) your object from database, isn't it ? When I read for example Fruit (id=1) from database, change it and try to save it will know with new EntityManager instance to save it because of id number ? -- Thx, Milan Al Sutton wrote: If you're using a persistence framework (Hibernate, JPA, etc.) then No. During after the first request the EntityManager will be closed, so when you access it during the second request updates will not be propagated to the database. Al. Milan Milanovic wrote: But could I pass object through session object ? newton.dave wrote: --- On Fri, 6/13/08, Milan Milanovic [EMAIL PROTECTED] wrote: Yes that's what I want. The first action search in database and show the list of Fruits. Then user click on one and that concrete Fruit object is passed to other action for editing. All you can pass in an HTTP request is a string. You can *use* that string to create or retrieve an object. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What can you do with S2?
OK, small hitch atm, Jetty in it's infinite wisdom is adding a jsessionid to all requests which is screwing over the REST plugin argggh!! Al Sutton wrote: Well, OK, S2.1 (but the title wouldn't sound so catchy). A push is being made for a high quality 2.1 GA release, and in order to do this the codebase needs a jolly good thrashing in every way imaginable, and the best way of doing this is to write S2.1 apps (and don't worry, the codebase loves a good thrashing). So, in the space of 5 working days, what can you produce that uses S2.1? On Monday I started writing a webapp that you can now play with at http://www.lifefeed.info/, so it's possible to write at least something in that amount of time :). So come on, show us what you can do Al. P.S. For those who are interested, in order to cut down on the coding time I used Hibernate, Sitemesh, and the S2.1 REST plugin. Feel like trying a better combination? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What can you do with S2?
OK, Problem solved (switched to using apache and tomcat). Now, as I was saying... can you do better that http://www.lifefeed.info/ ? Al. Al Sutton wrote: OK, small hitch atm, Jetty in it's infinite wisdom is adding a jsessionid to all requests which is screwing over the REST plugin argggh!! Al Sutton wrote: Well, OK, S2.1 (but the title wouldn't sound so catchy). A push is being made for a high quality 2.1 GA release, and in order to do this the codebase needs a jolly good thrashing in every way imaginable, and the best way of doing this is to write S2.1 apps (and don't worry, the codebase loves a good thrashing). So, in the space of 5 working days, what can you produce that uses S2.1? On Monday I started writing a webapp that you can now play with at http://www.lifefeed.info/, so it's possible to write at least something in that amount of time :). So come on, show us what you can do Al. P.S. For those who are interested, in order to cut down on the coding time I used Hibernate, Sitemesh, and the S2.1 REST plugin. Feel like trying a better combination? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT]Re: Struts 2 s:select question
How many people think him sending out of office emails to the list is enough of an emergency to call his cell phone as he's given us the number :)? Al. [EMAIL PROTECTED] wrote: I will be out of the office, and mostly without email access, until June 17. Please contact the One World office, 605-845-7172, with any general needs, and Danny Nickels, [EMAIL PROTECTED], at the same number, for any technical or integration issues. If this is an emergency, please feel free to call my cell at 605-848-2841. Thanks, -Stewart - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Struts 2] webapp on internet, clients behind a proxy -- session clash
Not in your struts app. I've seen this in a production situation and it's usually a bug in the proxy. If you can try setting up a NAT environment without the proxy and then with the proxy, if the bug only occurs when the proxy is in place then you know where the problem is. Al. P.S. The buggy proxy I encountered was Novell iChain, I don't know the version, but after the customer put in a rule that the site the struts app was on was not to be proxied everything worked and they were satisfied they should be talking to Novell about the problem. Julien ROTT wrote: So there is no solution to avoid the sessions clash in this situation ? 2008/6/5 Dave Newton [EMAIL PROTECTED]: --- On Thu, 6/5/08, Julien ROTT [EMAIL PROTECTED] wrote: I guess the server is a bit confused because the clients have the same IP address (I tried jboss and jetty). Session management isn't really handled by Struts, it's handled via the app server and browser (by sending the session id cookie). AFAIK the requesting IP address doesn't (shouldn't?) have anything to do with it, it's all about what the browser sends to identify the session. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: welcome file on localhost
It's a Jetty thing, not something related to localhost. See http://sourceforge.net/mailarchive/message.php?msg_name=B285FB88-985D-4DE1-A051-4F170C1D5238%40adjective.org for an idea of how to do it. Al. Stetze2008 wrote: hi, when opening http://localhost:8080/myApplication/ on my local Jetty server instead of showing the action defined in the welcomefilelist of my web.xml I'm asked to download a file from type application/octet-stream. it works on the tomcat internet server. does anybody know how to solve this locally? thanks in advance, Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: struts + freemarker version
I've used S2.0.11 and Freemarker 2.3.13 without any problems. The only reason it's not in the latest builds is that it was released after the latest S2 builds and FM2.3.13 hasn't been put into the neccessary place to support an automated build. Al. Kirti wrote: we are currently using struts 2.0.9 with freemarker 2.3.8. We are planning to upgrade to struts 2.0.11 and freemarker 2.3.13. But we have few doubts on thier compatibility. Apparently struts 2.0.11 also uses freemarker 2.3.8. We see that there are major performance improvements in 2.3.13. Can we upgrade ourselves to use struts 2.0.11 with freemarker 2.3.13? Do anyone see any issues with this upgradation? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Request/session timeout when exporting very large files
You may find that your app server, the clients browser, or any proxy in-between may timeout irrespective of what you do in your webapp. If the file takes so long to generate is there any reason why your not pre-generating it, caching it and serving it as a static file? Al. - Original Message - From: Simon Sew [EMAIL PROTECTED] To: user@struts.apache.org Sent: Thursday, May 22, 2008 7:32 AM Subject: Request/session timeout when exporting very large files Hi, I'm having this request/session timeout problem. My page have a link to generate and export pdf file. The problem is sometimes the generated file is very huge (100MB++) and it takes quite some time to export it (30 to 90 minutes). How do I prevent it from timeout when it is exporting at that time? I tried session.setMaxInactiveInterval() but it's not working. Thx. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Request/session timeout when exporting very large files
From the initial email it seemed as though it's a two stage process (stage 1 : generate, stage 2 : export), hence I thought it possible that an idle time out could occur during the generation phase. One approach I've seen is that a servlet starts the generation and lets the user carry on with their interaction with the webapp. Once the generation is complete the user is emailed a link where they can download the generated file. All this would, of course, need the necessary security put over the top to ensure users didn't download each others files. Al. Laurie Harper wrote: Al Sutton wrote: You may find that your app server, the clients browser, or any proxy in-between may timeout irrespective of what you do in your webapp. If the timeout occurs during the PDF generation, before the response begins being streamed back, maybe. But as long as there is response data being transmitted, no timeout should occur at the connection level. A session timeout is an app-server function, anyhow; clients and proxies know nothing about the session. Simon, is the timeout occuring during the request for the PDF, while it is being generated and before the action begins transmitting it? Or is the PDF downloaded successfully with the next request failing because the session timed out during the download? L. If the file takes so long to generate is there any reason why your not pre-generating it, caching it and serving it as a static file? Al. - Original Message - From: Simon Sew [EMAIL PROTECTED] To: user@struts.apache.org Sent: Thursday, May 22, 2008 7:32 AM Subject: Request/session timeout when exporting very large files Hi, I'm having this request/session timeout problem. My page have a link to generate and export pdf file. The problem is sometimes the generated file is very huge (100MB++) and it takes quite some time to export it (30 to 90 minutes). How do I prevent it from timeout when it is exporting at that time? I tried session.setMaxInactiveInterval() but it's not working. Thx. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Struts 2] Pass value between two action classes
One class with different action methods is fine, One class with a single execute method that's recalled is bad. I think Milan is saying the former, if he is saying the latter then it's not good due to the extra instructions needed to determine where you're going from and where you're going to. Al. - Original Message - From: Milan Milanovic [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Thursday, May 15, 2008 3:06 PM Subject: Re: [Struts 2] Pass value between two action classes Why not ? Different methods are calling different result jsp-s ? -- Milan - Original Message From: Ravichandra C [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Thursday, May 15, 2008 3:52:12 PM Subject: RE: [Struts 2] Pass value between two action classes as I see... no! -Original Message- From: Milan Milanovic [mailto:[EMAIL PROTECTED] Sent: Thursday, May 15, 2008 7:20 PM To: Struts Users Mailing List Subject: Re: [Struts 2] Pass value between two action classes Is a better approach to use one action class with multiple jsp pages ? -- Thx, Milan - Original Message From: Ravichandra C [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Thursday, May 15, 2008 3:44:10 PM Subject: RE: [Struts 2] Pass value between two action classes Here we are implementing one action class with multiple methods providing multiple pages. More like a wizard like functionality however I would suggest to break things into multiple actions to the extent possible. The main disadvantage we our approach was with the validation layer... all had only one validate method... and we had to go with interceptors... -Original Message- From: Milan Milanovic [mailto:[EMAIL PROTECTED] Sent: Thursday, May 15, 2008 7:09 PM To: Struts Users Mailing List Subject: Re: [Struts 2] Pass value between two action classes O.K. Thaks. But what is general good practice for big forms, two different forms and actions for one object like this, or maybe tabbedPanel or something third ? What is easier to implement and more efficient ? -- Thx in advance, Milan Milanovic - Original Message From: ravi_eze [EMAIL PROTECTED] To: user@struts.apache.org Sent: Thursday, May 15, 2008 7:08:57 AM Subject: Re: [Struts 2] Pass value between two action classes quite possible. for this u need to define the object fruit in session scope. and in 1st page say: vitamins, color can be filled. In 2nd page say: weight, age can be filled and all the time the same object fruit in the session would be filled. http://struts.apache.org/2.x/docs/scope-interceptor.html hope this helps. ravi -- View this message in context: http://www.nabble.com/-Struts-2--Pass-value-between-two-action-classes-t p17234969p17246034.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: devMode + Windows + Eclipse + Tomcat = not reloading struts.xml
I'm pretty sure it's an Windows/Eclipse thing as I see the same thing with or without devMode set to true on Windows with JDK 1.5.0_14. Struts has very little control over how it is deployed into the webapp container (tomcat in your case), so you might want to check in with the eclipse guys to see what they say. Al. - Original Message - From: Chase [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, April 29, 2008 1:36 AM Subject: Re: devMode + Windows + Eclipse + Tomcat = not reloading struts.xml Adam Hardy wrote: Chase on 28/04/08 22:14, wrote: Anyone had issues with devMode not working fully on Windows? I've got constant name=struts.devMode value=true / set and in my Tomcat console log I'm seeing: INFO: Overriding property struts.configuration.xml.reload - old value: false new value: true Windows XP Sun JDK 1.6u6 Eclipse 3.3.2 Tomcat 6.0.16 Tomcat is being controlled and deployed to by Eclipse. Not fully working? Is it showing any devMode signs? ResourceBundle? struts.xml? Extra logging? Yes, for instance I'm getting the Struts Problem Report page instead of the basic 404 pages. I haven't check ResourceBundles yet. Same project and versions of Struts/Tomcat/Eclipse on a Linux box work with no problem. I'm just not seeing struts.xml reloading on Windows systems. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using DOJO in Struts2
Just to add my vote to the YUI loving camp. I started to port the S2 dojo plugin to dojo 1.x, but after playing with YUI I've abandoned it because YUI was a better fit for my needs. - Original Message - From: umesh awasthi [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, April 22, 2008 7:06 AM Subject: Re: Using DOJO in Struts2 Thanks Jeromy for the detailed Explanation you have mentioned the point on which we are also confused... we are on analysis phase of using any external ajax libraray with out coming struts2 based applications We have got lot of favourable comments for YUI over DOJO (Previously we haqve faced some performance issues by using DOJO) Still we will create a sample application for testing the functionality of DOJO with struts2. Hope it will help us to decide the path.. :) Jermony can u share your exp of using YUI as we don't have much idea abt it ,like Its performance and intergation with struts2? i thik that will also help us to choose the path. we haven't given any thought of enhancing ftl. surely Tom we will also look in to this aspect.. any other suggestuion in this regard will be much appriciated.. -S On 4/22/08, tom tom [EMAIL PROTECTED] wrote: Hi, Instead of directly using DOJO 1.x, did you think about enhancing the ftl with a new theme type Thanks --- umesh awasthi [EMAIL PROTECTED] wrote: Thanks Jeromy for the rply we will try to impliment DOJO 1.x along with struts2 some point i want to confirm if u have any exp using dojo with struts2 1) IF we will replace the Struts2 ajax tag with dojo will there be any functional changes to struts2 lilke action automatically populate form beans in the action. if we will use dojo tags will it again populate the beans like struts2 do on each request?? or any other specific configuration which we have to take in to account?? --S On 4/21/08, Jeromy Evans [EMAIL PROTECTED] wrote: umesh awasthi wrote: Hi All, Our current version of Struts2 is using DOJO toolkit version 0.4.x(Correct me if i am wrong) Correct. Struts 2.0.x uses Dojo 0.4.0. Struts 2.1.x uses Dojo 0.4.3 at the moment. my point is as we have earlier experience of using DOJO with java (Not Struts2),we want to use DOJO with higher version(0.9 or higher) with current version of struts2(In our case it is struts-2.0.11.1) how can we achieve this ?? Don't use the Struts2 ajax tags. Use Dojo 1.x directly following the instructions provided by Dojo. They're independent. You can use any client-side library with Struts2 and Dojo is an excellent choice. Likewise, you can use Dojo with any server-side framework you like and Struts2 is a good choice. Instead of using tags like s:tabbedpanel you'll be using dojo markup directly (eg. div dojoType=whatever). Work has started on providing Dojo 1.x tags for Stuts2 that replace the functionality of the existing tags, but my view is that you will benefit more by learning and using Dojo the way its designers intended. regards, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best practise for populating a select from database so that it works for all result types
Toni, Isn't your bug a duplicate of https://issues.apache.org/struts/browse/WW-1963? Al. - Original Message - From: Toni Lyytikäinen [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Monday, April 21, 2008 12:26 PM Subject: Re: Best practise for populating a select from database so that it works for all result types Yes it shouldn't be affected, but there seems to be a bug that affects this behaviour, see WW-2599. https://issues.apache.org/struts/browse/WW-2599 On Mon, Apr 21, 2008 at 2:20 PM, Adam Hardy [EMAIL PROTECTED] wrote: Yes, I get the picture. If you haven't already, download the source bundle and look at the examples. Actually I don't think I understood one thing you said. You're using an action taglib in the JSP, which invokes the list retrieval. Surely that's not affected by validation failure? I was under the impression that the tag simply calls the default or specified method on the action. Toni Lyytikäinen on 21/04/08 12:00, wrote: Well, for the retrieval I use stateless session bean injected to the action with Spring, like this (simplified): public User getUser() { return user; } public String edit() { user=dao.get(id); return SUCCESS; } So it's nothing special. The session approach of course isn't ideal, but more a workaround until the bug gets solved or I find a better way to do it. The idea is that the action is still executed every time the user enters the form from a success result, and the non-fresh session based list is only used when validation fails. I don't know if you get the idea from this explanation. Other than that, I found out that the Preparable interface can also be used for this, so I might explore that option further. On Mon, Apr 21, 2008 at 1:19 PM, Adam Hardy [EMAIL PROTECTED] wrote: I think so - the chain is just a forward inside the same request so you shouldn't lose the field errors. But I'm just setting up a new website now with this approach, so actually I'm as inexperienced as you are - my previous Struts2 project had a different approach entirely. You second question regarding retrieval from the DB revolves around how you do the retrieval, but you don't say. I actually cheat like crazy and have a special domain object type converter which retrieves an Entity from the DB when the HTTP param = entity=253 but this isn't the way type converters were meant to be used. This doesn't happen if validation fails, because I ordered the validation interceptor before the params interceptor in my interceptor stack. And of course the edit action doesn't do validation - just the save. (of course it throws an exception if you forget to send the id of the entity you want to edit). Generally this makes it easier to deal with nested entities. But if you just have a simple domain model, go the documented way. I shouldn't really be saying all this because I haven't got it working yet :( Re: lists, you can put them into the request but then you have to manage them in case some other user changes them. Plus you will use up memory. If you're using a decent persistence layer that has 'second level cache' which you can set up when you go live, rely on that instead for caching. Toni Lyytikäinen on 21/04/08 11:02, wrote: Thanks for the answer! Does the resultType=chain approach preserve the fieldErrors and the values the user has already typed into the form? Also, how do you prevent the edit action from retrieving the entity from the database in the case the validation fails? I also thought about putting the lists into the http session instead of the request, but I don't really like cluttering the session with such things. On Mon, Apr 21, 2008 at 12:55 PM, Adam Hardy [EMAIL PROTECTED] wrote: Hi Toni there are several different approaches. The one I use has an Edit action and a Save action. The Edit action fetches the dropdown list and puts it in the request and results in the form jsp. The form submits to Save and if validation fails, the Input result is resultType=chain and pipes the request back to the Edit action. HTH Adam Toni Lyytikäinen on 21/04/08 10:05, wrote: Hello, What is generally regarded as the best practise for populating a select element in a form from database so that it works regardless of the action and the result from which the form is displayed? I've tried this: action configuration: action name=edit method=edit class=admin.Users result/WEB-INF/jsp/admin/userForm.jsp/result /action action name=save method=save class=admin.Users result type=redirect-action param name=actionNamelist/param /result result name=input/WEB-INF/jsp/admin/userForm.jsp/result /action
Re: Converting action configuration from 2.0 to 2.1 - how to convert parameters to actions
Toni, Try using redirectAction instead of redirect-action. Al. - Original Message - From: Don Brown [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Friday, April 18, 2008 2:12 PM Subject: Re: Converting action configuration from 2.0 to 2.1 - how to convert parameters to actions Hmm...what should happen is those exceptions should be logged as a warn, but the process should continue like normal. If that isn't the case, definitely file a bug and put it against 2.1.2 Don On Fri, Apr 18, 2008 at 11:11 PM, Toni Lyytikäinen [EMAIL PROTECTED] wrote: Hello, I'm in the process of converting a Struts 2.0.11 application to Struts 2.1.1, and ran into some trouble concerning the action result configuration in struts.xml. Basically this is what I had in 2.0.11: result name=edit type=redirect-action param name=actionNameUsers_edit/param param name=parsetrue/param param name=name${user.username}/param /result This resulted in an url like http://.../Users_edit.action?name=toni But for 2.1.1 this approach isn't working, as it throws an exception: There was an exception while instantiating the result of type org.apache.struts2.dispatcher.ServletActionRedirectResult Caught OgnlException while setting property 'name' on type 'org.apache.struts2.dispatcher.ServletActionRedirectResult'. - Class: ognl.ObjectPropertyAccessor ... Caused by: ognl.NoSuchPropertyException: org.apache.struts2.dispatcher.ServletActionRedirectResult.name What do I need to do to make these kind of definitions compatible with Struts 2.1.1? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Converting action configuration from 2.0 to 2.1 - how to convert parameters to actions
Toni, Can you post your updated action config and the full stack trace here, there may be something simple we can spot before needing to log a bug. Al. - Original Message - From: Toni Lyytikäinen [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Friday, April 18, 2008 2:28 PM Subject: Re: Converting action configuration from 2.0 to 2.1 - how to convert parameters to actions Yes I forgot to mention in the original post that I already changed the redirect-action to redirectAction as per the migration guide here: http://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-21x.html On Fri, Apr 18, 2008 at 4:26 PM, Dave Newton [EMAIL PROTECTED] wrote: I'm confused; I didn't think redirect-action would even work; that result type isn't mapped in 2.1 and you should get an exception stating exactly that. Dave --- Jukka Välimaa [EMAIL PROTECTED] wrote: For Struts 2.1.1, use type=redirectAction instead of type=redirect-action. I just had the pleasure of debugging some problems caused by it. On Fri, Apr 18, 2008 at 4:12 PM, Don Brown [EMAIL PROTECTED] wrote: Hmm...what should happen is those exceptions should be logged as a warn, but the process should continue like normal. If that isn't the case, definitely file a bug and put it against 2.1.2 Don On Fri, Apr 18, 2008 at 11:11 PM, Toni Lyytikäinen [EMAIL PROTECTED] wrote: Hello, I'm in the process of converting a Struts 2.0.11 application to Struts 2.1.1, and ran into some trouble concerning the action result configuration in struts.xml. Basically this is what I had in 2.0.11: result name=edit type=redirect-action param name=actionNameUsers_edit/param param name=parsetrue/param param name=name${user.username}/param /result This resulted in an url like http://.../Users_edit.action?name=toni But for 2.1.1 this approach isn't working, as it throws an exception: There was an exception while instantiating the result of type org.apache.struts2.dispatcher.ServletActionRedirectResult Caught OgnlException while setting property 'name' on type 'org.apache.struts2.dispatcher.ServletActionRedirectResult'. - Class: ognl.ObjectPropertyAccessor ... Caused by: ognl.NoSuchPropertyException: org.apache.struts2.dispatcher.ServletActionRedirectResult.name What do I need to do to make these kind of definitions compatible with Struts 2.1.1? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Export Control Classification Number (ECCN) and Struts v1.3.x
Export classification from which country? As you're from Sun I assume you might be talking about the US. In which case Struts doesn't contain any cryptographic algorithms so (as far as I'm aware) it doesn't need a classification. Al. - Original Message - From: Alan Treece [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Monday, April 14, 2008 1:24 AM Subject: Export Control Classification Number (ECCN) and Struts v1.3.x Folks... Been searching the Apache web site and the archives, but haven't found anything yet... I'm using Struts v1.3.x in an application and I'm being asked to verify the export classification of Struts. Is there documentation somewhere where I can determine this classification? Or... if this has not been done to whom should I request this process to begin? Thanks, ajTreece - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: retrotranslating struts 2.0.11 not working
Paula, Quick question; Any reason you can't upgrade to Java 1.5 and use the primary distribution and not a retrotranslated one? Al. P.S. Your problem is that your projects classes are being compiled with a JDK = 1.5. - Original Message - From: Paula Estrella [EMAIL PROTECTED] To: user@struts.apache.org Sent: Thursday, April 10, 2008 10:20 AM Subject: retrotranslating struts 2.0.11 not working Hello, We have a small application developed with struts2 for uploading files and returning the results of doing something with the files and we are trying to run struts2 with java 1.4.2 but it is not working after many attempts to remove the filter start error; could you please give us some hints? thanks a lot and we're sorry if someone already asked this. Paula the working environment is: tomcat 5.0.30, jdk 1.4.2, struts 2.0.11 on a linux suse server; we followed the procedure to retrotranslate the following files from struts-2.0.11-j4.zip commons-collections-3.1 freemarker-2.3.4 spring-aop-1.2.8 spring-context-1.2.8 spring-web-1.2.8 struts2-core-2.0.1 commons-logging-1.0.4 ognl-2.6.7 spring-beans-1.2.8 spring-core-1.2.8 struts2-api-2.0.1 xwork-2.0-beta-1 except for struts2-api-2.0.1, which we couldn't find anywhere. here's the stacktrace StandardContext[/project]Exception starting filter struts2 java.lang.UnsupportedClassVersionError: project/FileUploadAction (Unsupported major.minor version 49.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:808) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:147) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1634) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:860) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189) at com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:139) at com.opensymphony.xwork2.ObjectFactory.getClassInstance(ObjectFactory.java:100) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:366) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:329) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:429) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:239) at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:152) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452) at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:225) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:308) at org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:79) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3702) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4329) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277) at org.apache.catalina.core.StandardHost.install(StandardHost.java:832) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:701) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091) at org.apache.catalina.core.StandardHost.start(StandardHost.java:789) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
Re: Struts2, SiteMesh and Struts Menu
I'm using the combination you mention without any problems. Check the order you're using the servlet filters in, mine is; filter filter-namestruts-cleanup/filter-name filter-classorg.apache.struts2.dispatcher.ActionContextCleanUp/filter-class/filterfilter filter-namesitemesh/filter-name filter-classcom.opensymphony.module.sitemesh.filter.PageFilter/filter-class/filterfilter filter-namestruts/filter-name filter-classorg.apache.struts2.dispatcher.FilterDispatcher/filter-class/filterfilter filter-namestruts-cleanup/filter-name url-pattern/*/url-pattern/filter-mappingfilter-mapping filter-namesitemesh/filter-name url-pattern/*/url-pattern/filter-mappingfilter-mapping filter-namestruts/filter-name url-pattern/*/url-pattern/filter-mapping Other filters here .and for Struts Menu I use the listener; listener listener-classnet.sf.navigator.menu.MenuContextListener/listener-class /listenerHope this helps.Al.- Original Message -From: Matthew SeabornTo: 'Struts Users Mailing List'Sent: Thursday, April 10, 2008 3:00 PMSubject: Struts2, SiteMesh and Struts MenuHa s anyone had any experience of using these three together? I have Struts2 and SiteMesh working together happily, but soon as I add Struts Menu I getthe error below.I believe it is due to SiteMesh and not Struts 2 but am not sure on this.Has anyone seen this before?Thanks.javax.servlet.ServletException: Stream closed org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:515) org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419) com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:119) com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55) org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99)root causejava.io.IOException: Stream closed org.apache.jasper.runtime.JspWriterImpl.ensureOpen(JspWriterImpl.java:203) org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterIm pl.java:114) org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:172) org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:954) org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:614) org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:119) org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:178) com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:348) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:253) org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:50) org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:504) org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419) com.opensymphony.modul e.sitemesh.filter.PageFilter.parsePage(PageFilter.java:119)com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55)org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99)Matthew SeabornSoftware Architectt+44(0) 208 484 0729m +44(0) 7949 465 142e [EMAIL PROTECTED] HousePlane Tree CrescentFeltham, Middlesex, TW13 7HEUnited Kingdomhttp://www.performgroup.com/CONFIDENTIALITY - This email and any files transmitted with it, areconfidential, may be legally privileged and are intended solely for the useof the individual or entity to whom they are addressed. If this has come toyou in error, you must not copy, distribute, disclose or use any of theinformation it contains. Please notify the sender immediately and deletethem from your system.SECURITY - Please be aware that communication by email, by its very nature,is not 100% secure and by communicating with Perform Group by email youconsent to us monitoring and reading any such correspondence.VIRUSES - Although this email message has been scanned for the presence ofcomputer viruses, the sender accepts no liability for any damage sustainedas a result of a computer virus and it is the recipient's responsibility toensure that email is virus free.AUTHORITY - Any views or opinions expressed in this email are solely thoseof the sender and do not necessarily represent those of Perform Group.COPYRIGHT - Copyright of this email and any attachments belongs to PerformGroup, Companies House Registration number 6324278. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] What do you code today?
It's a port from a combination of S1.3, actions, and servlets, so it's been a big jump. There aren't that many hurdles once you're familiar with the S2 way of doing things. S2 has made life a lot easier, the UI codebase a lot smaller, and is generally a good move. - Original Message - From: Martin Gainty [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Sunday, April 06, 2008 4:54 AM Subject: Re: [OT] What do you code today? Al- Any pointers you can share on porting ? M- - Original Message - From: Al Sutton [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Saturday, April 05, 2008 2:51 AM Subject: Re: [OT] What do you code today? http://www.enterprise-password-safe.com/ At the moment the code is under a major overhaul to use S2.1 (yes, 2.1) and add some new features, hence my big interest in 2.1 :). Al. - Original Message - From: Ted Husted [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Friday, April 04, 2008 12:14 PM Subject: [OT] What do you code today? While outward facing web application get the most publicity, I know that most of us are heads-down on internally-facing applications designed for fellow employees to use over the corporate intranet. I'm trying to put together a list of the typical types of applications that enterprise developer write in real life. For example, my last project involved a system to track drafting, granting, monitoring, and enforcing water permits administered by a government agency. We would create an initial record for a permit, and then add child records to track progress through the workflow, and also update the master record along the way. For management, a key item here is a tracking report, which we exported to Word (using a third-party tool) for better formatting. For engineers, a key item was a flexible search system to quickly find a master or child record. Other interesting features are workflows where one task leads to another. When we completed one task (child record), the next is often implied, and so we had a workflow that would default the next task to work on when a current task was closed. Another interesting requirement was that sometimes master items were merged under another uber-master-item, becoming, in effect, child items themselves. In most cases, the application simply exposed business models that we designed into the database, so the application has little business logic of its own. Most of the workflows were designed to find, list, edit, or view one database entity or the other. So, if anyone else is up for sharing, I'd be interested in hearing what sort of things other people are doing these days. (If your not comfortable posting the list, feel free to mail me direct.) -Ted. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]