Re: Struts Action Scripting
On Wed, 18 Jun 2003, Igor Shabalov wrote: Date: Wed, 18 Jun 2003 09:16:58 -0700 From: Igor Shabalov [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Struts Action Scripting Craig, do not tell me that it is impossible, when I've already have this done in Exadel Application Framework. Yes! Careful work with classloaders can do the job. This is possible, because Struts runtime control any use of Action classes, and, presumably, user do not use Action classes directly from users code. That might work for Actions, but how about for beans in general? Or classes loaded from a parent class loader (like classes from common/lib in Tomcat)? I'm really not interested in trying to support fancy class loading tricks like this, across all platforms, in the Struts codebase itself. It was hard enough to get class loading inside *one* container (I wrote a large chunk of the Catalina code in Tomcat) to work reliably. If you are interested in trying this with Exadel, then more power to you ... and I'll happily send the support questions to your user list instead :-). Best, Igor. Craig On Tue, 17 Jun 2003 01:02:15 -0700 (PDT), Craig R. McClanahan [EMAIL PROTECTED] wrote: On Thu, 12 Jun 2003, Igor Shabalov wrote: Date: Thu, 12 Jun 2003 11:13:47 -0700 From: Igor Shabalov [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Struts Action Scripting It's not about compilation time. It's about ability to reload code on- the fly. Here Eclipse do not helps you. Compilation time can be rather small. Time to reload all application will be unacceptable, I just need to reload one action. Java does not provide any mechanism to unload a previously loaded class. The best you can do is throw away the ClassLoader that loaded that class (which is what containers like Tomcat do when you reload an existing app) . The fact that JSP pages can be recompiled only works because the container goes to EXTREME lengths to load the class for each page in a separate class loader -- but that doesn't work in the general case, because there is no way to know what other classes might refer to a particular class. The only safe answer is to reload the app as a whole. You should give up on the hope of reloading an individual class, and instead concentrate on techniques that reduce the reload time of your app as a whole. Of course, that's primarily an issue for developers, not your production deployment, so it is probably not the most important thing to spend your time on anyway. Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Igor Shabalov Director of Engineering Exadel Inc. http://www.exadel.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 Action Scripting
Craig, do not tell me that it is impossible, when I've already have this done in Exadel Application Framework. Yes! Careful work with classloaders can do the job. This is possible, because Struts runtime control any use of Action classes, and, presumably, user do not use Action classes directly from users code. Best, Igor. On Tue, 17 Jun 2003 01:02:15 -0700 (PDT), Craig R. McClanahan [EMAIL PROTECTED] wrote: On Thu, 12 Jun 2003, Igor Shabalov wrote: Date: Thu, 12 Jun 2003 11:13:47 -0700 From: Igor Shabalov [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Struts Action Scripting It's not about compilation time. It's about ability to reload code on- the fly. Here Eclipse do not helps you. Compilation time can be rather small. Time to reload all application will be unacceptable, I just need to reload one action. Java does not provide any mechanism to unload a previously loaded class. The best you can do is throw away the ClassLoader that loaded that class (which is what containers like Tomcat do when you reload an existing app) . The fact that JSP pages can be recompiled only works because the container goes to EXTREME lengths to load the class for each page in a separate class loader -- but that doesn't work in the general case, because there is no way to know what other classes might refer to a particular class. The only safe answer is to reload the app as a whole. You should give up on the hope of reloading an individual class, and instead concentrate on techniques that reduce the reload time of your app as a whole. Of course, that's primarily an issue for developers, not your production deployment, so it is probably not the most important thing to spend your time on anyway. Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Igor Shabalov Director of Engineering Exadel Inc. http://www.exadel.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts Action Scripting
On Thu, 12 Jun 2003, Igor Shabalov wrote: Date: Thu, 12 Jun 2003 11:13:47 -0700 From: Igor Shabalov [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Struts Action Scripting It's not about compilation time. It's about ability to reload code on-the fly. Here Eclipse do not helps you. Compilation time can be rather small. Time to reload all application will be unacceptable, I just need to reload one action. Java does not provide any mechanism to unload a previously loaded class. The best you can do is throw away the ClassLoader that loaded that class (which is what containers like Tomcat do when you reload an existing app). The fact that JSP pages can be recompiled only works because the container goes to EXTREME lengths to load the class for each page in a separate class loader -- but that doesn't work in the general case, because there is no way to know what other classes might refer to a particular class. The only safe answer is to reload the app as a whole. You should give up on the hope of reloading an individual class, and instead concentrate on techniques that reduce the reload time of your app as a whole. Of course, that's primarily an issue for developers, not your production deployment, so it is probably not the most important thing to spend your time on anyway. Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Action Scripting
Then you get back to a spageti application ... :) José. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 5:49 PM To: Struts Users Mailing List Subject: Struts Action Scripting Just found this at http://www.alphaworks.ibm.com/tech/strutsscripting From their Overview: The ScriptedAction is a Struts Action class that uses BSF (Bean Scripting Framework) to enable Struts developers to create Struts Actions in the language of their choice. Supported languages include: JavaScript, Jython, Jacl, ActiveScript, PerlScript and others. When specifying the type of an action, the ScriptedAction is specified and the parameter attribute is used to tell the ScriptedAction which script to load and execute. The ScriptedAction uses BSF to setup the script runtime environment with declared variables for the arguments typically passed to the execute method of an action, as well as a context object that provides a way for the script to specify the forward for the action to return. Currently, there is some function for customizing the execution environment of scripts to make the scripting of Actions easier and friendlier by allowing the definition of predefined variables and functions available to all scripts. Future plans include an extension mechanism to allow for the registration of new BSF engines and file extensions for different languages. Cheers, Gustavo DISCLAIMER This e-mail and any attachment thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) by other persons than the designated recipient(s) is prohibited. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer. Thank you for your cooperation. For further information about Proximus mobile phone services please see our website at http://www.proximus.be or refer to any Proximus agent. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Action Scripting
One of the stated benefits is that you don't have to reload your app to see changes in actions. I think the idea is neat but would never use it because Tomcat reloads my app in 3 seconds. David Then you get back to a spageti application ... :) José. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 5:49 PM To: Struts Users Mailing List Subject: Struts Action Scripting Just found this at http://www.alphaworks.ibm.com/tech/strutsscripting From their Overview: The ScriptedAction is a Struts Action class that uses BSF (Bean Scripting Framework) to enable Struts developers to create Struts Actions in the language of their choice. Supported languages include: JavaScript, Jython, Jacl, ActiveScript, PerlScript and others. When specifying the type of an action, the ScriptedAction is specified and the parameter attribute is used to tell the ScriptedAction which script to load and execute. The ScriptedAction uses BSF to setup the script runtime environment with declared variables for the arguments typically passed to the execute method of an action, as well as a context object that provides a way for the script to specify the forward for the action to return. Currently, there is some function for customizing the execution environment of scripts to make the scripting of Actions easier and friendlier by allowing the definition of predefined variables and functions available to all scripts. Future plans include an extension mechanism to allow for the registration of new BSF engines and file extensions for different languages. Cheers, Gustavo DISCLAIMER This e-mail and any attachment thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) by other persons than the designated recipient(s) is prohibited. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer. Thank you for your cooperation. For further information about Proximus mobile phone services please see our website at http://www.proximus.be or refer to any Proximus agent. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Action Scripting
True, but I think recompiling is the time consuming part! I've also done a small integration project using BeanShell scripting (for actions), if anyone is interested, I'll be willing to share it! ^^ Ed Yu, Senior Solutions Architect (IBM Certified AIX Administrator), Advanced Solutions Group, Physics Dept., University of South Carolina, Columbia, SC 29208 Office (803)777-8831, FAX (803)777-8833, Email [EMAIL PROTECTED] -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 11:50 AM To: [EMAIL PROTECTED] Subject: RE: Struts Action Scripting One of the stated benefits is that you don't have to reload your app to see changes in actions. I think the idea is neat but would never use it because Tomcat reloads my app in 3 seconds. David Then you get back to a spageti application ... :) José. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 5:49 PM To: Struts Users Mailing List Subject: Struts Action Scripting Just found this at http://www.alphaworks.ibm.com/tech/strutsscripting From their Overview: The ScriptedAction is a Struts Action class that uses BSF (Bean Scripting Framework) to enable Struts developers to create Struts Actions in the language of their choice. Supported languages include: JavaScript, Jython, Jacl, ActiveScript, PerlScript and others. When specifying the type of an action, the ScriptedAction is specified and the parameter attribute is used to tell the ScriptedAction which script to load and execute. The ScriptedAction uses BSF to setup the script runtime environment with declared variables for the arguments typically passed to the execute method of an action, as well as a context object that provides a way for the script to specify the forward for the action to return. Currently, there is some function for customizing the execution environment of scripts to make the scripting of Actions easier and friendlier by allowing the definition of predefined variables and functions available to all scripts. Future plans include an extension mechanism to allow for the registration of new BSF engines and file extensions for different languages. Cheers, Gustavo DISCLAIMER This e-mail and any attachment thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) by other persons than the designated recipient(s) is prohibited. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer. Thank you for your cooperation. For further information about Proximus mobile phone services please see our website at http://www.proximus.be or refer to any Proximus agent. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - 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 Action Scripting
True, but I think recompiling is the time consuming part! Recompiling the actions or jsps? If it takes you more than 1 second to compile an action, you're using the wrong tool. Eclipse performs incremental compilation every time you save a .java file so you don't even notice that it's compiling. I've had people ask me how to compile and build projects in eclipse because they didn't realize it was all automated for them! David I've also done a small integration project using BeanShell scripting (for actions), if anyone is interested, I'll be willing to share it! ^^ Ed Yu, Senior Solutions Architect (IBM Certified AIX Administrator), Advanced Solutions Group, Physics Dept., University of South Carolina, Columbia, SC 29208 Office (803)777-8831, FAX (803)777-8833, Email [EMAIL PROTECTED] -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 11:50 AM To: [EMAIL PROTECTED] Subject: RE: Struts Action Scripting One of the stated benefits is that you don't have to reload your app to see changes in actions. I think the idea is neat but would never use it because Tomcat reloads my app in 3 seconds. David Then you get back to a spageti application ... :) José. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 5:49 PM To: Struts Users Mailing List Subject: Struts Action Scripting Just found this at http://www.alphaworks.ibm.com/tech/strutsscripting From their Overview: The ScriptedAction is a Struts Action class that uses BSF (Bean Scripting Framework) to enable Struts developers to create Struts Actions in the language of their choice. Supported languages include: JavaScript, Jython, Jacl, ActiveScript, PerlScript and others. When specifying the type of an action, the ScriptedAction is specified and the parameter attribute is used to tell the ScriptedAction which script to load and execute. The ScriptedAction uses BSF to setup the script runtime environment with declared variables for the arguments typically passed to the execute method of an action, as well as a context object that provides a way for the script to specify the forward for the action to return. Currently, there is some function for customizing the execution environment of scripts to make the scripting of Actions easier and friendlier by allowing the definition of predefined variables and functions available to all scripts. Future plans include an extension mechanism to allow for the registration of new BSF engines and file extensions for different languages. Cheers, Gustavo DISCLAIMER This e-mail and any attachment thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) by other persons than the designated recipient(s) is prohibited. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer. Thank you for your cooperation. For further information about Proximus mobile phone services please see our website at http://www.proximus.be or refer to any Proximus agent. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - 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] _ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Action Scripting
I use ant. ^^ Ed Yu, Senior Solutions Architect (IBM Certified AIX Administrator), Advanced Solutions Group, Physics Dept., University of South Carolina, Columbia, SC 29208 Office (803)777-8831, FAX (803)777-8833, Email [EMAIL PROTECTED] -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 1:06 PM To: [EMAIL PROTECTED] Subject: RE: Struts Action Scripting True, but I think recompiling is the time consuming part! Recompiling the actions or jsps? If it takes you more than 1 second to compile an action, you're using the wrong tool. Eclipse performs incremental compilation every time you save a .java file so you don't even notice that it's compiling. I've had people ask me how to compile and build projects in eclipse because they didn't realize it was all automated for them! David I've also done a small integration project using BeanShell scripting (for actions), if anyone is interested, I'll be willing to share it! ^ ^ Ed Yu, Senior Solutions Architect (IBM Certified AIX Administrator), Advanced Solutions Group, Physics Dept., University of South Carolina, Columbia, SC 29208 Office (803)777-8831, FAX (803)777-8833, Email [EMAIL PROTECTED] -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 11:50 AM To: [EMAIL PROTECTED] Subject: RE: Struts Action Scripting One of the stated benefits is that you don't have to reload your app to see changes in actions. I think the idea is neat but would never use it because Tomcat reloads my app in 3 seconds. David Then you get back to a spageti application ... :) José. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 5:49 PM To: Struts Users Mailing List Subject: Struts Action Scripting Just found this at http://www.alphaworks.ibm.com/tech/strutsscripting From their Overview: The ScriptedAction is a Struts Action class that uses BSF (Bean Scripting Framework) to enable Struts developers to create Struts Actions in the language of their choice. Supported languages include: JavaScript, Jython, Jacl, ActiveScript, PerlScript and others. When specifying the type of an action, the ScriptedAction is specified and the parameter attribute is used to tell the ScriptedAction which script to load and execute. The ScriptedAction uses BSF to setup the script runtime environment with declared variables for the arguments typically passed to the execute method of an action, as well as a context object that provides a way for the script to specify the forward for the action to return. Currently, there is some function for customizing the execution environment of scripts to make the scripting of Actions easier and friendlier by allowing the definition of predefined variables and functions available to all scripts. Future plans include an extension mechanism to allow for the registration of new BSF engines and file extensions for different languages. Cheers, Gustavo DISCLAIMER This e-mail and any attachment thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) by other persons than the designated recipient(s) is prohibited. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer. Thank you for your cooperation. For further information about Proximus mobile phone services please see our website at http://www.proximus.be or refer to any Proximus agent. --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - 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 Action Scripting
Ant's fine for building a production project but if it's taking a long time to compile everything you should consider using a faster development tool. David I use ant. ^^ Ed Yu, Senior Solutions Architect (IBM Certified AIX Administrator), Advanced Solutions Group, Physics Dept., University of South Carolina, Columbia, SC 29208 Office (803)777-8831, FAX (803)777-8833, Email [EMAIL PROTECTED] -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 1:06 PM To: [EMAIL PROTECTED] Subject: RE: Struts Action Scripting True, but I think recompiling is the time consuming part! Recompiling the actions or jsps? If it takes you more than 1 second to compile an action, you're using the wrong tool. Eclipse performs incremental compilation every time you save a .java file so you don't even notice that it's compiling. I've had people ask me how to compile and build projects in eclipse because they didn't realize it was all automated for them! David I've also done a small integration project using BeanShell scripting (for actions), if anyone is interested, I'll be willing to share it! ^ ^ Ed Yu, Senior Solutions Architect (IBM Certified AIX Administrator), Advanced Solutions Group, Physics Dept., University of South Carolina, Columbia, SC 29208 Office (803)777-8831, FAX (803)777-8833, Email [EMAIL PROTECTED] -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 11:50 AM To: [EMAIL PROTECTED] Subject: RE: Struts Action Scripting One of the stated benefits is that you don't have to reload your app to see changes in actions. I think the idea is neat but would never use it because Tomcat reloads my app in 3 seconds. David Then you get back to a spageti application ... :) José. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 5:49 PM To: Struts Users Mailing List Subject: Struts Action Scripting Just found this at http://www.alphaworks.ibm.com/tech/strutsscripting From their Overview: The ScriptedAction is a Struts Action class that uses BSF (Bean Scripting Framework) to enable Struts developers to create Struts Actions in the language of their choice. Supported languages include: JavaScript, Jython, Jacl, ActiveScript, PerlScript and others. When specifying the type of an action, the ScriptedAction is specified and the parameter attribute is used to tell the ScriptedAction which script to load and execute. The ScriptedAction uses BSF to setup the script runtime environment with declared variables for the arguments typically passed to the execute method of an action, as well as a context object that provides a way for the script to specify the forward for the action to return. Currently, there is some function for customizing the execution environment of scripts to make the scripting of Actions easier and friendlier by allowing the definition of predefined variables and functions available to all scripts. Future plans include an extension mechanism to allow for the registration of new BSF engines and file extensions for different languages. Cheers, Gustavo DISCLAIMER This e-mail and any attachment thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) by other persons than the designated recipient(s) is prohibited. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer. Thank you for your cooperation. For further information about Proximus mobile phone services please see our website at http://www.proximus.be or refer to any Proximus agent. --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
Re: Struts Action Scripting
It's not about compilation time. It's about ability to reload code on-the fly. Here Eclipse do not helps you. Compilation time can be rather small. Time to reload all application will be unacceptable, I just need to reload one action. On Thu, 12 Jun 2003 11:06:20 -0600, David Graham [EMAIL PROTECTED] wrote: True, but I think recompiling is the time consuming part! Recompiling the actions or jsps? If it takes you more than 1 second to compile an action, you're using the wrong tool. Eclipse performs incremental compilation every time you save a .java file so you don't even notice that it's compiling. I've had people ask me how to compile and build projects in eclipse because they didn't realize it was all automated for them! David I've also done a small integration project using BeanShell scripting (for actions), if anyone is interested, I'll be willing to share it! ^^ Ed Yu, Senior Solutions Architect (IBM Certified AIX Administrator), Advanced Solutions Group, Physics Dept., University of South Carolina, Columbia, SC 29208 Office (803)777-8831, FAX (803)777-8833, Email [EMAIL PROTECTED] -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 11:50 AM To: [EMAIL PROTECTED] Subject: RE: Struts Action Scripting One of the stated benefits is that you don't have to reload your app to see changes in actions. I think the idea is neat but would never use it because Tomcat reloads my app in 3 seconds. David Then you get back to a spageti application ... :) Jos. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 5:49 PM To: Struts Users Mailing List Subject: Struts Action Scripting Just found this at http://www.alphaworks.ibm.com/tech/strutsscripting From their Overview: The ScriptedAction is a Struts Action class that uses BSF (Bean Scripting Framework) to enable Struts developers to create Struts Actions in the language of their choice. Supported languages include: JavaScript, Jython, Jacl, ActiveScript, PerlScript and others. When specifying the type of an action, the ScriptedAction is specified and the parameter attribute is used to tell the ScriptedAction which script to load and execute. The ScriptedAction uses BSF to setup the script runtime environment with declared variables for the arguments typically passed to the execute method of an action, as well as a context object that provides a way for the script to specify the forward for the action to return. Currently, there is some function for customizing the execution environment of scripts to make the scripting of Actions easier and friendlier by allowing the definition of predefined variables and functions available to all scripts. Future plans include an extension mechanism to allow for the registration of new BSF engines and file extensions for different languages. Cheers, Gustavo DISCLAIMER This e-mail and any attachment thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) by other persons than the designated recipient(s) is prohibited. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer. Thank you for your cooperation. For further information about Proximus mobile phone services please see our website at http://www.proximus.be or refer to any Proximus agent. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - 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] _ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Igor Shabalov Director of Engineering Exadel Inc. http://www.exadel.com
Re: Struts Action Scripting
Once again - ability to reload single action will be very benefitial. On Thu, 12 Jun 2003 11:15:31 -0600, David Graham [EMAIL PROTECTED] wrote: Ant's fine for building a production project but if it's taking a long time to compile everything you should consider using a faster development tool. David I use ant. ^^ Ed Yu, Senior Solutions Architect (IBM Certified AIX Administrator), Advanced Solutions Group, Physics Dept., University of South Carolina, Columbia, SC 29208 Office (803)777-8831, FAX (803)777-8833, Email [EMAIL PROTECTED] -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 1:06 PM To: [EMAIL PROTECTED] Subject: RE: Struts Action Scripting True, but I think recompiling is the time consuming part! Recompiling the actions or jsps? If it takes you more than 1 second to compile an action, you're using the wrong tool. Eclipse performs incremental compilation every time you save a .java file so you don't even notice that it's compiling. I've had people ask me how to compile and build projects in eclipse because they didn't realize it was all automated for them! David I've also done a small integration project using BeanShell scripting (for actions), if anyone is interested, I'll be willing to share it! ^ ^ Ed Yu, Senior Solutions Architect (IBM Certified AIX Administrator), Advanced Solutions Group, Physics Dept., University of South Carolina, Columbia, SC 29208 Office (803)777-8831, FAX (803)777-8833, Email [EMAIL PROTECTED] -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 11:50 AM To: [EMAIL PROTECTED] Subject: RE: Struts Action Scripting One of the stated benefits is that you don't have to reload your app to see changes in actions. I think the idea is neat but would never use it because Tomcat reloads my app in 3 seconds. David Then you get back to a spageti application ... :) Jos. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 5:49 PM To: Struts Users Mailing List Subject: Struts Action Scripting Just found this at http://www.alphaworks.ibm.com/tech/strutsscripting From their Overview: The ScriptedAction is a Struts Action class that uses BSF (Bean Scripting Framework) to enable Struts developers to create Struts Actions in the language of their choice. Supported languages include: JavaScript, Jython, Jacl, ActiveScript, PerlScript and others. When specifying the type of an action, the ScriptedAction is specified and the parameter attribute is used to tell the ScriptedAction which script to load and execute. The ScriptedAction uses BSF to setup the script runtime environment with declared variables for the arguments typically passed to the execute method of an action, as well as a context object that provides a way for the script to specify the forward for the action to return. Currently, there is some function for customizing the execution environment of scripts to make the scripting of Actions easier and friendlier by allowing the definition of predefined variables and functions available to all scripts. Future plans include an extension mechanism to allow for the registration of new BSF engines and file extensions for different languages. Cheers, Gustavo DISCLAIMER This e-mail and any attachment thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) by other persons than the designated recipient(s) is prohibited. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer. Thank you for your cooperation. For further information about Proximus mobile phone services please see our website at http://www.proximus.be or refer to any Proximus agent. --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe
Re: Struts Action Scripting
Why reload all application in 3 seconds - my application tomcat reloading much longer and not evry time :-( - if I can reload just that action in 0.3 seconds bullet proof? On Thu, 12 Jun 2003 09:49:31 -0600, David Graham [EMAIL PROTECTED] wrote: One of the stated benefits is that you don't have to reload your app to see changes in actions. I think the idea is neat but would never use it because Tomcat reloads my app in 3 seconds. David Then you get back to a spageti application ... :) Jos. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 5:49 PM To: Struts Users Mailing List Subject: Struts Action Scripting Just found this at http://www.alphaworks.ibm.com/tech/strutsscripting From their Overview: The ScriptedAction is a Struts Action class that uses BSF (Bean Scripting Framework) to enable Struts developers to create Struts Actions in the language of their choice. Supported languages include: JavaScript, Jython, Jacl, ActiveScript, PerlScript and others. When specifying the type of an action, the ScriptedAction is specified and the parameter attribute is used to tell the ScriptedAction which script to load and execute. The ScriptedAction uses BSF to setup the script runtime environment with declared variables for the arguments typically passed to the execute method of an action, as well as a context object that provides a way for the script to specify the forward for the action to return. Currently, there is some function for customizing the execution environment of scripts to make the scripting of Actions easier and friendlier by allowing the definition of predefined variables and functions available to all scripts. Future plans include an extension mechanism to allow for the registration of new BSF engines and file extensions for different languages. Cheers, Gustavo DISCLAIMER This e-mail and any attachment thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) by other persons than the designated recipient(s) is prohibited. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer. Thank you for your cooperation. For further information about Proximus mobile phone services please see our website at http://www.proximus.be or refer to any Proximus agent. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Igor Shabalov Director of Engineering Exadel Inc. http://www.exadel.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]