RE: Error while upgrading from struts version 1.0 to 1.1

2004-03-23 Thread Saul Q Yuan
. Thanks, Jignesh Saul Q Yuan [EMAIL PROTECTED] wrote: Well, here is a bit longer version of the reply. There are many changes from Struts 1.0.1 to 1.1, you can find a full description below: http://jakarta.apache.org/struts/userGuide/release-notes.html and the configuration changes below. http

Re: Error while upgrading from struts version 1.0 to 1.1

2004-03-23 Thread Saul Q Yuan
in struts.jar file. Do we need to do any setting in web.xml ot struts-config.xml. The resoucebundle has already an entry in config.xml file. Please help, Jignesh Saul Q Yuan [EMAIL PROTECTED] wrote: From the error log, it seems it's looking for the default logger which comes

Re: bean:message inside onclick javascript string?

2004-03-23 Thread Saul Q Yuan
Try move the onclick javascript function out, something like this: script language=javascript function verify() { var msg = beam:message key=confirm.paragraph.delete /; return confirm(msg); } /script html:submit property=command value=Delete onclick=return

RE: Error while upgrading from struts version 1.0 to 1.1

2004-03-22 Thread Saul Q Yuan
I think you need to recompile your application against the new Struts.jar file and other jar files it depends on. Saul -Original Message- From: Jignesh Kapadia [mailto:[EMAIL PROTECTED] Sent: Monday, March 22, 2004 1:55 PM To: [EMAIL PROTECTED] Subject: Error while upgrading from

RE: AW: AW: multiple lines in an ActionMessage object displayed via javascript alert

2004-03-22 Thread Saul Q Yuan
Like Mark suggested, it'll help if you post the rendered jsp code here, ie. View source, copy and paste here. Saul -Original Message- From: Just Fun 4 You [mailto:[EMAIL PROTECTED] Sent: Monday, March 22, 2004 3:37 PM To: 'Struts Users Mailing List' Subject: AW: AW: AW: multiple

Re: Error while upgrading from struts version 1.0 to 1.1

2004-03-22 Thread Saul Q Yuan
if somebody can help out in this. Thanks, Jignesh Saul Q Yuan [EMAIL PROTECTED] wrote: I think you need to recompile your application against the new Struts.jar file and other jar files it depends on. Saul -Original Message- From: Jignesh Kapadia [mailto:[EMAIL PROTECTED

Re: Using struts-config to configure properties in action form

2004-03-22 Thread Saul Q Yuan
set-property is not a sub-tag of form-bean, form-property is though. If you're not using dynamic form bean, you don't need to define the properties in the form-bean tag. HTH, Saul - Original Message - From: Chan, Jim To: '[EMAIL PROTECTED]' Sent: Monday, March 22, 2004 8:27

RE: Mapping Forward to new form

2004-03-19 Thread Saul Q Yuan
You can call ((UserForm) form).reset() before forwarding. Saul -Original Message- From: Ciaran Hanley [mailto:[EMAIL PROTECTED] Sent: Friday, March 19, 2004 1:52 PM To: Struts User Mailing List Subject: Mapping Forward to new form Hey, I am adding user details to the

RE: Multibox and selected values

2004-03-15 Thread Saul Q Yuan
in advance for your help! From: Saul Q Yuan [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Multibox and selected values Date: Sun, 14 Mar 2004 20:42:31 -0500 If I understand your questions correctly

RE: Multibox and selected values

2004-03-15 Thread Saul Q Yuan
that when the page is loaded an action is invoked, how do I get the associateUserRoleForm and make sure that when the taglib is invoked on my page that same instance of associateUserRoleForm is used. Thanks in advance for your help! From: Saul Q Yuan [EMAIL PROTECTED] Reply

Re: urgent:multibox client side validation

2004-03-14 Thread Saul Q Yuan
' || field.type == 'textarea' || field.type == 'file' || field.type == 'select-one' || field.type == 'radio' || // -- true for single radio button, Saul Q Yuan ([EMAIL PROTECTED]) 10/28/03

Re: Multibox and selected values

2004-03-14 Thread Saul Q Yuan
If I understand your questions correctly, you can define two String arrays in your form bean, one for allRoles, and the other for selectedRoles, which is the array of roles of the current user. Before forwarding to your jsp, in your action class, you can retrive all the roles of the currently

[OT] How to tell whether a HTML/JSP page is on the same machine as the Servlet it calls

2004-03-11 Thread Saul Q Yuan
Hi, I am trying to find out whether a HTML or JSP page in on the same machine as the Servlet it calls. The reason I want to do this is preventing a page not on the Servlet machine from posting to the Servlet. I tried comparing the Referer header info with the RemoteHost info, but unfortunately

RE: client-side validation not working

2004-02-13 Thread Saul Q Yuan
Try to put some alerts in the validateDate javascript function in the validator-rules.xml file and see if the function is called. BTW, what version of Struts you are using? Saul -Original Message- From: Anderson, James H [IT] [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004

RE: client-side validation not working

2004-02-13 Thread Saul Q Yuan
Message- From: Saul Q Yuan [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 11:25 AM To: 'Struts Users Mailing List' Subject: RE: client-side validation not working Try to put some alerts in the validateDate javascript function in the validator-rules.xml file and see if the function

RE: messages/errors 2 form's 1 page

2004-02-04 Thread Saul Q Yuan
Do the two action mappings share the same form bean? If yes, that might be the problem. Try to use two separate form beans, see how it goes. Saul -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 8:52 AM To: Struts Users Mailing List

RE: accessing application.properties from JSP

2004-02-03 Thread Saul Q Yuan
Using bean:message inside a javascript should work, cause bean:message is processed first on the server. It works for me. It may help if you post your code here. Saul -Original Message- From: Marco Mistroni [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 03, 2004 12:02 PM To:

RE: Multibox and Validation

2004-01-22 Thread Saul Q Yuan
This is a known issue for the release version of Struts1.1, but if you download a nightly build after Sep 24 2003, the required validation will work. Saul -Original Message- From: Justin Miller [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 9:43 AM To: [EMAIL PROTECTED]

RE: Urgent: Call ActionClass from link

2004-01-22 Thread Saul Q Yuan
I guess you're missing the web context in the action, try use html:rewrite page=InfoAction.do / instead of InfoAction.do in the open function, that way it'll prefix the web context in the action. Saul -Original Message- From: Manuel Lenz [mailto:[EMAIL PROTECTED] Sent: Thursday,

RE: Radio button CHECKED ???

2004-01-20 Thread Saul Q Yuan
In your form bean, just initialize your radio property with the value of the radio button you want to be checked by default, then you're done. Saul -Original Message- From: Mauricio T. Ferraz [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 20, 2004 11:18 AM To: Struts Users Mailing

RE: action-path question

2004-01-15 Thread Saul Q Yuan
I don't think input accepts dynamcic values, but you can do the following to accomplish the same thing. You can define two forwards instead inside your action mapping, say, forward name=addInput path=/addUser.jsp / forward name=updateInput path=/updateUser.jsp / And in your action class, check

? File Upload bug for uploading files with French Character

2004-01-07 Thread Saul Q Yuan
Hi, I am trying to upload files with French characters, but all the French characters are replaced as ? in the file. The enviroment is: Tomcat4.0.3, Linux. I wonder if this is a bug with the version of Tomcat4.0.3 for Linux. thanks advance for any help. Saul

Re: Need some Multibox help.

2004-01-06 Thread Saul Q Yuan
It could be the form bean wfsContentForm or it's features property doesn't exist at the time you call the logic:iterate tag. Do you have your logic:iterate tag inside a html:form tag and defined the approprite mappings in struts-config?, the wfsContentForm bean will be created if yes. Otherwise,

Re: How to perform validation and then call another javascript function?

2003-12-29 Thread Saul Q Yuan
I think you can define a new Javascript function, and call the validateSubscriptionForm(this) first in the new function, and inside onsubmit call this new function instead. Something like the following: newFunction(form) { validate = validateSubscriptionForm(form); if(!validate) return

Re: ApplicationResources.properties

2003-12-20 Thread Saul Q Yuan
Is the property file in the right place and in the class path after your War file expanded by Tomcat? If not, the War file was not deployed correctly. Saul - Original Message - From: Mark Nichols [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, December 20, 2003 5:38 PM Subject:

RE: Error: Object expected

2003-12-09 Thread Saul Q Yuan
Assuming it's not a typo, inside your onsubmit it should be return validateClientForm(this). Saul -Original Message- From: Ciaran Hanley [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 09, 2003 2:54 PM To: [EMAIL PROTECTED] Subject: Error: Object expected Hi, I'm trying to get

RE: simple design question

2003-11-13 Thread Saul Q Yuan
Then a simple answer, one solution would be, use a single form, two actions, and use action (path) based validation. Saul -Original Message- From: Nathan Maves [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 12:02 PM To: [EMAIL PROTECTED] Subject: simple design question

RE: simple design question

2003-11-13 Thread Saul Q Yuan
, at 10:10 AM, Saul Q Yuan wrote: Then a simple answer, one solution would be, use a single form, two actions, and use action (path) based validation. Saul -Original Message- From: Nathan Maves [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2003 12:02 PM To: [EMAIL PROTECTED

RE: simple design question

2003-11-13 Thread Saul Q Yuan
about pre-loading the select boxes with information? On Nov 13, 2003, at 10:43 AM, Saul Q Yuan wrote: Ok, then, 1. Let's say you declare your form as MyForm, which is of type DynaValidatorActionForm in Struts-config.xml. 2. And you declare your actions as /myAction1 and /myAction2

RE: Validation using mask

2003-11-12 Thread Saul Q Yuan
Try take out the - before \., ie. Use: ^[0-9a-zA-Z\.]*$ Saul -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 3:09 PM To: Struts Users Mailing List Subject: RE: Validation using mask Any suggestions or ideas for the below

RE: Need a RegExp mask for: all charactors except for \, / and ?

2003-11-12 Thread Saul Q Yuan
Try this, ^[\\|\/|\?] or (^[\\|\/|\?])* for 0 or more matches Saul -Original Message- From: Kevin Wang [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 4:54 PM To: Struts Users Mailing List Subject: Need a RegExp mask for: all charactors except for \, / and ?

RE: How to Redirect to a status Page on HTTP status 403

2003-11-11 Thread Saul Q Yuan
How about this: Call response.sendError(HttpServletResponse.SC_FORBIDDEN, some description msg) in your action if the user is not in the role; Saul -Original Message- From: alvin antony [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2003 9:49 AM To: Struts Users Mailing List

RE: How to Redirect to a status Page on HTTP status 403

2003-11-11 Thread Saul Q Yuan
I think you can configure that in the web.xml file, something like befow: error-page error-code403/error-code location/http403.jsp/location /error-page you may need to check the dtd to see it's exact location in web.xml. Saul -Original Message- From: alvin antony [mailto:[EMAIL

Re: OT - parsing a TSV file in java

2003-11-11 Thread Saul Q Yuan
Just a thought, another way to do it is, you can setup a odbc datasource to the file, and using jdbc-odbc bridge to read the file like from a database. Saul. - Original Message - From: rickchev [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 11, 2003 10:37 PM Subject: OT

RE: Multiplying 2 columns on JSP page

2003-11-07 Thread Saul Q Yuan
You can do the multiplication in your bean WBConttBO, rather than in the jsp. Or you can use jstl in your jsp, which supports multiplication of two bean properties. Like: c:out value=${x*y} / Saul -Original Message- From: Srinivas Kusunam [mailto:[EMAIL PROTECTED] Sent: Friday,

Re: Sample Struts app, LogonAction.java, missing UserDatabase

2003-11-07 Thread Saul Q Yuan
The magic is they're all in the same package :-) Saul - Original Message - From: Mohammed Bustany [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 07, 2003 10:04 PM Subject: Sample Struts app, LogonAction.java, missing UserDatabase Hi all I just started learning

Re: Phone Mask

2003-10-30 Thread Saul Q Yuan
I think it's like this: \d{3}\-\d{3}\-\d{4} Saul - Original Message - From: Rhet Behler [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, October 30, 2003 8:56 PM Subject: Phone Mask Does anyone know how to set the phone mask in the validation to only

RE: validator for check box

2003-10-29 Thread Saul Q Yuan
' || field.type == 'file' || field.type == 'select-one' || field.type == 'radio' || // -- true for single radio button, Saul Q Yuan ([EMAIL PROTECTED]) 10/28/03 field.type == 'checkbox' || // -- true for single checkbox, Saul Q Yuan

RE: validator for check box

2003-10-29 Thread Saul Q Yuan
an user to enter them. -Original Message- From: Saul Q Yuan [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 29, 2003 1:06 PM To: 'Struts Users Mailing List' Subject: RE: validator for check box I just submitted a bug and submitted a patch as well for this problem. Basically

RE: how to disable (or work around) jsessionid in html:img sources

2003-10-23 Thread Saul Q Yuan
-Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: Thursday, October 23, 2003 9:32 AM To: Struts Users Mailing List Subject: Re: how to disable (or work around) jsessionid in html:img sources James Mitchell wrote: A bit of history on this subject: *

RE: how to disable (or work around) jsessionid in html:img sources

2003-10-23 Thread Saul Q Yuan
-Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: Thursday, October 23, 2003 11:27 AM To: Struts Users Mailing List Subject: Re: how to disable (or work around) jsessionid in html:img sources Saul Q Yuan wrote: -Original Message- From: Ruth, Brice

RE: Re-used Action class

2003-10-22 Thread Saul Q Yuan
You can use multi-page based validation as demonstrated in the Validator example in the Struts source. Basically it's like this: 1. set validate=false in your action mapping 2. set multiple input path for each page in your action mapping in case of validation errors 3. in your action, call the

RE: exception handler

2003-10-21 Thread Saul Q Yuan
Yes, if you mean the Struts declarative exception handling. Better yet, it can catch any kind of exception of type Exception and it's subclasses, because the execute method in an Action class now throws an exception of Type Exception. Saul -Original Message- From: Yan Zhu

RE: exception handler

2003-10-21 Thread Saul Q Yuan
that in struts.config, but the exceptions thrown out by servelts still go to the container. :( Saul Q Yuan wrote: Yes, if you mean the Struts declarative exception handling. Better yet, it can catch any kind of exception of type Exception and it's subclasses, because the execute method in an Action class

RE: exception handler

2003-10-21 Thread Saul Q Yuan
=reflex.exceptionHandler.GeneralExceptionHandler / /global-exceptions Saul Q Yuan wrote: How do you configure that, it'd help if you post your configuration here. Saul -Original Message- From: Yan Zhu [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 1:41 PM To: Struts Users Mailing List Subject: Re

Re: Deprecating ActionError/ActionErrors

2003-10-17 Thread Saul Q Yuan
- Original Message - From: Wendy Smoak [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, October 17, 2003 6:42 PM Subject: Deprecating ActionError/ActionErrors I don't know if this work is still ongoing, but I notice that ActionError and ActionErrors are deprecated, yet the

RE: Validator question for radio buttons.

2003-10-16 Thread Saul Q Yuan
Well, some thoughts, do you have a page parameter in your jsp? Something like: input type=hidden name=page value=2 / and did you set validate=true in your action mapping? Saul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: