Javascript & CSS obfuscator and packing

2009-05-22 Thread David Canos
Hi guys I'm looking for a plugin or a lib that packs my Javascript and CSS in everydeploy, Google gives nothing useful. if there's nothing done I would be happy to do it but I cant do it alone.

Re: Javascript & CSS obfuscator and packing

2009-05-22 Thread Steven Yang
So what you mean is you want the process to be automated?just as if you press Ctrl+b in Eclipse, its compiles your .java to .class? but instead turns your .js to .min.js? or are you simply looking for something to obfuscate your scripts?

Specify DevMode Dynamically at Runtime

2009-05-22 Thread laserjim
Hello, I have a struts application. Sometimes, at runtime, I decide I want to enable dev mode. Modifying struts.properties requires redeploying the webapp. Is there a way to enable devmode dynamically? Thanks! -- View this message in context: http://www.nabble.com/Specify-DevMode-Dynamicall

Re: Specify DevMode Dynamically at Runtime

2009-05-22 Thread laserjim
SOLVED: When you're in debug mode, add a dispatch initialization listener to the Struts Dispatch class; the dispatch listener can call setDevMode("true");. Tested, works, Struts 2.1.6 laserjim wrote: > > Hello, > > I have a struts application. Sometimes, at runtime, I decide I want to > ena

Re: Specify DevMode Dynamically at Runtime

2009-05-22 Thread Norris Shelton
Code, please. Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Shelton Consulting, LLC ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton From: laserjim To: user@struts.apache.org Sent: Friday, May 22, 2009 8:42:42 AM Subject: Re: Specify D

Re: JSON plugin ignoring includeProperties parameter

2009-05-22 Thread Andras Balogh
Hi John, I had the same problem with excludeProperties, what worked for me is to add the param to the interceptor-ref tag and NOT to the result: true .*Collection Best regards, Andras. john.c.cartwri...@noaa.gov wrote: Hello All, I'm trying to use jsonplugin 0.32 w/ struts 2.0.14

Re: JSON plugin ignoring includeProperties parameter

2009-05-22 Thread Musachy Barroso
Please don't send private emails following up a thread. This is not a test case for a bug, this is commented code. I am not saying that there isn't a bug there, maybe there is. musachy On Fri, May 22, 2009 at 9:50 AM, Martin Gainty wrote: > //rather lengthy testcase for includeProperties > > com

How to customize with struts2.

2009-05-22 Thread sharath karnati
Hi All,       I'm having 'EmployeeBean' which is having below properties      empNo    empName    empDOJ    empDept      In database we are having 'EMPLOYEE' table which is having employee records.      In struts2, we are having 'EmployeeAction' where

How to customize with struts2.

2009-05-22 Thread sharath karnati
Hi All,       I'm having 'EmployeeBean' which is having below properties      empNo    empName    empDOJ    empDept      In database we are having 'EMPLOYEE' table which is having employee records.      In struts2, we are having 'EmployeeAction' where

How to customize with struts2.

2009-05-22 Thread sharath karnati
Hi All,       I'm having 'EmployeeBean' which is having below properties      empNo    empName    empDOJ    empDept      In database we are having 'EMPLOYEE' table which is having employee records.      In struts2, we are having 'EmployeeAction' where

Re: Preload of database data?

2009-05-22 Thread Rene Gielen
The main downside is that you will have nothing injected into your action by the time the constructor code is executed. Also, the params interceptor (as others placed before preparable) should not have taken any effects when action is instantiated. Another advantage of the prepare interceptor is th

Re: JSON plugin ignoring includeProperties parameter

2009-05-22 Thread John Cartwright
Thanks for your reply Musachy. I'm using the JSON annotation to modify the output, e.g. @JSON(name="items") public List getFeatures() { return (features); } Yes, I am getting a result. It's just that all the fields are being output rather than just the ones listed in the includeProperties.

Re: JSON plugin ignoring includeProperties parameter

2009-05-22 Thread Musachy Barroso
exclude/include properties have to match the java name of the properties, not the name in the output. Try using "features.*\.name" as the regular expression. musachy On Fri, May 22, 2009 at 10:48 AM, John Cartwright wrote: > Thanks for your reply Musachy. > > I'm using the JSON annotation to mod

Re: JSON plugin ignoring includeProperties parameter

2009-05-22 Thread John Cartwright
Thank you for your suggestion. However, using "features.*\.name" still does not recognize the property - it is not included in the output. Likewise, removing the annotation does not help either. --john Musachy Barroso wrote: exclude/include properties have to match the java name of the pr

Re: JSON plugin ignoring includeProperties parameter

2009-05-22 Thread John Cartwright
Thanks for the suggestion Dale, but removing the whitespace does not seem to make a difference. --john Dale Newfield wrote: john.c.cartwri...@noaa.gov wrote: items.*\.name Can someone please help me w/ what might be wrong? Maybe the whitespace? Doe

Re: JSON plugin ignoring includeProperties parameter

2009-05-22 Thread John Cartwright
Thanks for your suggestion Andras. Strangely that approach is not working for me. Ideally, I'd like to have the option of different fields included for different actions w/ in the same package. --john Andras Balogh wrote: Hi John, I had the same problem with excludeProperties, what worked

How to customize with Struts2.

2009-05-22 Thread sharath karnati
Hi All,       I'm having 'EmployeeBean' which is having below properties      empNo    empName    empDOJ    empDept      In database we are having 'EMPLOYEE' table which is having employee records.      In struts2, we are having 'EmployeeAction' where

Re: Javascript & CSS obfuscator and packing

2009-05-22 Thread David Canos
yes, an automated way. And also mix all js file into one only. 2009/5/22 Steven Yang > So what you mean is you want the process to be automated?just as if you > press Ctrl+b in Eclipse, its compiles your .java to .class? > but instead turns your .js to .min.js? > > or are you simply looking f

Re: Javascript & CSS obfuscator and packing

2009-05-22 Thread Dale Newfield
David Canos wrote: yes, an automated way. And also mix all js file into one only. http://lmgtfy.com/?q=jsmin -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts

Re: Javascript & CSS obfuscator and packing

2009-05-22 Thread Paweł Wielgus
Hi Dale, what a great site :-) Sweet. Best greetings, Paweł Wielgus. 2009/5/22 Dale Newfield : > David Canos wrote: >> >> yes, an automated way. >> And also mix all js file into one only. > > http://lmgtfy.com/?q=jsmin > > -Dale > > ---

Convention Plugin - default action

2009-05-22 Thread Martin Uhlir
Hello, looking at the documentation of convention plugin http://struts.apache.org/2.1.6/docs/convention-plugin.html#ConventionPlugin-Actionannotation I found this interesting feature "Default action and result handling (i.e. /products will try com.example.actions.Products as well as com.examp

Re: Convention Plugin - default action

2009-05-22 Thread Martin Uhlir
Hm, already solved. The problem was that I previously set "struts.action.extension" to my own extension. Disabling this property solved my problem. Martin wrote: Hello, looking at the documentation of convention plugin http://struts.apache.org/2.1.6/docs/convention-plugin.html#ConventionPl

Re: Specify DevMode Dynamically at Runtime

2009-05-22 Thread laserjim
Pretty straight forward, the source code seems unnecessary given my answer, but whatever: I use a context listener that calls this line when the apache context is active... public void contextInitialized (ServletContextEvent sce) { if(!Server.isLive()) Dispatcher.addDispatcherListener(new

Re: Preload of database data?

2009-05-22 Thread Luis Medina
Thx! 4 the tip On Fri, May 22, 2009 at 9:46 AM, Rene Gielen wrote: > The main downside is that you will have nothing injected into your > action by the time the constructor code is executed. Also, the params > interceptor (as others placed before preparable) should not have taken > any effects w

Problem with LocaleAction

2009-05-22 Thread Ed
Hi, my links to change local dont work !!, here my code: --- links: Español · English --- form-beans: type="org.apache.struts.action.DynaActionForm"> --- actions: Also having the corresponding ApplicationResources_en_US.propert

Re: JSON plugin ignoring includeProperties parameter

2009-05-22 Thread Dave Newton
John Cartwright wrote: Thanks for your suggestion Andras. Strangely that approach is not working for me. Ideally, I'd like to have the option of different fields included for different actions w/ in the same package. You can do that by configuring the interceptor on a per-action basis: