Re: Reload combo option if validation fail.

2007-08-20 Thread Dilip Ladhani
Well, here's what I do. 1) Have a private method (prepare??) in your action class which is responsible for populating all your Select boxes. This method is called from your main Action method. 2) Call the validate method from your Action class explictly, instead of setting "validate=true" in the s

Re: Validator question Struts 1.2.9

2007-03-21 Thread Dilip Ladhani
Thanks, I figured it out. I made sure this was by default bundle. On 3/21/07, Niall Pemberton <[EMAIL PROTECTED]> wrote: On 3/21/07, Dilip Ladhani <[EMAIL PROTECTED]> wrote: > I have gotten the validator to work in may of my projects, but I am > stuck on this one and was wo

Re: Validator question Struts 1.2.9

2007-03-21 Thread Dilip Ladhani
amp; Regards, Nuwan. - Original Message - From: "Dilip Ladhani" <[EMAIL PROTECTED]> To: Sent: Wednesday, March 21, 2007 4:48 PM Subject: Validator question Struts 1.2.9 >I have gotten the validator to work in may of my projects, but I am > stuck on this one and was

Validator question Struts 1.2.9

2007-03-21 Thread Dilip Ladhani
I have gotten the validator to work in may of my projects, but I am stuck on this one and was wondering if someone can help. I have a MessageResources.properties under WEB-INF/classes which contains all the messages. In my struts-config I have the following line Here is my validation.xml

Re: Session values getting lost

2007-03-13 Thread Dilip Ladhani
gets created. Three hours wasted for nothing. Thanks for all you inputs On 3/12/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- Dilip Ladhani <[EMAIL PROTECTED]> wrote: > Index Page > Home Page > > header,jsp > Schedule > Page > > Is the context root (present i

Re: Session values getting lost

2007-03-12 Thread Dilip Ladhani
header,jsp Schedule Page Is the context root (present in header, missing in index) making a difference?? thanks On 3/12/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dilip, Dilip Ladhani wrote: > I have this wierd problem, I hav

Session values getting lost

2007-03-11 Thread Dilip Ladhani
Hello, I have this wierd problem, I have spent a few hours debugging. I am on tomcat 5.5 struts 1.29. I was using tomcat 5.0.x and struts 1.3.5 earlier and all seemed well. I switch and encounter this strange problem. My home jsp is a simple page, where I invalidate the session, create new and

bean:define in including jsp

2006-04-21 Thread Dilip Ladhani
Hey guys, We us Struts with tiles and here is something, I am having some trouble with. I have a main jsp (a.jsp). This jsp includes a few other jsps (using , where b=b.jsp). Now, if I have a bean:define in a .jsp (eg ), prop1 is usable in a.jsp, but not in b.jsp(the included or inserted jsp).

Re: Performance test tool

2005-10-28 Thread Dilip Ladhani
I have used Grinder quite a bit and it is a pretty good tool. If you decide to go that way, try and use Grinder 3, as it gives you the ability to write scripts, which I found useful to handle different test scenarios. The tool is pretty well documented. It is free too. It just needs some ramp

RE: tag allow maxlength???

2005-10-21 Thread Dilip Ladhani
I don't believe you can do a maxlength on a textarea in html. You may have to put in a validation (javascript or server side) to return an error message in case the user exceeds the count. From: Carl Smith <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: user@struts.apache.org

RE: [OT] Re: embed jstl or other struts tag or scriplets within html:text

2005-09-30 Thread Dilip Ladhani
I am on websphere/wsad 5.1. Do I have to use EL From: Dave Newton <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: Struts Users Mailing List Subject: [OT] Re: embed jstl or other struts tag or scriplets within html:text Date: Fri, 30 Sep 2005 15:36:17 -040

embed jstl or other struts tag or scriplets within html:text

2005-09-30 Thread Dilip Ladhani
Hey guys, This does not work for me at all. Anyone have any ideas styleClass="textField" onfocus="this.select(); this.className='fieldActive'" onblur="this.className='fieldInactive'; reCalcFields(<%=executionState}%>);" size="4" maxlength="10" /> I have tried to put jstl (), other struts ta

using scriplets within tags

2005-09-30 Thread Dilip Ladhani
Hey guys, I am using tiles to construct a page using bunch of jsps, say jsp1, jsp2, jsp3. The layout page is called jsp0 (say) Now in jsp1, I have html:text element, I have a javascript, that I need to execute "onblur" of this textfield. The javascript function, needs to pass an attrbute (as

Re: Trim all fields before validation

2005-09-01 Thread Dilip Ladhani
Users Mailing List Subject: Re: Trim all fields before validation Date: Thu, 01 Sep 2005 14:57:36 -0400 The ParameterMungerFilter in JWP didn't do the trick for you? I'd love to know what shortcomings you found so that I can work to improve it :) Frank Dilip Ladhani wrote: I am n

Re: Trim all fields before validation

2005-09-01 Thread Dilip Ladhani
I am not a fan of javascript, I know, I can use this, but I have always had browser compatibility issues with javascript. I still use javascript, when absolutely necessary, but I prefer to avoid it. As far as "required" goes, that probably won't work because I could have a string like "tes

Re: Trim all fields before validation

2005-08-31 Thread Dilip Ladhani
tMap() returns a reference to the internal hash map, so changes to items in the map will be reflected in the form bean. -ed On 8/31/05, Dilip Ladhani <[EMAIL PROTECTED]> wrote: > That's correct Ed, but there is no way to set it back, unless I modify the > code, right? > >

Re: Trim all fields before validation

2005-08-31 Thread Dilip Ladhani
ctionForm form).getMap(); -ed On 8/31/05, Dilip Ladhani <[EMAIL PROTECTED]> wrote: > I still need to look at Frank's suggestion. Thanks for your suggestions > Frank and Joe. > > So Joe, you would trim all the fields using javascript right? I understand > your suggestio

Re: Trim all fields before validation

2005-08-31 Thread Dilip Ladhani
: Joe Germuska <[EMAIL PROTECTED]> To: "Dilip Ladhani" <[EMAIL PROTECTED]>, user@struts.apache.org Subject: Re: Trim all fields before validation Date: Wed, 31 Aug 2005 13:58:50 -0500 At 2:49 PM -0400 8/31/05, Dilip Ladhani wrote: Hello all, I was searching for the best way

Trim all fields before validation

2005-08-31 Thread Dilip Ladhani
Hello all, I was searching for the best way to do this. I want all the fields on my form to be trimmed before they are sent for validation (I call validate from my action class). What's the best way to do this if I have DynaValidatorActionForm? thanks, Dilip --

Struts-Tiles Design question

2005-08-25 Thread Dilip Ladhani
I have an application built on struts and tiles. I have a design question and would like some of your valuable opinions. I have a huge jsp, which is broken into many includes, say abc.jsp and includes one.jsp, two.jsp etc. As, I mentioned I use tiles so in the config file, I have a forward elem