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 e-mail

RE: Required attribute - SOLVED

2009-03-13 Thread Phan, Hienthuc T
t: Re: 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

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, Whiteho

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

2009-02-23 Thread Phan, Hienthuc T
ossible mix-up in the attributes of your tags Chris -Original Message- From: Phan, Hienthuc T To: Struts Users Mailing List Sent: Mon, 9 Feb 2009 5:46 pm Subject: Nested iterator struts 2.1.6 -- automatically rebuild the collection Hi, Using tag, how do you instruc

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 [org.apache.str

Nested iterator struts 2.1.6 -- automatically rebuild the collection

2009-02-09 Thread Phan, Hienthuc T
Hi, Using tag, how do you instruct struts to rebuild the collection automatically? I have a List of List of Sample objects I use 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 List of Sample objects is no

RE: Datetimepicker and struts 2.1.6

2009-02-09 Thread Phan, Hienthuc T
2009 at 2:32 PM, Phan, Hienthuc T 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 f

RE: Datetimepicker and struts 2.1.6

2009-02-09 Thread Phan, Hienthuc T
- From: Musachy Barroso [mailto:musa...@gmail.com] 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, Hien

RE: Datetimepicker and struts 2.1.6

2009-02-09 Thread Phan, Hienthuc T
lways 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 wrote: > It did not throw exception or

RE: Datetimepicker and struts 2.1.6

2009-02-09 Thread Phan, Hienthuc T
quot; format, what error are you getting? musachy On Mon, Feb 9, 2009 at 1:35 PM, Phan, Hienthuc T 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

RE: Datetimepicker and struts 2.1.6

2009-02-09 Thread Phan, Hienthuc T
0 is the client on a different locale than the server? musachy On Mon, Feb 9, 2009 at 1:09 PM, Phan, Hienthuc T 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/

RE: Struts2: display int in JSP

2008-07-17 Thread Phan, Hienthuc T
JSP Use 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

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 ActionSu

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
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 some

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

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: /customer_create.jsp

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? http://java.sun.com/dtd/web-app_2_3.dtd'> -- Notic

RE: Iterate question

2005-03-31 Thread Phan, Hienthuc T (Rosetta)
You can have nested iterate. I think you can do something like this ... From Subject In reply to messageId references Message Parent : -Original Message- Fr

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: Slattery,

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:

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? <101017> <[ServletContext(id=4601745,name=scheduler,context-p