How to enlarge the datetimepicker

2008-05-25 Thread Cheng Wei Lee
Hi, The datetimepicker appears very small on my page, is there any way to make it bigger? Is this configured via the CSS? If yes, which CSS? Thanks!

How to programmatically set the maximum file upload size and allowed file types (FileUploadInterceptor)

2008-04-30 Thread Cheng Wei Lee
Is there a way to do this programmatically rather than declaratively? Thanks!

Re: mapped back property equivalent in struts2

2008-03-27 Thread Cheng Wei Lee
Hi, I asked the same question a few weeks ago. Do search the archive for more details. Anyway, take a look at the ParameterAware interface. By implementing it, you have access to all the request parameters. Should be similar to mapped back. Cheers! On Fri, Mar 28, 2008 at 11:56 AM, Niral

Struts 2: map-backed bean

2008-03-04 Thread Cheng Wei Lee
In Struts 1, we could use map-backed form beans to deal with dynamic forms, is there something equal in Struts 2?

Re: Struts 2: map-backed bean

2008-03-04 Thread Cheng Wei Lee
] Cheng Wei Lee wrote: In Struts 1, we could use map-backed form beans to deal with dynamic forms, is there something equal in Struts 2? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Struts 2: map-backed bean

2008-03-04 Thread Cheng Wei Lee
Ok, silly me, the setRequest method would set all request parameters into the map, which I could then extract and use the values. Thanks for pointing out this. Should have read the APIs more carefully. On Wed, Mar 5, 2008 at 1:22 AM, Cheng Wei Lee [EMAIL PROTECTED] wrote: Suppose I use

Struts 2: Creating custom JavaBeans from request parameters (not in action class)

2008-03-04 Thread Cheng Wei Lee
I know I can get the values of the request parameters in the action class and then use them to instantiate an object. Read from the API for ParameterAware interface, One common use for this is to have the action propagate parameters to internally instantiated data objects.. Does this means that

Re: Struts 2: map-backed bean

2008-03-04 Thread Cheng Wei Lee
through, and create a Person object through each set of 5 textfields. What do you think of my approach? Or there's a better or more elegant way of doing things? Thanks! On Wed, Mar 5, 2008 at 1:58 AM, Dave Newton [EMAIL PROTECTED] wrote: --- Cheng Wei Lee [EMAIL PROTECTED] wrote: Suppose I use

Re: Struts 2: map-backed bean

2008-03-04 Thread Cheng Wei Lee
Thanks! On Wed, Mar 5, 2008 at 2:08 AM, Dave Newton [EMAIL PROTECTED] wrote: --- Cheng Wei Lee [EMAIL PROTECTED] wrote: What I was thinking of doing, is to prefix the components at the JSP such that I can pick them up at action classes by iterating. Suppose I've 5 textfields that makes

Re: Struts 2: map-backed bean

2008-03-04 Thread Cheng Wei Lee
. /Ian -- Ian Roughley From Down Around, Inc. Consulting * Agile Process * Open Source Advanced Struts2 Workshop, April 28-30, Sunnyvale CA web: http://www.fdar.com - email: [EMAIL PROTECTED] Cheng Wei Lee wrote: In Struts 1, we could use map-backed form beans to deal with dynamic

Re: Best practices for handling code/lookup tables in Struts 2

2008-02-24 Thread Cheng Wei Lee
Looking into using Hibernate's 2nd level cache. Any tips or pitfalls? Thanks! On Sun, Feb 24, 2008 at 2:20 PM, Jeromy Evans [EMAIL PROTECTED] wrote: Cheng Wei Lee wrote: What do you'll think of writing a stateful session bean to hold these data and make it gets the data from database

Re: Best practices for handling code/lookup tables in Struts 2

2008-02-23 Thread Cheng Wei Lee
What do you'll think of writing a stateful session bean to hold these data and make it gets the data from database once/twice a day? On Sun, Feb 24, 2008 at 9:20 AM, Jeromy Evans [EMAIL PROTECTED] wrote: Cheng Wei Lee wrote: Hi all, In most web applications, it is unavoidable to have

Best practices for handling code/lookup tables in Struts 2

2008-02-22 Thread Cheng Wei Lee
Hi all, In most web applications, it is unavoidable to have some codes/lookup tables, for example, in a form we may need to display the country list. If we were to hit the database per request to get this list for displaying in the dropdown, it would be too expensive. If we load these values

Struts 2: datetimepicker not appearing in IBM WAS v6.1.0.2 running on Solaris 10

2008-02-21 Thread Cheng Wei Lee
The same EAR run fine on IBM WAS v6.1.0.13 on Windows machine, i.e., the datetimepicker could appear and be used, but in the Solaris 10 and WAS v6.1.0.2 environment, it was not showing up. Does anyone have similar experiences? Could it be due to the operating system or a bug in the lower version

Struts 2: hibernate optimistic locking - allows user to merge conflicting data

2008-01-21 Thread Cheng Wei Lee
Currently for client/server side validation, struts is able to maintain the data and shows it to the user, with the error messages and preserved user input. I'm using Hibernate for persistence. The StaleObjectStateException is caught inside the filter that I use to set up the Hibernate session.

Re: File Upload

2008-01-17 Thread Cheng Wei Lee
help. Pablo Vázquez Blázquez escribió: Yes, I first tried with the default stack, but the problem is the same :( Cheng Wei Lee escribió: Try removing the interceptors? If I'm not mistaken, the default stack has it. On Jan 17, 2008 2:32 AM, Pablo Vázquez Blázquez [EMAIL

Re: Struts 2 with RAD 6

2008-01-17 Thread Cheng Wei Lee
I've no difficulties using Struts 2 on RAD v7. What are you actually trying to do? To build Struts 2 from scratch? On Jan 17, 2008 9:42 PM, [EMAIL PROTECTED] wrote: Hi, I am trying to figure out how could I use Strus-2 with RAD-6 which has Jdk 1.4. I even tried to run the mail reader

Re: File Upload

2008-01-17 Thread Cheng Wei Lee
is allowed in an XML document. Thanks for your reply. Cheng Wei Lee escribió: Did you extends struts-default in your package tag? e.g. package name=fileupload extends=*struts-default* namespace=/fileupload or you used your own stack? On Jan 17, 2008 8:33 PM, Pablo Vázquez Blázquez

Re: File Upload

2008-01-17 Thread Cheng Wei Lee
Was this debugging statement executed? log.debug(Anadido plugin + uploadFileName); On Jan 18, 2008 12:13 AM, Pablo Vázquez Blázquez [EMAIL PROTECTED] wrote: Here I send you my JSP and Action code. Yes, when I submit, the new plugin is added (I know it because of my logs), but I

Re: File Upload

2008-01-17 Thread Cheng Wei Lee
Does your doExecute method in DefaultRequestResponseAction class call the execute method? I believe that Struts look for the execute method to run, so if your debugging statement didn't execute, probably is the method not being called. On Jan 18, 2008 9:39 AM, Cheng Wei Lee [EMAIL PROTECTED

Re: File Upload

2008-01-16 Thread Cheng Wei Lee
Try removing the interceptors? If I'm not mistaken, the default stack has it. On Jan 17, 2008 2:32 AM, Pablo Vázquez Blázquez [EMAIL PROTECTED] wrote: I am using Struts 2.0.9 and I have the following action: action name=AddPlugin class=AddPluginAction

Spring Webflow Plugin to Struts 2

2008-01-14 Thread Cheng Wei Lee
Hi all, I was trying out the SWF plugin from Google codes with the old example and encountered some exceptions. Got the example from https://issues.apache.org/struts/browse/WW-1525. When I tried to enter the age, I got the following exception. I'd changed the example.xml slightly to use the:

Re: Action Validation

2008-01-13 Thread Cheng Wei Lee
I didn't really make use of maven, instead, I imported the struts-blank war file into Eclipse which would create a project for me automatically. That way I can see where to place the XML files. On Jan 13, 2008 7:53 PM, Gaurav Arora [EMAIL PROTECTED] wrote: Hi list, I am new to Struts and

Re: Struts 2: duplicated error messages occur when nest another table within s:form tag

2008-01-09 Thread Cheng Wei Lee
in the entire HTML document. So perhaps I would change this code and see if it works. On Jan 10, 2008 7:24 AM, Laurie Harper [EMAIL PROTECTED] wrote: Cheng Wei Lee wrote: I'd difficulties in clearing the client side validation error messages. So I followed the guide at http

Re: Struct Logging

2008-01-08 Thread Cheng Wei Lee
message Servlet action is not available description The requested resource (Servlet action is not available) is not available. Apache Tomcat/5.5.25 I searched throught thru the log file of tomcat. however it doesnt show any error .. Thanks, Sohil Thanks, Sohil. Cheng Wei Lee wrote

Re: Struct Logging

2008-01-08 Thread Cheng Wei Lee
taglib-location/WEB-INF/struts-html.tld/taglib-location /taglib taglib taglib-uri/WEB-INF/struts-logic.tld/taglib-uri taglib-location/WEB-INF/struts-logic.tld/taglib-location /taglib /web-app Cheng Wei Lee wrote: Are you using Struts 1? Please check your

Struts 2: client side validation message kept displaying repeatedly

2008-01-07 Thread Cheng Wei Lee
I enabled client side validation for a form, when the user submits, the validation kicks in and the messages are shown. If the user didn't make any changes and proceed to submit again, the set messages are shown again. The messages kept increasing. Is there a way to clear the old messages before

Re: Struct Logging

2008-01-07 Thread Cheng Wei Lee
Hi Sohil, Could you provide the stacktrace for troubleshooting? Thanks. On Jan 8, 2008 3:37 PM, Sohil Rupani [EMAIL PROTECTED] wrote: Hi, I m new to struts , using tomcat and jdk 1.5. i m getting a error Servlet action not avaliable.. which on browsing i learn that is a very common error