Use Indexed properties - Encounter IndexOutOfBound Exception

2005-03-25 Thread Phan, Hienthuc T (Rosetta)
Hello, I'm trying to use Strut indexed tag but keep getting java.lang.IndexOutOfBoundsException: Index: -9. It displays with correct values but when the form is submitted, I got the error. Below is a snip of my code. Do you know hat's wrong with it? JSP code: logic:iterate

RE: Use Indexed properties - Encounter IndexOutOfBound Exception

2005-03-25 Thread Phan, Hienthuc T (Rosetta)
That's not it. I still get same error. I thought when the form is submitted, Strut will re-construct the collection of objects with values from the input form. Therefore, I don't have to specify the Collection/List size in the form bean constructor. -Original Message- From:

RE: Iterate question

2005-03-31 Thread Phan, Hienthuc T (Rosetta)
You can have nested iterate. I think you can do something like this ... logic:iterate name=items id=item From bean:write name=item property=from / Subject bean:write name=item property=subject / In reply to bean:write name=item property=inreplyTo / messageId

Indexed property throws exception - HELP!

2004-05-17 Thread Phan, Hienthuc T (Rosetta)
Hi, I encountered an index out of bound exception when using the indexed property. The problem I'm facing is that I can't debug this. The exception is not thrown either in the the form or the action. Do you know what cause this? May 17, 2004 9:50:02 AM PDT Error HTTP 101017

strut 1.2.7 and web.xml

2005-08-10 Thread Phan, Hienthuc T (Rosetta)
Hi, I'm in process of upgrading of strut 1.0 to 1.2.7 but cannot start the app server because of this error. Is this the correct tld declaration for web.xml? ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'

Struts 2: After validation fail, how to change the returning result name to other than INPUT?

2008-05-16 Thread Phan, Hienthuc T
Hi, I have a CustomerAction class. In CustomerAction, I have two methods: add and update. I have a CustomerAction-validation.xml to check for required fields, etc. My struts.xml looks something like this: package name=customer action name=customer_*

RE: Struts 2: After validation fail, how to change the returning result name to other than INPUT?

2008-05-20 Thread Phan, Hienthuc T
Any suggestions -Original Message- From: Phan, Hienthuc T Sent: Friday, May 16, 2008 6:41 PM To: Struts Users Mailing List Subject: Struts 2: After validation fail, how to change the returning result name to other than INPUT? Hi, I have a CustomerAction class. In CustomerAction

RE: Re: Struts 2: After validation fail, how to change the returning result name to other than INPUT?

2008-05-22 Thread Phan, Hienthuc T
the returning result name to other than INPUT? Phan, Hienthuc T wrote: Hi, I have a CustomerAction class. In CustomerAction, I have two methods: add and update. I have a CustomerAction-validation.xml to check for required fields, etc. My struts.xml looks something like this: package name

Struts2: display int in JSP

2008-07-17 Thread Phan, Hienthuc T
Hi, In my action, I have several variables of type int. When the variable is not initialized, it's displayed as 0 in the JSP. I would like un-initialized variable of type int to be display as blank/empty. What is the best way to accomplish this? Thanks. Public class XXAction extends

RE: Struts2: display int in JSP

2008-07-17 Thread Phan, Hienthuc T
Integer instead of int Regards, Jishnu Viswanath Software Engineer *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll Tavant Technologies Inc., www.tavant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Phan, Hienthuc T [mailto:[EMAIL PROTECTED] Sent: Friday, July 18

RE: Datetimepicker and struts 2.1.6

2009-02-09 Thread Phan, Hienthuc T
is the client on a different locale than the server? musachy On Mon, Feb 9, 2009 at 1:09 PM, Phan, Hienthuc T hienthuc_p...@merck.com wrote: Hi, I migrated from struts 2.0.11 to 2.1.6 and the datetimepicker does not work anymore. I specifically set the display format to MM/dd/. Visually

RE: Datetimepicker and struts 2.1.6

2009-02-09 Thread Phan, Hienthuc T
, Feb 9, 2009 at 1:35 PM, Phan, Hienthuc T hienthuc_p...@merck.com wrote: No, it's the same locale. -Original Message- From: Musachy Barroso [mailto:musa...@gmail.com] Sent: Monday, February 09, 2009 10:25 AM To: Struts Users Mailing List Subject: Re: Datetimepicker and struts 2.1.6

RE: Datetimepicker and struts 2.1.6

2009-02-09 Thread Phan, Hienthuc T
submitted in a standard format, disregarding the display format, or the locales of the client and server. If you field is of type Date, xwork will know how to parse the value. musachy On Mon, Feb 9, 2009 at 1:58 PM, Phan, Hienthuc T hienthuc_p...@merck.com wrote: It did not throw exception or anything

RE: Datetimepicker and struts 2.1.6

2009-02-09 Thread Phan, Hienthuc T
] Sent: Monday, February 09, 2009 11:24 AM To: Struts Users Mailing List Subject: Re: Datetimepicker and struts 2.1.6 it does not work anymore. means that the date field is not set? musachy On Mon, Feb 9, 2009 at 2:21 PM, Phan, Hienthuc T hienthuc_p...@merck.com wrote: Hmmm... It used to work

RE: Datetimepicker and struts 2.1.6

2009-02-09 Thread Phan, Hienthuc T
at 2:32 PM, Phan, Hienthuc T hienthuc_p...@merck.com wrote: does not work anymore = on submit, the date field got set to 2009-01-02T00:00:00-08:00 instead of 01/02/2009. I would like the date field to be set to 01/02/2009 [which was what the date field got set when using 2.0.11

Nested iterator struts 2.1.6 -- automatically rebuild the collection

2009-02-09 Thread Phan, Hienthuc T
Hi, Using s:iterator .. tag, how do you instruct struts to rebuild the collection automatically? I have a List of List of Sample objects I use s:iterator tag to loop through and display data for user to make changes The displaying part is OK; however, when the form is submitted, the List of

RE: Passing parameters between Actions

2009-02-13 Thread Phan, Hienthuc T
I followed the example, added the getter/setter for the properties in the Action but got the following error message. Did I miss anything else? 2009-02-13 14:06:48,322 ERROR [com.opensymphony.xwork2.ObjectFactory] Unable to set parameter [plannedSampleGroupId] in result of type

RE: Nested iterator struts 2.1.6 -- automatically rebuild the collection

2009-02-23 Thread Phan, Hienthuc T
? Are you sending the information back to the same action or is there a possible mix-up in the attributes of your tags Chris -Original Message- From: Phan, Hienthuc T hienthuc_p...@merck.com To: Struts Users Mailing List user@struts.apache.org Sent: Mon, 9 Feb 2009 5:46 pm Subject: Nested

Required attribute

2009-03-13 Thread Phan, Hienthuc T
Is there a way to change the required attribute value in textfield, textarea, etc. from asterisk (*) to some other value like (required)? I'm using Struts 2.1.6 -Hien Notice: This e-mail message, together with any attachments, contains information of Merck Co., Inc. (One Merck Drive,

RE: Required attribute - SOLVED

2009-03-13 Thread Phan, Hienthuc T
: Required attribute Phan, Hienthuc T wrote: Is there a way to change the required attribute value in textfield, textarea, etc. from asterisk (*) to some other value like (required)? I'm using Struts 2.1.6 IIRC the * comes from the template file; it should probably be definable. Check controlheader

Turn off freemarker log

2009-04-10 Thread Phan, Hienthuc T
I got tons of freemarker.cache in my log. Is there a way to turn this off? Thanks. 2009-04-10 01:06:01,031 DEBUG [freemarker.cache] (http-54.24.148.167-8080-2) template/simple/dynamic-attributes.ftl[no_NO,ISO-8859-1,parsed] ca\ ched copy not yet stale; using cached. -Hien Notice: This