Re: {S2] Newbie: Sharing a POJO between two or more actions

2007-03-14 Thread Alex Wibowo
with SessionAware, you have to implement: void *setSession *(Map session) so during testing you can e

Re: How to submit multiple selection?

2007-03-14 Thread Alex Wibowo
are you using struts 1 ? if so, have a look at html:multibox. basically you will need a collection in your action form (something like List selectedIds = new ArrayList()). for struts 2, i havent had time to check it yet.. just migrated to Struts 2 a couple days ago :P On 3/14/07, xushaoxun <[EMA

Re: Validation on java.util.List

2007-03-14 Thread Alex Wibowo
Hi Dave, Thanks for that.. I will have a look at the VisitorValidator tomorrow (its 1 AM here :P ) I am sort of in the same position as you (using Hibernate objects at the web layer)... I have given that a thought before (annotating the hibernate objects with validation annotation). But that wil

Re: Validation on java.util.List

2007-03-14 Thread Alex Wibowo
to do it, please let me know. On 3/14/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- Alex Wibowo <[EMAIL PROTECTED]> wrote: > I am using Struts 2.0. Has anyone ever done > validation on individual item in java.util.List > before? I'm drawing a blank on this one to

Validation on java.util.List

2007-03-13 Thread Alex Wibowo
Hi all... I am using Struts 2.0. Has anyone ever done validation on individual item in java.util.List before? Say, I have a property List customers in my Action, and Customer is defined as: public class Customer{ private String username;// must not be empty private

Re: [S2]: Error Starting on Tomcat

2007-03-08 Thread Alex Wibowo
int. Thanks for any help, Skip Hollowell - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Best regards, Alex Wibowo ---

Re: Struts Tiles

2007-03-08 Thread Alex Wibowo
ribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Best regards, Alex Wibowo ---

Complex validation on List

2007-03-07 Thread Alex Wibowo
Hi... I am trying to use validation annotation to achieve the following: 1. I have a Java bean "aBean" in my action class, and it has a java.util.List as its property. 2. AnItem has the structure as follow: AnItem{ private String name; private int quantity; ...

Re: Struts 2 - session scope ActionForm

2007-03-07 Thread Alex Wibowo
single JavaBean as the Action's model (ActionForm) and will manage storing and retrieving it to/from the session. Don On 3/6/07, Alex Wibowo <[EMAIL PROTECTED]> wrote: > Hi all... > > I am still in the process of learning Struts 2. As I understand it, there is > no way in

Struts 2 - session scope ActionForm

2007-03-06 Thread Alex Wibowo
se/WW-1514 Does this sound right? Or am I missing something in the Struts documentation? Thanks a lot! -- Best regards, Alex Wibowo ---

@ExpressionValidator annotation & ognl.NoSuchPropertyException: com.opensymphony.xwork2.validator.validators.ExpressionValidator.methodName

2007-03-05 Thread Alex Wibowo
Gday... I am using the @ExpressionValidator annotation. So far it is working alright, apart from this exception I was getting: WARNING: Caught OgnlException while setting property 'methodName' on type ' com.opensymphony.xwork2.validator.validators.ExpressionValidator'. ognl.NoSuchPropertyExcept

@CustomValidator annotation

2007-03-04 Thread Alex Wibowo
Hi all, I was trying to find some examples on @CustomValidator annotation on the struts page. But I couldnt find any. Before we get to that, let me explain the situation I am having. I have a struts action class with a POJO bean in it. I wanted to validate this bean. The problem is that the valid