Re: Struts2: Ajax Pagination using JQuery

2008-06-27 Thread David Durham, Jr.
On Fri, Jun 27, 2008 at 1:43 PM, Raghu [EMAIL PROTECTED] wrote: Hi, I want to implement ajax pagination on my struts2 page but I am not sure how to implement that. I am not very good in javascript and jquery but learning them.. You might be interested in something like this:

Re: [OT] UML and Reverse Engineering

2008-04-11 Thread David Durham, Jr.
A good opensource option is Poseidon for UML (http://www.gentleware.com/). The community edition is free but that edition doesn't include Java-UML. Poseidon and ArgoUML share a common codebase. Argo does Java - UML, and I think the community edition of Poseidon does as well, but I'm possibly

Re: Struts2 tags behaviour customizable? isXyz() instead of getXyz()

2008-04-04 Thread David Durham, Jr.
On Fri, Apr 4, 2008 at 1:17 PM, akash agrawal [EMAIL PROTECTED] wrote: myBean is not null, There are other field which are not boolean and I do get them fine. Is it boolean, or Boolean? I've seen situations where I was hoping isX would return a reference to a Boolean (when reference with

Re: Struts2 tags behaviour customizable? isXyz() instead of getXyz()

2008-04-04 Thread David Durham, Jr.
On Fri, Apr 4, 2008 at 1:39 PM, akash agrawal [EMAIL PROTECTED] wrote: It is a Boolean property but I still think it should work no matter whether it is boolean or Boolean. APIs I am using are not mine so I can't change the bean, but there are workaround I can put in although they aren't

Re: File Upload problem

2008-03-19 Thread David Durham, Jr.
On Wed, Mar 19, 2008 at 5:19 AM, udaykumar [EMAIL PROTECTED] wrote: I am using struts and have an upload.jsp and its associated UploadForm.java and UploadAction.java. The jsp's form has an enctype=multipart/form-data and contains an html:file field to upload a file as well as a bunch of

Re: unexpected behavior with a checkbox.

2008-01-10 Thread David Durham, Jr.
The issue is that an unchecked checkbox does not send a value when a form is submitted, so: This depends on (a) whether or not we're talking about S2 and (b) if we are whether or not we're using an interceptor stack that includes the checkbox interceptor. I just meant that an HTTP Server

Re: unexpected behavior with a checkbox.

2008-01-03 Thread David Durham, Jr.
On Jan 2, 2008 10:59 PM, ravi_eze [EMAIL PROTECTED] wrote: hi, the workaround works, but causes problems if the checkbox should be validated. More over the soln is based on assumptions that need not hold always. Which solution are you saying is based on assumptions that need not hold, and

Re: unexpected behavior with a checkbox.

2008-01-02 Thread David Durham, Jr.
Where the trouble comes in is if the field is unchecked which I thought would set the value of the Boolean to false. It doesn't, it remains as a true. How do I implement behavior where if the checkbox is unchecked it sets the corresponding property of the form to false? The issue is that

Re: unexpected behavior with a checkbox.

2008-01-02 Thread David Durham, Jr.
request.getParameter(myUncheckedCheckbox) == null Oh.. yuck.. but thanks David for that work around. Tried it and it works for my purposes. There are things that can be done to avoid to the ugly null check. 1. Don't initialize check-box fields. No initial values. 2. Don't use

Re: Char lib for Struts 1

2007-12-28 Thread David Durham, Jr.
On Dec 28, 2007 7:08 AM, Sebastian Göttschkes [EMAIL PROTECTED] wrote: Hi there, I'm trying to find a chart lib for Struts 1(.3.8). It should be something small, easy to install and use. I just need pie charts in 2D, nothing special. Any suggestions? It's not Struts specific but Google has

Re: Setting Session time out

2007-12-26 Thread David Durham, Jr.
On Dec 25, 2007 1:56 AM, Raghuveer [EMAIL PROTECTED] wrote: If session of login user expires or left unused for 15 minutes application should fire session expire page automatically. This is something that is best accomplished from a client. HTML allows you to specify meta data about a

Re: [S2] dojo 0.9 and ***-conversion.properties

2007-08-02 Thread David Durham, Jr.
On 8/1/07, Oguz Kologlu [EMAIL PROTECTED] wrote: Unexpected Exception caught setting 'contacts%5B0%5D.firstName' on 'class easybed.web.struts2.ContactsAction: Error setting expression 'contacts%5B0%5D.firstName' with value '[Ljava.lang.String;@284bf3' Dojo 0.4.3 used to work ok (probably it

Re: [s2] s:submit type=button action=../ broken in IE (was: [S2] Multiple Submits with different actions in a Form)

2007-07-26 Thread David Durham, Jr.
Things like: s:form action=MyAction.do s:submit type=button/ s:submit type=button action=MyAction!cancel value=Cancel/ /s:form work for me in firefox, but don't seem to work in IE. Could you provide the rendered HTML that works in one browser but not the other? Sure. TestCancel.jsp

Re: [s2] s:submit type=button action=../ broken in IE (was: [S2] Multiple Submits with different actions in a Form)

2007-07-26 Thread David Durham, Jr.
On 7/26/07, Dave Newton [EMAIL PROTECTED] wrote: I thought IE's broken button behavior was already documented, including on the wiki? That may be. Here's the rendered HTML: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN

Re: [S2] Multiple Submits with different actions in a Form

2007-07-25 Thread David Durham, Jr.
On 7/25/07, Grish [EMAIL PROTECTED] wrote: My problem though is I have a form with multiple submit buttons. I tried specifying the action on each submit button but the action in my form overrides the action specified in the buttons. I have success with this technique in Firefox, but I think

Re: [S2] Multiple Submits with different actions in a Form

2007-07-25 Thread David Durham, Jr.
On 7/25/07, Grish [EMAIL PROTECTED] wrote: no, what happens is the action specified in the form is what's executed. I'm using firefox as well. here's my button: s:submit action=someAction theme=ajax targets=myTarget / I tried having the form specify one action and one button have to submit

Re: dispatcher setting encoding

2007-07-11 Thread David Durham, Jr.
On 7/11/07, Arnaud Cogoluegnes [EMAIL PROTECTED] wrote: So it seems the filter dispatcher transforms the encoding for all files (if configured with /* in web.xml), which can cause problem with UTF-8 and BOM. Is there any way to exclude some files from the filtering ? My first guess would be

Re: Struts 2 performance

2007-07-11 Thread David Durham, Jr.
On 7/11/07, Ing. Andrea Vettori [EMAIL PROTECTED] wrote: Can anyone suggest how to test my site for performance analysis (best with a simple free product) ? I can show here the result if interested. I haven't used it personally, but there's the Eclipse TPTP project that works with the eclipse

Re: [S2] Getting DAO from Spring in Struts Action

2007-06-21 Thread David Durham, Jr.
, David Durham, Jr. [EMAIL PROTECTED] wrote: On 6/14/07, M. Bitner [EMAIL PROTECTED] wrote: bean id=AddStoryCardAction action name=AddStoryCard Your action name has to correspond to your bean id, so: action name=AddStoryCardAction ... or bean id=AddStoryCard

Re: [S2] Exporting to CSV and Excel

2007-06-18 Thread David Durham, Jr.
On 6/18/07, Jeff Amiel [EMAIL PROTECTED] wrote: On 6/18/07, Skip Hollowell [EMAIL PROTECTED] wrote: I see that in the new 2.0.8 (Thanks Ted, Don and team) that the Jasper plugin is included. Does that mean that Jasper is the endorsed recommended way to export data to Excel and or CSV? If

Re: [S2] Getting DAO from Spring in Struts Action

2007-06-15 Thread David Durham, Jr.
On 6/14/07, M. Bitner [EMAIL PROTECTED] wrote: bean id=AddStoryCardAction action name=AddStoryCard Your action name has to correspond to your bean id, so: action name=AddStoryCardAction ... or bean id=AddStoryCard ... HTH, Dave

Re: [S2] Getting DAO from Spring in Struts Action

2007-06-14 Thread David Durham, Jr.
On 6/14/07, Wesslan [EMAIL PROTECTED] wrote: Maybe http://struts.apache.org/2.x/docs/spring-plugin.html can be of some help. You have to give your spring actions (those you want dependency injection for) the same value for the name attribute as the value you give for your spring bean's id

Re: Extending DynaValidatorForm

2007-06-11 Thread David Durham, Jr.
On 6/11/07, Ambaris Mohanty [EMAIL PROTECTED] wrote: My code is as following... struts-config.xml form-beans form-bean name=DynaLoginForm type=org.apache.struts.validator.DynaValidatorForm form-property name=username type=java.lang.String/ form-property

Re: Extending DynaValidatorForm

2007-06-08 Thread David Durham, Jr.
On 6/8/07, Ambaris Mohanty [EMAIL PROTECTED] wrote: Please someone send me the sample code for extending DynaValidatorForm and implementing the reset method. I have no idea on how to do it. Please help. I'm using struts 1.2.9. Thank you, HTML has the concept of a reset button:

Re: Extending DynaValidatorForm

2007-06-08 Thread David Durham, Jr.
On 6/8/07, David Durham, Jr. [EMAIL PROTECTED] wrote: On 6/8/07, Ambaris Mohanty [EMAIL PROTECTED] wrote: Please someone send me the sample code for extending DynaValidatorForm and implementing the reset method. I have no idea on how to do it. Please help. I'm using struts 1.2.9. Thank you

Re: [OT] Serious memory leak

2007-05-30 Thread David Durham, Jr.
Maybe you're creating a new session with each request. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: eclipse struts2 projects missing java project struts2-core

2007-05-26 Thread David Durham, Jr.
On 5/26/07, Musachy Barroso [EMAIL PROTECTED] wrote: There's probably an easier way, but I just create the elipse project for the project I want to use, like let's say, core and showcase, doing: core/ mvn eclipse:eclipse apps/showcase/ mvn eclipse:eclipse -Dwtpversion=1.0 and then import the

eclipse struts2 projects missing java project struts2-core

2007-05-25 Thread David Durham, Jr.
Hi, I checked out the struts2 trunk from svn and imported the struts projects via import projects. I see a list of projects: api, core, struts2-codebehind-plugin, ... I have an M2_REPO variable setup. core and api build without errors, but all of the plugin projects fail to build because