Re: form bean exception

2005-02-15 Thread Saul Qunming Yuan
Do you have the action mapping defined for logon.do in your struts-config file? what's it like? BTW, just a friendly reminder, you probably don't want to use that email id in this list, the audience are global. I happen to catch it and know what it means :-( thanks, Saul > hi folks, > I have

[OT] Strange JSF error

2005-03-24 Thread Saul Qunming Yuan
Hi, Sorry for this OT question, but below is a Web app that use JSF and MyFaces and deployed to JBoss, I got the following strange error, I googled "No faces context", but didn't find a single resource on that. I know many users in this list also use JSF as well, hence posting my question here

Re: [OT] Strange JSF error

2005-03-24 Thread Saul Qunming Yuan
ontext is never going to be setup for that request. With that problem, I would expect an error message like the one you described below. Again, I'm new to faces so don't hold me to it, but it DOES make sense from the stack trace you included. Regards, David -Original Message- Fro

How to Exclude a String in validation mask

2005-04-26 Thread Saul Qunming Yuan
Hi, I'm trying to validate an input that doesn't allow a particular string, just wondering how to construct the validation mask. Say, the input shouldn't have the string "microsoft". I tried [^(microsoft)], or [^m][^i][^c][^r][^o][^s][^o][^f][^t], neither work. Any help is appreciated. thanks, Sa

multi-level indexed proproerty validation

2005-04-26 Thread Saul Qunming Yuan
Hi, I'm wondering if it's possible to specify multi-level indexed property validation in Struts validation.xml file. I used indexListProperty attribute inside , which works for one level of indexed property. For multiple nested level indexed properties like company[].it.project[].projectName, I wo

Re: How can we send parameter's value to javascript function ??

2005-05-21 Thread Saul Qunming Yuan
Try build the whole javascript function part in scriplet as follows: onclick="<%='javascript:whichAuctionType(' + rId + ');'%>"> in your Hope that helps. Saul - Original Message - From: "minhnguyet" <[EMAIL PROTECTED]> To: Sent: Friday, May 20, 2005 10:47 PM Subject: How can w

Re: Struts validator [ client side error when using date validator]

2005-02-08 Thread Saul Qunming Yuan
Off the top of my head, try using: datePatternStrict instead of datePattern in in your validation.xml. Saul > Hi, > > I have configured and used struts validator for my application, > Server side validation is working perfectly... > > For client side, the required validator is working fine, b

Re: What JDK version are you using?

2006-01-23 Thread Saul Qunming Yuan
[X] JDK 1.4 [X] JDK 1.5 (or JDK 5) using Validator. - I'm mainly interested in the impact of moving Commons Valdator to a minimum dependency of JDK 1.4 to use the RegExp support rather than depending on ORO, so it would be useful if you could indicate whether you are usi

Re: why my page can't redirect under Struts with Javascript?

2006-02-19 Thread Saul Qunming Yuan
For the following: document.forms[0].action="/log.do?action="+eval(tmp); You'll need to prefix "/log.do" with your web context. Or you can use: in place of /log.do above. hope it helps. Saul - Original Message - From: "red phoenix" <[EMAIL PROTECTED]> To: Sent: Sunday, February

Re: why my page can't redirect under Struts with Javascript?

2006-02-19 Thread Saul Qunming Yuan
pagination program,the shows all pages,such as 1st Page,2nd Page,3rd Page and so on,when selected one of items of ,it will call Javascript and redirect page to a action. Anybody can give me some adivce? On 2/20/06, Saul Qunming Yuan <[EMAIL PROTECTED]> wrote: For the following: documen

Re: why my page can't redirect under Struts with Javascript?

2006-02-20 Thread Saul Qunming Yuan
Sorry, my bad, I didn't even think about that. Right, you don't need the "eval" here. Saul - Original Message - From: "Dave Newton" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Monday, February 20, 2006 7:17 PM Subject: Re: why my page can't redirect under Struts with Ja

Conditional validation for mask, date, integer etc

2005-10-19 Thread Saul Qunming Yuan
Hi All, I'm wondering if there is a way to define conditional validation for mask, date, integer etc in validation.xml. I know there is a "validwhen", but it only checks for the condition as defined by the "test" variable. What I want is to perform the mask, date validation only some conditions a

Re: Conditional validation for mask, date, integer etc

2005-10-19 Thread Saul Qunming Yuan
urned by bean.getDepends() > > It's used with indexed properties where the fields for the form to > fill in are configurable and come from a database. > > Is that what you're after? > > Stew > > On 19/10/05, Saul Qunming Yuan <[EMAIL PROTECTED]> wrote: >&g

Re: Conditional validation for mask, date, integer etc

2005-10-25 Thread Saul Qunming Yuan
Saul Qunming Yuan dataanvil.com> writes: > > That's simlar to what I need, except that it's not an indexd property. Can > some of your code or send it to me offline. > > thanks, > Saul > > > On my current project I've written a validation method

Re: concatenate Strings in tag attributes

2007-11-18 Thread Saul Qunming Yuan
Hi You may want to try the following to set variable "a": just a thought. Saul Anton Pussep wrote: Hello, I am trying to concatenate strings in tag attributes and get results that I don't understand: prints out "/jsp/test.jsp", whereas prints out "/jsp/[Ljava.lang.String;@1bd21

Re: I'm stuck

2008-12-20 Thread Saul Qunming Yuan
You may want to recompile your app using jdk 1.5.0 and re-deploy the new war or ear file on your live server. HTH, Saul Dai Le wrote: Hi, I'm new to the list and this is my first time posting a question. Well here it is. I'm a new web developer and this is my very first site. I'm devel

Re: WAS 6 error when deplyoing a struts application.

2007-01-20 Thread Saul Qunming Yuan
It appears you're trying to get the next element from a list which is empty, or doesn't have next element in the iterator. Did you use iterator.hasNext() to check first? Just a thought. Saul Nuwan Chandrasoma wrote: Hi All, I am getting this error when i try to access some actions in a strut

Re: Populating collection in struts 2 Action properties

2007-02-03 Thread Saul Qunming Yuan
Hi, You may want to try the following: 1. add index-based getter and setter to your Person bean class, i.e. public Role getRoles(int i) { return (Role) getRoles().get(i); } public void setRoles(int i, Role role) { getRoles().set(i, role); } 2. use [0] rather than (0) for your name field

Re: Struts and welcome-file-list

2007-02-11 Thread Saul Qunming Yuan
Hi, I think the welcome file has to be a physical file or a servlet defined in web.xml. You can define your welcome file as index.jsp and in your index.jsp file just forward to your index.do. Something like: HTH, Saul - Original Message - From: Nicolas Laplante To: user@strut

Re: Advice on hanlding multi-select options that need a regular submit on form, plus a submit to popup window

2006-06-15 Thread Saul Qunming Yuan
Can you do it in Javascript? something like the following: Parent window: onclick="openPopup();" > Popup window // getting multiple selected values from opener // set selected values (will be a list) to hidden form field // document.forms[0].multiSel1.value= setTimeout(submitF