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:
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
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
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
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
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
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
>
> ---
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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?
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.
26 matches
Mail list logo