Random ClassCastException : I'm expecting Long, Struts gives me String on some servers...

2009-01-29 Thread mleneveut
Hi all, I have a very strange thing. I have a multiple select in my JSP, and a ListLong of ids in my Action. When I submit the form, I iterate on that List of Long, and I have this error : java.lang.ClassCastException: java.lang.String Struts has String in the List instead of Long. The strange

Re: Random ClassCastException : I'm expecting Long, Struts gives me String on some servers...

2009-01-29 Thread Ralf Fischer
Hi, On Thu, Jan 29, 2009 at 10:06 AM, mleneveut mlenev...@abusinessware.com wrote: Hi all, I have a very strange thing. I have a multiple select in my JSP, and a ListLong of ids in my Action. When I submit the form, I iterate on that List of Long, and I have this error :

Re: Problem with Dojo in struts2

2009-01-29 Thread Jeromy Evans
On 29/01/2009, at 6:36 PM, Srikanth Goud wrote: Hi, I am presently working on struts 2.0. Whenever i use strutsUI tags(with theme=ajax) nothing is rendered on page. Have a look at the source of the page to see what's rendered. Is it the page you expected and does it contain javascript

Re: Issue getting autocompleter value in javascript

2009-01-29 Thread sheva j
Hi, I am using struts2.0.11 for my project. I am using struts xml validation. I need to validate a date field(I am not using struts date picker) in dd/MM/ format, but struts is validating against MM/dd/ format. Is that possible to validate against dd/MM/ format? If

How to replace {0} with real value by using addFieldError(key, string)?

2009-01-29 Thread Emi Lu
Good morning, With struts2.1.6, In package.properties: empty.error={0} cannot be empty. Setup field error as: this.addFieldError(username.empty, getText(empty.error)); But is there a way, I can replace {0} with username? Thanks a lot! -- Lu Ying

Re: Problem with Dojo in struts2

2009-01-29 Thread Dave Newton
Srikanth Goud wrote: I am presently working on struts 2.0. Whenever i use strutsUI tags(with theme=ajax) nothing is rendered on page. I have done like this:- In web.xml filter filter-namestruts-cleanup/filter-name

Re: How to replace {0} with real value by using addFieldError(key, string)?

2009-01-29 Thread Dave Newton
Emi Lu wrote: Good morning, With struts2.1.6, In package.properties: empty.error={0} cannot be empty. Setup field error as: this.addFieldError(username.empty, getText(empty.error)); But is there a way, I can replace {0} with username? Answering specifically: use one of the other

Re: Random ClassCastException : I'm expecting Long, Struts gives me String on some servers...

2009-01-29 Thread mleneveut
Hi, Thanks for your reply. What I can't understand is why it works in some environments, and no others. The war is the same. And why do you say that the generic type of the idsCommerciaux list is not available at runtime ? I defined it as a ListLong in the Action. So Struts should know that it

Re: IE ajax theme form data problem

2009-01-29 Thread Robert Dietrick
Thanks. That did it. On Wed, Jan 28, 2009 at 10:53 PM, Jeromy Evans jeromy.ev...@blueskyminds.com.au wrote: Try turning off the loading text. It's a guess, but it sounds similar to the loadingText bug due to Dojo in IE. If the target div contains the source form and loadingText enabled, the

Re: Random ClassCastException : I'm expecting Long, Struts gives me String on some servers...

2009-01-29 Thread Dale Newfield
mleneveut wrote: What I can't understand is why it works in some environments, and no others. The war is the same. Probably because there were known bugs in 2.1.0 (both struts and xwork). As such, it was never intended for general use. The first GA (General Availability) 2.1.x was 2.1.6.

Attribute OGNL evaluation issue on struts tag in tag file

2009-01-29 Thread QZ
We were using JSP EL expression to evaluate parameter value passed from a custom tag to struts tag defined in that custom tag file. After we upgraded Struts from 2.0.9 to 2.0.14, we had to modifed struts tag defined in our tag file since JSP EL expression is allowed any more in struts tag because

Attribute OGNL evaluation issue on struts tag in tag file

2009-01-29 Thread Zheng, Qiang
We were using JSP EL expression to evaluate parameter value passed from a custom tag to struts tag. After we upgraded Struts from 2.0.9 to 2.0.14, we had to modify struts tag defined in our tag file since JSP EL expression is not allowed any more in struts tag because of changes from WW-2107.

Re: struts 2.1.6 conventions plugin questions

2009-01-29 Thread Allen Lee
Hi Wes, I have an AuthenticationInterceptor that checks for a Spring-injected session scoped bean for authentication information (though I'm not sure if this is actually thread-safe, I should probably check on that... if Interceptors in Struts are singletons then it'd need to be a ThreadLocal,

Re: struts 2.1.6 conventions plugin questions

2009-01-29 Thread Allen Lee
Oops, sent before I completed a sentence fragment. Then any . should be Then any actions that require authentication specify @ParentPackage(secured) to signify that they want the AuthenticationInterceptor in place. I just tried it using only the defaultStack as well but still no luck... I'll

What's the best alternative after Struts2 Dojo PlugIn deprecate?

2009-01-29 Thread jwl
Any suggestion for the alternative AJAX framework for Struts2 after they deprecate Dojo PlugIn? I know there are many out there, but what's the best one to integrate with Struts2? Any suggestion or analysis is highly appreciated! -- View this message in context:

Re: What's the best alternative after Struts2 Dojo PlugIn deprecate?

2009-01-29 Thread Becky . L . O'Sullivan
We've been using GWT and Musachy's Struts 2 GWT plugin, and other than a few gotchas it works well. It hasn't been updated in a looong time though (hint hint - got a couple of open bugs :) ). GWT has met all of our expectations and, for Java developers, is far easier to work with than Dojo. -B

Re: [S2] possible bug in 2.1.6 w/ action chaining

2009-01-29 Thread Becky . L . O'Sullivan
Thanks, bug WW-2970 was submitted along with a test case. -B Musachy Barroso musa...@gmail.co

Re: What's the best alternative after Struts2 Dojo PlugIn deprecate?

2009-01-29 Thread Musachy Barroso
I hear that guy is pretty lazy :). Drop me an email and I will give you commit rights. musachy On Thu, Jan 29, 2009 at 5:07 PM, Becky.L.O'sulli...@healthnet.com wrote: We've been using GWT and Musachy's Struts 2 GWT plugin, and other than a few gotchas it works well. It hasn't been updated

Re: What's the best alternative after Struts2 Dojo PlugIn deprecate?

2009-01-29 Thread Chris Boldon
What IDE setup are you using to run Struts2 and GWT out of curiosity? Is there any IDE that does both really well together? Plugins? On 1/29/09, Becky.L.O'sulli...@healthnet.combecky.l.o%27sulli...@healthnet.com Becky.L.O'sulli...@healthnet.com becky.l.o%27sulli...@healthnet.com wrote: We've

Re: [S2] possible bug in 2.1.6 w/ action chaining

2009-01-29 Thread Musachy Barroso
Thanks for the testcase. I am looking at it, and there is a very similar case in showcase, but it seems fine. http://localhost:8080/struts2-showcase/actionchaining/actionChain1!input the output is: Action Chain 1 Property 1: Property Set In Action Chain 1 Action Chain 2 Property 1: Property Set

Re: [S2] possible bug in 2.1.6 w/ action chaining

2009-01-29 Thread Musachy Barroso
I dropped your classes into showcase, and I am getting this: Action1.execute() Action1.execute() : getPageName() = null Action1.execute() : getPageName() = PageNameFromAction1 Action2.execute() Action2.execute() : getPageName() = PageNameFromAction1 which seems ok. musachy On Thu, Jan 29, 2009

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

2009-01-29 Thread Wolfgang Knauf
Musachy Barroso wrote: Yes, during the result of the invoked action, the invoked action will be on the top of the stack, but it is available by name in the stack, only outside the action tag. I cannot confirm the first half of this (see my sample). A action called by s:action seems to be

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

2009-01-29 Thread Musachy Barroso
what does s:property value=top / prints in the action result? musachy On Thu, Jan 29, 2009 at 5:53 PM, Wolfgang Knauf his-metal...@freenet.de wrote: Musachy Barroso wrote: Yes, during the result of the invoked action, the invoked action will be on the top of the stack, but it is available by

AUTO: Ronni Bjelosevic is out of the office. (returning 09.02.2009)

2009-01-29 Thread Ronni . Bjelosevic
I am out of the office until 09.02.2009. Falls ihr Thema vorher behandelt werden soll bitte ich Sie den UAG-IT Helpdesk zu kontaktieren um eine schnellstmögliche Bearbeitung ihrer Anfragen zu gewährleisten. (DW Helpdesk: 2100). Mit freundlichen Grüßen Ronni Bjelosevic If your subject should be

Struts 2 Type conversion refuses 0.0 for a double?

2009-01-29 Thread san-ho-zay
I have a Struts2 action with a double property called amount. No validation rules on the action as yet. When I enter 0.0 into the amount on the JSP page, it displays an Invalid field value for field amount error. If I blank the amount it gets through the conversion and 0.0 gets stored in the

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

2009-01-29 Thread Musachy Barroso
Ok, let me try to clarify this, if the result of some action, lets call it firstAction contains: s:action var=secondAction ... !-- tag content -- s:/action while the result of secondAction is executed, secondAction will be on top of the stack, and it is not available by name in the stack.

Re: [S2] possible bug in 2.1.6 w/ action chaining

2009-01-29 Thread Becky . L . O'Sullivan
I'm guilty of pawning this task off to someone else. I'll have him take a look at showcase and our example and get back to the group. Thanks for checking this out so quickly. Maybe it's us. :) -B Musachy

Re: What's the best alternative after Struts2 Dojo PlugIn deprecate?

2009-01-29 Thread Becky . L . O'Sullivan
We use Eclipse, but there's no IDE setup necessary and no special IDE plugins. The beauty of GWT is it's all Java, so you just drop in the GWT JARs and start using the APIs. Naturally there's a bit of a learning curve to understand the server-side components, how GWT handles asynchronous calls

persisting data across different form

2009-01-29 Thread overtakerx
Hi If I have formA.java and formB.java with its corresponding actionA and actionB classes, and inside formA I have a variable x = 10; and I would like to transfer that to formB when actionA forwards to actionB what's the best way to do it besides using http session ? would this be considered

Re: What's the best alternative after Struts2 Dojo PlugIn deprecate?

2009-01-29 Thread Struts Two
Why don't you use dojo famework directly? I am using dojo 1.2.3 with struts 2. You have much much more control and freedom in doing what you want to do. It may only take you a week or two of learining curve if you already do not know about the framework. --- On Thu, 1/29/09, jwl

Re: [S2] possible bug in 2.1.6 w/ action chaining

2009-01-29 Thread Musachy Barroso
Nope I haven't, I started by looking at showcase and dropping your classes there. I will give em a try if you don't see anything wrong in showcase. musachy On Thu, Jan 29, 2009 at 6:15 PM, Becky.L.O'sulli...@healthnet.com wrote: Musachy, In the bug report, under Test 1 instructions it's

Struts 2.1.6, Sitemesh FreeMarkerPageFilter

2009-01-29 Thread Markus Doring
Hi, I am trying Struts 2.1.6 with Freemarker Sitemesh decorators. I am getting a NPE in the PageFilter HeadTag class. When debugging it seems the getPage() call in the class returns Null. This only happens for the decorator:head and not for the body or title (If I remove the @decorator.head/ from

Casting an action to an interface

2009-01-29 Thread Andy Sykes
Hi all, I've written an interceptor with a PreResultListener that gets the action with ActionInvocation.getAction(), then casts it to an interface (Parseable, in this case). This lets me call a particular method on the action just prior to the result being rendered. The action implements

Re: Casting an action to an interface

2009-01-29 Thread Wes Wannemacher
On Thursday 29 January 2009 19:49:39 Andy Sykes wrote: Hi all, I've written an interceptor with a PreResultListener that gets the action with ActionInvocation.getAction(), then casts it to an interface (Parseable, in this case). This lets me call a particular method on the action just prior

Instantiating LoginAction class without loginForm

2009-01-29 Thread Bhatt, Prema
Hi, I'm very new to JSP, Java and struts. How to instantiate LoginAction class without using a form. I've an action to do in the jsp file and defined what action to do in the strut-config.xml file. Earlier in our application, the LoginAction gets instantiated automatically once the

Re: struts 2.1.6 conventions plugin questions

2009-01-29 Thread Allen Lee
Ok, I just figured out the problem I think - it occurs when OGNL tries to parse a negative double. I've been able to reproduce it in a small test app that you can unpack and run via mvn jetty:run at http://libai.la.asu.edu/src/tdartest.tar.bz2 -- it looks like any negative numbers fails to get

conventions @Result params support OGNL exprs

2009-01-29 Thread Allen Lee
Hi there, After saving a persistent resource I'd like to redirect after the post to a view page that views the resource. I'm trying to do something along the lines of: @Action(value=save, results={ @Result(name=success, type=redirect, location=view, params={resourceId,

Re: struts 2.1.6 conventions plugin questions

2009-01-29 Thread Musachy Barroso
a ticket would be better. thanks musachy On Thu, Jan 29, 2009 at 8:51 PM, Allen Lee allen@asu.edu wrote: Ok, I just figured out the problem I think - it occurs when OGNL tries to parse a negative double. I've been able to reproduce it in a small test app that you can unpack and run via

Re: conventions @Result params support OGNL exprs

2009-01-29 Thread Musachy Barroso
you can put the whole view?resourceId=${resource.id} in the params. On Thu, Jan 29, 2009 at 8:57 PM, Allen Lee allen@asu.edu wrote: Hi there, After saving a persistent resource I'd like to redirect after the post to a view page that views the resource. I'm trying to do something along

Re: Struts 2.1.6, Sitemesh FreeMarkerPageFilter

2009-01-29 Thread Musachy Barroso
Did you try with the new filters? musachy On Thu, Jan 29, 2009 at 7:44 PM, Markus Doring mdoer...@gbif.org wrote: Hi, I am trying Struts 2.1.6 with Freemarker Sitemesh decorators. I am getting a NPE in the PageFilter HeadTag class. When debugging it seems the getPage() call in the class

Help on indexedListProperty

2009-01-29 Thread Eugene Ezekiel
Hi All, I'm new to Struts and am using an indexedFieldProperty in my project. When I access the bean it returns me the object that is inside the vector vecItem instead of the vector vecLocation. My validation.xml is as follows: form name=AForm field indexedListProperty=objOrder.vecItem

Re: Problem with Dojo in struts2

2009-01-29 Thread Srikanth Goud
newton.dave wrote: Srikanth Goud wrote: I am presently working on struts 2.0. Whenever i use strutsUI tags(with theme=ajax) nothing is rendered on page. I have done like this:- In web.xml filter filter-namestruts-cleanup/filter-name

Re: struts 2.1.6 conventions plugin questions

2009-01-29 Thread Allen Lee
created: https://issues.apache.org/struts/browse/WW-2971 On Thu, Jan 29, 2009 at 8:04 PM, Musachy Barroso musa...@gmail.com wrote: a ticket would be better. thanks musachy On Thu, Jan 29, 2009 at 8:51 PM, Allen Lee allen@asu.edu wrote: Ok, I just figured out the problem I think - it

Re: Struts 2 Type conversion refuses 0.0 for a double?

2009-01-29 Thread Lukasz Lenart
2009/1/30 san-ho-zay rich...@r-senior.demon.co.uk: I have a Struts2 action with a double property called amount. No validation rules on the action as yet. Use big Double instead. Regards -- Lukasz http://www.lenart.org.pl/