Re: How to stop action getting called on click of refresh button

2009-01-31 Thread ManiKanta G
> > So is there any way to stop calling the action/ have one flag on action > Which determines this part of code in action need not be executed on click > on refresh button. > > For this I think Token and/or Token Session interceptors will do the magic. http://struts.apache.org/2.1.6/docs/token-in

Re: validation with simple theme

2009-01-31 Thread Srikanth Goud
Hi, I extended simple theme and defined my own theme. In that coreheadercontrol.ftl that i added and done some work <#assign hasFieldErrors = parameters.name?exists && fieldErrors?exists && fieldErrors[parameters.name]?exists/> <#if hasFieldErrors> <#list fieldErrors[parameters.name]

RE: [S2] Race condition in SpringObjectFactory class loader

2009-01-31 Thread Martin Gainty
Agreed! its *remotely* possible that this is a Classloader error ..system classloader and app classloader both attempting to load different classes This sort of thing shows up in weblogic/glassfish and websphere app servers If you dont have it ..take a look at downloading the class here http://w

Re: interceptor redirection problem

2009-01-31 Thread Dave Newton
Martin Gainty wrote: the problem is you are relying on your own ServletFilter It's a Struts 2 interceptor. this is possibly a configuration problem please display hibernate.xml,hibernate.properties The issue is with the interceptor and not knowing that the result is executed within the inv

RE: interceptor redirection problem

2009-01-31 Thread Martin Gainty
the problem is you are relying on your own ServletFilter this is possibly a configuration problem please display hibernate.xml,hibernate.properties Fairly comprehensive example of configuring hibernate with struts is located at http://www.hibernate.org/105.html Martin _

Re: [S2] Avoiding nested tags / Using Sitemesh properties within Struts 2 tags

2009-01-31 Thread Randy Burgess
I know this thread is a little old but maybe someone will find this useful. The variable in this case, listEditEnabled, has to do with enabling editing of an ajaxified list of items. I added a metatag to pages that I don't want listEditEnabled with a content value of false, otherw

Re: [S2] Race condition in SpringObjectFactory class loader

2009-01-31 Thread David Erickson
On Sat, Jan 31, 2009 at 8:38 AM, Dale Newfield wrote: > David Erickson wrote: >> >> java.lang.LinkageError: loader (instance of >> org/apache/catalina/loader/WebappClassLoader): attempted duplicate >> class definition for name: "com/x/y/ZAction" > > I believe this error is thrown when there's mor

Re: Maven and Struts 2 Stack

2009-01-31 Thread Wendy Smoak
On Sat, Jan 31, 2009 at 7:31 AM, wrote: > Are any of you using the Eclipse Maven plug-in? Also, is > http://mvnrepository.com an aggregate source for POM's? As far as I know, it's just a search site, it doesn't serve the artifacts as a repo for Maven to automatically download from. Maven alr

Re: Maven and Struts 2 Stack

2009-01-31 Thread Dave Newton
stanl...@gmail.com wrote: I am looking for a "seed" POM like the one you describe. Does it contain gray poupon by chance? I'm committing a new archetype-blank today along with some minor documentation; it's pretty basic. I don't think I'll have time to update archetype-starter in Feb but I'l

Re: interceptor redirection problem

2009-01-31 Thread Dave Newton
Please start new threads for new issues. François Rouxel wrote: I want to show an error message if it's impossible to commit. > But it seems my action still display the 'success' result. public String intercept(ActionInvocation invocation) throws Exception { String retour = Actio

Re: [S2] Race condition in SpringObjectFactory class loader

2009-01-31 Thread Dale Newfield
David Erickson wrote: java.lang.LinkageError: loader (instance of org/apache/catalina/loader/WebappClassLoader): attempted duplicate class definition for name: "com/x/y/ZAction" I believe this error is thrown when there's more than one version of the .class available in the classpath. Are yo

Re: Maven and Struts 2 Stack

2009-01-31 Thread Edwin Quita
hi Scott, this is what i typically do for creating a skeleton struts2 project: 1. create a blank web application project from the generic maven archetype listing (mvn archetype:generate) 2. i select the appropriate POM dependencies from struts2's sample application http://struts.apache.org/2.1.2

Re: struts2 and tiles

2009-01-31 Thread Tom Pop
Thanks, but the last paragraph was what I was asking for - I want to know, how to get localized message from bundle in scriptlet in JSP because I didn't find other way how to insert localized message from bundle to tiles tag - and globaly to any tag from some special tag library, where I can't

Re: [S2] s:action in value stack?

2009-01-31 Thread Wolfgang Knauf
Darn, "Ctrl+Enter" is no good So, one more try: Musachy Barroso wrote: what does prints in the action result? I updated my sample (http://www.informatik.fh-wiesbaden.de/~knauf/private/struts2/Struts2Action.war) so that the JSP outputs this: Inside s:action: Property "id": Inside

Re: Maven and Struts 2 Stack

2009-01-31 Thread stanlick
Thanks Dave -- I am looking for a "seed" POM like the one you describe. Does it contain gray poupon by chance? Scott On Fri, Jan 30, 2009 at 11:53 AM, Dave Newton wrote: > stanlick wrote: > >> I am SO DONE with mucking around in dependencies that I am about to >> scream! Until recently, I tho

Re: Maven and Struts 2 Stack

2009-01-31 Thread stanlick
Thanks boyz -- Are any of you using the Eclipse Maven plug-in? Also, is http://mvnrepository.com an aggregate source for POM's? Lastly, is there a buffet line POM builder where you can select the stack you desire and click GO? It seems to me the combination/permutation of POMs spread across th

interceptor redirection problem

2009-01-31 Thread François Rouxel
Hi, here's my code. I want to show an error message if it's impossible to commit. But it seems my action still display the 'success' result. can anybody help me? public String intercept(ActionInvocation invocation) throws Exception { String retour = Action.ERROR; try {

Re: validation with simple theme

2009-01-31 Thread Felipe Fraga
Hi, It is possible to create a new theme extending the one you are using, overriding the template for the fielderror tag. http://struts.apache.org/2.0.14/docs/extending-themes.html Or, you can override the fielderror for the theme without creating a new one. You just need to create a template/th

Re: struts2 and tiles

2009-01-31 Thread Jeromy Evans
On 31/01/2009, at 6:23 AM, Tom Pop wrote: Hello, please, can you show me on this example how to convert tiles from struts1 to struts2? This example defines localized page title attribute passed to template in struts1: type="org.apache.struts.util.MessageResources"/> scope="session" />

[S2] Race condition in SpringObjectFactory class loader

2009-01-31 Thread David Erickson
Hi all, I was just doing a test upgrade from Struts 2.0.11.1 to 2.1.6, with the Spring plugin. I have a website the issues a couple back to back ajax requests to the same Action class (different methods), and the first time I call this Action after starting up the server I get linkage duplication e

Re: textbox showing currency default value

2009-01-31 Thread Paolo Niccolò Giubelli
This is my idea: jsp should convert my float value to a String so to display it in my textbox. I suppose jsp uses a subclass of NumberFormat to do so... may I change this behaviour so to use DecimalFormat.getCurrencyFormat()? Thank you in advance... Paolo Paolo Niccolò Giubelli ha scritto: Th

Re: textbox showing currency default value

2009-01-31 Thread Paolo Niccolò Giubelli
There's no method in the Action class returning a String. Can you help me? Thank you so much, Paolo Zheng, Qiang ha scritto: You need to implement that in action. -Original Message- From: Paolo Niccolò Giubelli [mailto:paoloniccolo.giube...@itestense.it] Sent: Friday, January 30, 2009 2