Don't think you really understand the issue, Simian.
On 8/11/06, Monkeyden <[EMAIL PROTECTED]> wrote:
Who cares where they're called or what their values are? Just add them to
the application resources file.
On 8/11/06, Jean-Marie Pitre <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> I would like to
On 8/11/06, Gary Feidt <[EMAIL PROTECTED]> wrote:
Add an onclick="validateForm(); return false;"
Then create a javascript function:
function validateForm() {
var errorString = "The following field(s) may not be left
blank:\r\n\r\n";
var strField = "";
if (document.frmT
Kevin Maeer wrote:
I want to split the validation.xml file into multiple files so some pages can be
more easily reused. If I save the new file under /WEB-INF/ and add it to the
ValidatorPlugIn "pathnames" in struts-config.xml everything works fine.
If I move the new file out into the class hiera
Adam Gordon wrote:
Is there a way to reference the controller for a module from within a
JSP? Specifically, I'd like to ask the controller what the max file
size is set to. There's a method on the ControllerConfig class to get
the max file size and the Javadocs say it's a JavaBean so I suspec
Is there a common way to change an or from a get
to a post http request? Looks like it would have to replace an href=""> with a form. RoR does this easily enough. One idea would
be to add a method="post|get" option to or something similar
to that.
-Dave
Hi,
I'm not writing the JavaScript code myself, so I cannot include a check
like you suggested. The JavaScript is being automatically generated
using the tag. The generated validateRequired method
is taken directly from the commons-validator.jar:
function validateRequired(form) {
var
Are you returning false when there is an error in the validation?
if(userName.trim().length() == 0){
alert("Pathetic, technologically inept users must enter a user name.");
return false;
}
On 8/11/06, O'Shea, Sean wrote:
Hi Adam,
I changed my login form to look like this:
Hi Adam,
I changed my login form to look like this:
:
:
"/>
But still no luck. My server side validation still works fine,
Who cares where they're called or what their values are? Just add them to
the application resources file.
On 8/11/06, Jean-Marie Pitre <[EMAIL PROTECTED]> wrote:
Hi,
I would like to change the key name of errors.header, errors.footer,
errors.suffix ... but I don't see where they are called.
Sean-
You need to add an "onsubmit" attribute to your html:form" element that
calls the validation function. Specifically, IIRC, it needs to say:
onsubmit="return validateForm(this);
happy coding,
-adam
O'Shea, Sean wrote:
Hi all,
I'm using struts 1.2.7 with commons-validator-1.1.4 and I'
Is there a way to reference the controller for a module from within a
JSP? Specifically, I'd like to ask the controller what the max file
size is set to. There's a method on the ControllerConfig class to get
the max file size and the Javadocs say it's a JavaBean so I suspect it
might availabl
Hi all,
I'm using struts 1.2.7 with commons-validator-1.1.4 and I'm running into
a few generated JavaScript errors. Here's what my JSP looks like:
:
:
"/>
There are a few AJAX people on this list who are far more qualified than I,
and I probably shouldn't even have mentioned it. I would suggest, that you
nail down the Struts concepts and only then look at possible integrations
with other technologies.
On 8/11/06, A. Lotfi <[EMAIL PROTECTED]> wrot
Thank you Monkeyden,
1) That exactly what I want, but I did not understand :
> Expects a table1RowNum parameter (from clicking on one of the rows
> in table1
I have never used AJAX, is there any example on how to do it with ajax ?
thank you,
Monkeyden <[EMAIL PROTECTED]
If I understand you correctly, here is how it might look:
YourActionForm
Collection table1Data (retrieved from persistence on the first request
of the Action)
Collection table2Data (empty on first request)
YourAction
Loads table1 data
Expects a table1RowNum parameter (from clicking o
On 8/11/06, Deva Pitchai <[EMAIL PROTECTED]> wrote:
Is there a possibilty of using a anchor tag like below from the struts action
...
I know wht to do in the html side.. but dont dont know how to itegrate
it in the struts.
This might help:
http://wiki.apache.org/struts/StrutsJumpToAnchor
hi all
Is there a possibilty of using a anchor tag like below from the struts action
http://localhost/dir1/dir2/file.jsp#bottom
somthing like ...
http://localhost/dir1/dir2/viewfile.do#bottom
so that i can view the bootom of the page once the action is executed.
I know wht to do in the html
did u tried to initialise the form , in constructor ?
class myform extends ... {
private String field1 = "";
private String field2 = "";
private String field3 = "";
}
2006/8/11, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
function button2()
{
var theFile = document.forms[0].eleme
thanks it worked .
i have low skills in xml :) though it s look like html .
2006/8/11, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
Use & instead of & in validation.xml file.
Romu
<[EMAIL PROTECTED]
>
On 8/11/06, James Mitchell <[EMAIL PROTECTED]> wrote:
What about the apps? Are those artifacts? Or are they just intended
to be run in place?
Seems like, at one point, the nightly build used to create sample apps.
Here's what I run for the nightlies:
$mvn -Pextras install
Has the profile na
I havent used EventActionDispatcher. I have used EventDispatchAction, and I
just do a forward as ...
return new ActionForward("/secondAction.do?anyEventName");
I just pass the methodName as the key. I do not use key=value.
Also I use the button & link parameters as addCustomer, deleteCustomer
function button2()
{
var theFile = document.forms[0].elements['theFile'].value;
if( theFile == "" && theFile.length = 0)
{
alert("Please enter the value for the field theFile");
document.forms[0].elements['theFile'].focus();
return f
use which is a gift from html tld and u will get javascript
on the fly
Googleup for samples
-Original Message-
From: Gomathi [mailto:[EMAIL PROTECTED]
Sent: Friday, August 11, 2006 5:37 PM
To: Struts Users Mailing List
Subject: Re: about javascript
no,
i have three text fields in my on
See response inline.
[EMAIL PROTECTED] wrote:
The documentation says you don't need bean-el:write because of c:out,
but I think I have a valid use case for bean-el:write (Assuming
you want to avoid using <% %>).
Example:
I have a list of objects named "results"
each result contains a hashmap c
Hi,
I am wondering if anyone has come across with memory leak problems with the
workflow extension?
I am running a weblogic8.1 app server on a HP-UX machine.
I am finding that virtual memory is running out and the JVM is crashing. I only
have one app running in my weblogic instance.
I am fai
no,
i have three text fields in my one jsp
i want to check these fields if it is empty using java script
client side validation
in button2()
{
how to check this empty fields
}
- Original Message -
From: "Krishna, Hari" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
On Aug 10, 2006, at 8:42 PM, Ted Husted wrote:
Do we use these from
the command line or with a Maven plugin or should use antrun maven
plugin to do it?
I just filtered the JARs from the command line. I suppose the Maven
plugin would work too. I think it might be best to keep this a
separate
Add an onclick="validateForm(); return false;"
Then create a javascript function:
function validateForm() {
var errorString = "The following field(s) may not be left
blank:\r\n\r\n";
var strField = "";
if (document.frmTest.txtFirstName.value.length == 0) {
r u going to check for mandatory fields.
-Original Message-
From: Gomathi [mailto:[EMAIL PROTECTED]
Sent: Friday, August 11, 2006 4:45 PM
To: Struts Users Mailing List
Subject: about javascript
hai
i am working in struts1.1
i have threee fields in
how to check these empty fields when su
hai
i am working in struts1.1
i have threee fields in
how to check these empty fields when submitting the submit button using java
script
its very uergent
with kindly regards
gomes
Use & instead of & in validation.xml file.
Romu
<[EMAIL PROTECTED]
>
hey
I list all the characaters accepted in a balise .
the current list which works is :
enseigneCommerciale
^[A-Z0-9,/"';%?!.()\-\s]*$
the problem is when i want to add the "&" character .
it says the entity name should be followed by the enity reference .
think it'
The documentation says you don't need bean-el:write because of c:out,
but I think I have a valid use case for bean-el:write (Assuming
you want to avoid using <% %>).
Example:
I have a list of objects named "results"
each result contains a hashmap called 'translations'.
(1) render the results in a
He wants to use javascript validation generated from struts
-Original Message-
From: Li [mailto:[EMAIL PROTECTED]
Sent: Friday, August 11, 2006 3:23 PM
To: Struts Users Mailing List
Subject: Re: To validate password & confirmpassword fields
sorry, my mistakes,
er you can create valid
sorry, my mistakes,
er you can create validate method and compare them there. then in your
struts-config.xml, make sure the action that control the form
submission has input page. in order to avoid validation check at first
time. you can define an action that only forward to your password
input p
In struts 1.2 you can easily useas mentioned in other
post.
/Ashwani
-Original Message-
From: Rauf Khan [mailto:[EMAIL PROTECTED]
Sent: Friday, August 11, 2006 3:17 PM
To: Struts Users Mailing List
Subject: Re: To validate password & confirmpassword fields
Hi,
Iam doing valida
Hi,
Iam doing validation for registration page where password &
confirmpassword fields should have the same password if not an alert msg
through javascript(validator framework) should be shown. I have validated
rest of the fields through validator framework only.
Khan
On 8/11/06, Li <[EMAIL
They are hard coded in mailto:[EMAIL PROTECTED]
Sent: Friday, August 11, 2006 2:58 PM
To: Struts Users Mailing List
Subject: Validator
Hi,
I would like to change the key name of errors.header, errors.footer,
errors.suffix ... but I don't see where they are called.
Have you got any idea ?
Tha
This is a very common thing to do and should be done with the validWhen
validation as described on the Validotor page of the Struts User Guide
(http://struts.apache.org/1.x/userGuide/building_view.html#validator).
Below is the validation I use on a change password form as an example:
seems you are using your own authentication module, one thing you can
do it using javascript, or you can use form authentication, and define
login page and login error page, so if your userid or password is not
valid, login error page will showed up.
Wish it helps
Regards
On 8/11/06, Rauf Khan
Hi,
I trying to validate the fields using Validator Framework at client side,
Iam not able to validate the password & confirmpassword fields inorder to
show an alert msg if password & confirmpassword fields are not same. Can i
know how to handle this case.
Thanks in advance.
Regards
Khan
Hi,
I would like to change the key name of errors.header, errors.footer,
errors.suffix ... but I don't see where they are called.
Have you got any idea ?
Thanks,
Jean-Marie.
---
Email Disclaimer
http://www.cofidis.be/emaildisclaimer.php
--
42 matches
Mail list logo