.
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
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
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
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
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
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
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
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
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
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
' ||
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
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
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
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
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
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
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:
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]
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,
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
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
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
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,
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
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:
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
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
, 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
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
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
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
?
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
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
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
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,
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
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
' ||
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
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
-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:
*
-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
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
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
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
=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
- 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
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:
47 matches
Mail list logo