Re: Struts Javascript error

2013-08-12 Thread Sreekanth S. Nair
Javscript error got resolved by adding  between html  tag.
but still i'm unable to see the field error message which i have added
using addFieldError() method.

Sreekanth S. Nair  wrote:

> Hi,
>  Getting the following error in javascript console, happening with latest
> struts2 distribution
>
>
>1. Uncaught ReferenceError: StrutsUtils is not defined
>
> validation.js:161
> 
>
>
> Due to this or not, non of the action error messages are getting
> displayed.
> --
> Thanks & Regards
> Srikanth
>


Struts Javascript error

2013-08-12 Thread Sreekanth S. Nair
Hi,
 Getting the following error in javascript console, happening with latest
struts2 distribution


   1. Uncaught ReferenceError: StrutsUtils is not defined
validation.js:161
   


Due to this or not, non of the action error messages are getting displayed.
-- 
Thanks & Regards
Srikanth


Re: [jira] [Resolved] (WW-3980) javascript Error : Dojo is undefined

2013-02-14 Thread Lukasz Lenart
Hi,

You must map also Struts2 related resources as you limited filter
mapping just to *.action. The simplest way to check what else has to
be mapped is return to default mapping (/*) and check with browser
what other resources are fetched, eg. /struts*, /static*


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Fwd: [jira] [Resolved] (WW-3980) javascript Error : Dojo is undefined

2013-02-14 Thread prashant borse
Hi,
I am stuck in this problem since last 3 days. can you please look into this.
As per my analysis, Due to both struts1 and struts2 framework used in the
application causing conflict situations and resulting in problems in
implementing UI for the File uploading functionality. Below is my analysis
for the same.

 In my aplication. Struts 1 servlet mapping and Struts 2 filter mapping
configured in such a way as to cause both to be invoked on the same
request. Since multi-part request parsing is handled by Struts, not the
container, this is causing a conflict which in turn receives NULL value for
the FormFile. To solve this problem I have chnaged struts2 filter mapping
from "/*"  to  "*.action"  which has solved my problem but created other
one for Struts2.

one of the struts2 page encountered a java script error message "dojo
is undifined". I have done analysis and come to the conclusion that struts2
contains static files (the Dojo libraries, in this case), and expects to
see *every* request, so it can serve those files. so the struts2 filter
mapping must be "/*" and if we convert accordingly, my fileuploading
functionality wont work as i explained above.

 here I have cought in conflict situation. Request you to suggest me what
action needs to be taken on this.

Also please look into mail below for more details
Regards,
Prashant

-- Forwarded message --
From: Lukasz Lenart (JIRA) 
Date: Wed, Feb 13, 2013 at 10:14 PM
Subject: [jira] [Resolved] (WW-3980) javascript Error : Dojo is undefined
To: prashant.bo...@gmail.com



 [
https://issues.apache.org/jira/browse/WW-3980?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]

Lukasz Lenart resolved WW-3980.
---

Resolution: Not A Problem

Please first ask question on the "Struts Users Mailing List" <
user@struts.apache.org> before registering an issue like this.

> javascript Error : Dojo is undefined
> 
>
> Key: WW-3980
> URL: https://issues.apache.org/jira/browse/WW-3980
> Project: Struts 2
>  Issue Type: Bug
>  Components: Core Actions
>Affects Versions: 2.0.14
> Environment: Windows
>Reporter: prashant borse
>Priority: Blocker
>  Labels: javascript
> Fix For: Future
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Hi,
> My application is using both, in one module struts1 and in other module
struts2. i have to do file uploading in struts1 but due to struts2 filter
mapping   as given below
>  
> struts2
> /*
> 
> Struts1 considering the multipart request as the http request, so i am
getting the FormFile always Null. To solve this problem, I have changed
*.action, Now my problem of file uploading is
solve, But it has created new problem in struts2 module. while travercing
the module, I got the javascript exception "Dojo is undefined". I am not
getting any solution to solve this problem. i can not convert back
url-pattern to /* if I do this then my file uploding will not work.
> Request you to send me solution As early as possible

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA
administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


Re: Javascript error using struts select tag

2008-03-25 Thread Laurie Harper
Since html:submit doesn't emit any Javascrip, the error has to be in 
your custom Javascript code. That came through somewhat unreadably 
formatted, though, and you didn't include its dependencies so it's tough 
to debug from here... I would strongly recommend installing Firefox + 
Firebug and stepping through your code in the debugger to figure out the 
problem.


L.

Joe Yuen wrote:
 
 
 
I am trying to use the  tag in my jsp page but am getting the following  javascript error, 
 
Microsoft JScript runtime error: Object expected.
 
In my jsp page I have:
 





*













 






















 


Here is the javascript funtion that is called when a onchange event is detected:

 


function selectDevOrStent(){

alert("In SelectDevOrStent");

var category = id("category").options[id("category").selectedIndex].value;

var categoryText = id("category").options[id("category").selectedIndex].text;

//alert("categoryText = " + categoryText);

if(categoryText == 'Stents'){

//alert("Stent selected");

id("stent").style.display = "block";

id("dev").style.display = "none";

id("otherdev").style.display = "none";

getSelectList("category", "StentManufacturerSelect.do", stentmanufcallback);

}else if(categoryText == 'Joint Replacement'){

//alert("Joint Replacement selected");

document.DeviceInputForm.devicetypeid.disabled='true';

document.DeviceInputForm.manufacturer.disabled='true';

document.DeviceInputForm.modelnumber.disabled='true';

getSelectList("category", "DeviceLocationSelect.do?devicecategoryid=" + 
escape(id("category").value), locationcallback);

id("dev").style.display = "block";

id("stent").style.display = "none";

id("otherdev").style.display = "none";

}else if(categoryText == 'Other'){

//alert("Other selected");

id("otherdev").style.display = "block";

id("stent").style.display = "none";

id("dev").style.display = "none";

}else{

//alert("Stent not selected");

id("stent").style.display = "none";

id("dev").style.display = "block";

id("otherdev").style.display = "none";

getSelectList("category", "DeviceTypeSelect.do?devicecategoryid=" + 
escape(id("category").value), devicecallback);

}

}

Everything is fine, I can see the select box and all the options are there but 
when I trigger a onchange event I get the error. Can anyone see what I am doing 
wrong?

 


Thanks.





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Javascript error using struts select tag

2008-03-25 Thread Joe Yuen
 
 
 
I am trying to use the  tag in my jsp page but am getting the 
following  javascript error, 
 
Microsoft JScript runtime error: Object expected.
 
In my jsp page I have:
 




*













 





















 

Here is the javascript funtion that is called when a onchange event is detected:

 

function selectDevOrStent(){

alert("In SelectDevOrStent");

var category = id("category").options[id("category").selectedIndex].value;

var categoryText = id("category").options[id("category").selectedIndex].text;

//alert("categoryText = " + categoryText);

if(categoryText == 'Stents'){

//alert("Stent selected");

id("stent").style.display = "block";

id("dev").style.display = "none";

id("otherdev").style.display = "none";

getSelectList("category", "StentManufacturerSelect.do", stentmanufcallback);

}else if(categoryText == 'Joint Replacement'){

//alert("Joint Replacement selected");

document.DeviceInputForm.devicetypeid.disabled='true';

document.DeviceInputForm.manufacturer.disabled='true';

document.DeviceInputForm.modelnumber.disabled='true';

getSelectList("category", "DeviceLocationSelect.do?devicecategoryid=" + 
escape(id("category").value), locationcallback);

id("dev").style.display = "block";

id("stent").style.display = "none";

id("otherdev").style.display = "none";

}else if(categoryText == 'Other'){

//alert("Other selected");

id("otherdev").style.display = "block";

id("stent").style.display = "none";

id("dev").style.display = "none";

}else{

//alert("Stent not selected");

id("stent").style.display = "none";

id("dev").style.display = "block";

id("otherdev").style.display = "none";

getSelectList("category", "DeviceTypeSelect.do?devicecategoryid=" + 
escape(id("category").value), devicecallback);

}

}

Everything is fine, I can see the select box and all the options are there but 
when I trigger a onchange event I get the error. Can anyone see what I am doing 
wrong?

 

Thanks.



[S2] Javascript error on publish topic with IE

2007-11-07 Thread LEONARD Julien (Consulting for ACCOR Hotels)
Hello,

I have a js function that publish a topic to refresh a s:div.
With Firfox it works fine.
But with IE 6, the first time that I use this function I have a JS error
:

Line : 4872
Car : 1
Error : [object Error]
Code : 0

The second time it works...

Here is my publishing of the topic :
dojo.event.topic.publish("/editCriteresCentrauxTopic");

And my s:div declaration :



I use Struts 2.0.11

Julien


This e-mail, any attachments and the information contained therein ("this 
message") are confidential and intended solely for the use of the addressee(s). 
If you have received this message in error please send it back to the sender 
and delete it. Unauthorized publication, use, dissemination or disclosure of 
this message, either in whole or in part is strictly prohibited.
** 
Ce message electronique et tous les fichiers joints ainsi que  les informations 
contenues dans ce message ( ci apres "le message" ), sont confidentiels et 
destines exclusivement a l'usage de la  personne a laquelle ils sont adresses. 
Si vous avez recu ce message par erreur, merci  de le renvoyer a son emetteur 
et de le detruire. Toutes diffusion, publication, totale ou partielle ou 
divulgation sous quelque forme que se soit non expressement autorisees de ce 
message, sont interdites.
** 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2 v2.1.0] DateTimePicker : Dojo javascript error

2007-05-25 Thread MLENEVEUT
I have some kind of errors in the showcase app I just cleaned/recompiled :

in IE 6 :
DEBUG: DEPRECATED: dojo.event replaced by dojo.event.* -- will be removed 
in version: 0.5
DEBUG: DEPRECATED: dojo.io replaced by dojo.io.* -- will be removed in 
version: 0.5
DEBUG: failed loading 
/struts2-showcase/struts/dojo/struts/widget/StrutsTreeSelector.js with 
error: [SyntaxError: Identificateur, chaîne ou nombre attendu]
FATAL exception raised: Could not load 'struts.widget.StrutsTreeSelector'; 
last tried '__package__.js'
DEBUG: failed loading 
/struts2-showcase/struts/dojo/struts/widget/__package__.js with error: 
[Error: Could not load 'struts.widget.StrutsTreeSelector'; last tried 
'__package__.js']
FATAL exception raised: symbol 'struts.widget' is not defined after 
loading '__package__.js'

in FF 2 :
DEBUG: DEPRECATED: dojo.event replaced by dojo.event.* -- will be removed 
in version: 0.5
DEBUG: DEPRECATED: dojo.io replaced by dojo.io.* -- will be removed in 
version: 0.5





Regards,

Michaël



"Musachy Barroso" <[EMAIL PROTECTED]> 
24/05/2007 19:38
Veuillez répondre à
"Struts Users Mailing List" 


A
"Struts Users Mailing List" 
cc

Objet
Re: [S2 v2.1.0] DateTimePicker : Dojo javascript error






the "/struts" folder is inside the struts-core jar, and no, you shouldn't
have to specify anything else. I'm clueless about this one, even more 
weird
is that you said the datepicker was showing up, even with the error.

musachy

On 5/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 
wrote:
>
> Hi,
>
> I updated the source code, done a "mvn clean" and recompile
> ("mvn")/redeploy the jars, and I have the same errors :
> XP/IE 6 :
> DEBUG: DEPRECATED: dojo.event replaced by dojo.event.* -- will be 
removed
> in version: 0.5
> DEBUG: DEPRECATED: dojo.io replaced by dojo.io.* -- will be removed in
> version: 0.5
> DEBUG: failed loading 
/crm/struts/dojo/struts/widget/StrutsTreeSelector.js
> with error: [SyntaxError: Identificateur, chaîne ou nombre attendu]
> FATAL exception raised: Could not load 
'struts.widget.StrutsTreeSelector';
> last tried '__package__.js'
> DEBUG: failed loading /crm/struts/dojo/struts/widget/__package__.js with
> error: [Error: Could not load 'struts.widget.StrutsTreeSelector'; last
> tried '__package__.js']
> FATAL exception raised: symbol 'struts.widget' is not defined after
> loading '__package__.js'
>
> XP/FF 2 :
> DEBUG: DEPRECATED: dojo.event replaced by dojo.event.* -- will be 
removed
> in version: 0.5
> DEBUG: DEPRECATED: dojo.io replaced by dojo.io.* -- will be removed in
> version: 0.5
>
> Generated HTML :
> 
> // Dojo configuration
> djConfig = {
> isDebug: true
> ,bindEncoding: "UTF-8"
>   ,baseRelativePath: "/crm/struts/dojo/"
>   ,baseScriptUri: "/crm/struts/dojo/"
> };
> 
>src="/crm/struts/dojo/dojo.js">
>
>  src="/crm/struts/ajax/dojoRequire.js">
>
>  type="text/css"/>
>  type="text/javascript">
>  type="text/javascript">
>  type="text/javascript">
>
>
>  action="/crm/contacts.action" method="POST">
> 
> 
>  
> Date
> de début
> : 
>  >  dojoType="struts:StrutsDatePicker"id="contacts_dateDeb"
> name="dateDeb"inputName="dojo.dateDeb"    displayFormat="dd/MM/"
> saveFormat="rfc">
> 
> 
> 
> 
>
>
> I don't have any folder named /crm/struts/... Is that normal that the
> head.ftl generates this ? Do I have to copy some files from
> dojo-plugin/resources to /crm/struts ? Or specify another 
baseRelativePath
> ?
>
> Thanks for your help.
>
> Regards,
>
> Michaël
>
>
>
> [EMAIL PROTECTED]
> 23/05/2007 17:43
> Veuillez répondre à
> "Struts Users Mailing List" 
>
>
> A
> "Struts Users Mailing List" 
> cc
>
> Objet
> Re: [S2 v2.1.0] DateTimePicker : Dojo javascript error
>
>
>
>
>
>
> I get all the SVN workspace this morning, I didn't have it before...
>
> I resolved the javascript bug saying "unterminated string" by modifing 
the
>
> head.ftl : I set the "," before each parameter, elsewhere whe have a ","
> for the last parameter.
> 
> // Dojo configuration
> djConfig = {
> isDebug: ${parameters.debug?default(false)?string}
> ,bindEncoding: "${parameters.encoding}"
> <#if p

Re: [S2 v2.1.0] DateTimePicker : Dojo javascript error

2007-05-24 Thread Musachy Barroso

the "/struts" folder is inside the struts-core jar, and no, you shouldn't
have to specify anything else. I'm clueless about this one, even more weird
is that you said the datepicker was showing up, even with the error.

musachy

On 5/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


Hi,

I updated the source code, done a "mvn clean" and recompile
("mvn")/redeploy the jars, and I have the same errors :
XP/IE 6 :
DEBUG: DEPRECATED: dojo.event replaced by dojo.event.* -- will be removed
in version: 0.5
DEBUG: DEPRECATED: dojo.io replaced by dojo.io.* -- will be removed in
version: 0.5
DEBUG: failed loading /crm/struts/dojo/struts/widget/StrutsTreeSelector.js
with error: [SyntaxError: Identificateur, chaîne ou nombre attendu]
FATAL exception raised: Could not load 'struts.widget.StrutsTreeSelector';
last tried '__package__.js'
DEBUG: failed loading /crm/struts/dojo/struts/widget/__package__.js with
error: [Error: Could not load 'struts.widget.StrutsTreeSelector'; last
tried '__package__.js']
FATAL exception raised: symbol 'struts.widget' is not defined after
loading '__package__.js'

XP/FF 2 :
DEBUG: DEPRECATED: dojo.event replaced by dojo.event.* -- will be removed
in version: 0.5
DEBUG: DEPRECATED: dojo.io replaced by dojo.io.* -- will be removed in
version: 0.5

Generated HTML :

// Dojo configuration
djConfig = {
isDebug: true
,bindEncoding: "UTF-8"
  ,baseRelativePath: "/crm/struts/dojo/"
  ,baseScriptUri: "/crm/struts/dojo/"
};

  












 
Date
de début
: 







I don't have any folder named /crm/struts/... Is that normal that the
head.ftl generates this ? Do I have to copy some files from
dojo-plugin/resources to /crm/struts ? Or specify another baseRelativePath
?

Thanks for your help.

Regards,

Michaël



[EMAIL PROTECTED]
23/05/2007 17:43
Veuillez répondre à
"Struts Users Mailing List" 


A
"Struts Users Mailing List" 
cc

Objet
Re: [S2 v2.1.0] DateTimePicker : Dojo javascript error






I get all the SVN workspace this morning, I didn't have it before...

I resolved the javascript bug saying "unterminated string" by modifing the

head.ftl : I set the "," before each parameter, elsewhere whe have a ","
for the last parameter.

// Dojo configuration
djConfig = {
isDebug: ${parameters.debug?default(false)?string}
,bindEncoding: "${parameters.encoding}"
<#if parameters.baseRelativePath?if_exists != "">
  ,baseRelativePath: "<@s.url value=
'${parameters.baseRelativePath}' includeParams='none' encode='false' />"
  ,baseScriptUri: "<@s.url value='${parameters.baseRelativePath}'
includeParams='none' encode='false' />"
<#else>
  ,baseRelativePath: "${base}/struts/dojo/"
  ,baseScriptUri: "${base}/struts/dojo/"
</#if>
<#if parameters.locale?if_exists != "">
  ,locale: "${parameters.locale}"
</#if>
<#if parameters.extraLocales?exists>
  ,extraLocale: [
<#list parameters.extraLocales as locale>
"${locale}",
</#list>
  ]
</#if>
};


Now I have these errors :
DEBUG: DEPRECATED: dojo.event replaced by dojo.event.* -- will be removed
in version: 0.5
DEBUG: DEPRECATED: dojo.io replaced by dojo.io.* -- will be removed in
version: 0.5
DEBUG: failed loading /crm/struts/dojo/struts/widget/StrutsTreeSelector.js

with error: [SyntaxError: Identificateur, chaîne ou nombre attendu]
FATAL exception raised: Could not load 'struts.widget.StrutsTreeSelector';

last tried '__package__.js'
DEBUG: failed loading /crm/struts/dojo/struts/widget/__package__.js with
error: [Error: Could not load 'struts.widget.StrutsTreeSelector'; last
tried '__package__.js']
FATAL exception raised: symbol 'struts.widget' is not defined after
loading '__package__.js'

I add a folder struts/dojo in my "WebContent" folder, containing the
resource of dojo-plugin "resources\org\apache\struts2\static\dojo\struts",

but the same errors occures :/


Michaël



"Musachy Barroso" <[EMAIL PROTECTED]>
23/05/2007 17:30
Veuillez répondre à
"Struts Users Mailing List" 


A
"Struts Users Mailing List" 
cc

Objet
Re: [S2 v2.1.0] DateTimePicker : Dojo javascript error






Can you do a maven clean and recompile/redeploy? In the last days I've
been
making changes that could result in that kind of problem, but at least it
was fine on the weekend, and it is working for

Re: [S2 v2.1.0] DateTimePicker : Dojo javascript error

2007-05-24 Thread MLENEVEUT
Hi,

I updated the source code, done a "mvn clean" and recompile 
("mvn")/redeploy the jars, and I have the same errors :
XP/IE 6 :
DEBUG: DEPRECATED: dojo.event replaced by dojo.event.* -- will be removed 
in version: 0.5
DEBUG: DEPRECATED: dojo.io replaced by dojo.io.* -- will be removed in 
version: 0.5
DEBUG: failed loading /crm/struts/dojo/struts/widget/StrutsTreeSelector.js 
with error: [SyntaxError: Identificateur, chaîne ou nombre attendu]
FATAL exception raised: Could not load 'struts.widget.StrutsTreeSelector'; 
last tried '__package__.js'
DEBUG: failed loading /crm/struts/dojo/struts/widget/__package__.js with 
error: [Error: Could not load 'struts.widget.StrutsTreeSelector'; last 
tried '__package__.js']
FATAL exception raised: symbol 'struts.widget' is not defined after 
loading '__package__.js'

XP/FF 2 :
DEBUG: DEPRECATED: dojo.event replaced by dojo.event.* -- will be removed 
in version: 0.5
DEBUG: DEPRECATED: dojo.io replaced by dojo.io.* -- will be removed in 
version: 0.5

Generated HTML :

// Dojo configuration
djConfig = {
isDebug: true
,bindEncoding: "UTF-8"
  ,baseRelativePath: "/crm/struts/dojo/"
  ,baseScriptUri: "/crm/struts/dojo/"
};

  








 



 
Date 
de début
: 







I don't have any folder named /crm/struts/... Is that normal that the 
head.ftl generates this ? Do I have to copy some files from 
dojo-plugin/resources to /crm/struts ? Or specify another baseRelativePath 
?

Thanks for your help.

Regards,

Michaël



[EMAIL PROTECTED] 
23/05/2007 17:43
Veuillez répondre à
"Struts Users Mailing List" 


A
"Struts Users Mailing List" 
cc

Objet
Re: [S2 v2.1.0] DateTimePicker : Dojo javascript error






I get all the SVN workspace this morning, I didn't have it before...

I resolved the javascript bug saying "unterminated string" by modifing the 

head.ftl : I set the "," before each parameter, elsewhere whe have a "," 
for the last parameter.

// Dojo configuration
djConfig = {
isDebug: ${parameters.debug?default(false)?string}
,bindEncoding: "${parameters.encoding}"
<#if parameters.baseRelativePath?if_exists != "">
  ,baseRelativePath: "<@s.url value=
'${parameters.baseRelativePath}' includeParams='none' encode='false' />"
  ,baseScriptUri: "<@s.url value='${parameters.baseRelativePath}' 
includeParams='none' encode='false' />"
<#else>
  ,baseRelativePath: "${base}/struts/dojo/"
  ,baseScriptUri: "${base}/struts/dojo/"
</#if> 
<#if parameters.locale?if_exists != "">
  ,locale: "${parameters.locale}"
</#if>
<#if parameters.extraLocales?exists>
  ,extraLocale: [
<#list parameters.extraLocales as locale>
"${locale}",
</#list>
  ]
</#if>
};


Now I have these errors :
DEBUG: DEPRECATED: dojo.event replaced by dojo.event.* -- will be removed 
in version: 0.5
DEBUG: DEPRECATED: dojo.io replaced by dojo.io.* -- will be removed in 
version: 0.5
DEBUG: failed loading /crm/struts/dojo/struts/widget/StrutsTreeSelector.js 

with error: [SyntaxError: Identificateur, chaîne ou nombre attendu]
FATAL exception raised: Could not load 'struts.widget.StrutsTreeSelector'; 

last tried '__package__.js'
DEBUG: failed loading /crm/struts/dojo/struts/widget/__package__.js with 
error: [Error: Could not load 'struts.widget.StrutsTreeSelector'; last 
tried '__package__.js']
FATAL exception raised: symbol 'struts.widget' is not defined after 
loading '__package__.js'

I add a folder struts/dojo in my "WebContent" folder, containing the 
resource of dojo-plugin "resources\org\apache\struts2\static\dojo\struts", 

but the same errors occures :/


Michaël



"Musachy Barroso" <[EMAIL PROTECTED]> 
23/05/2007 17:30
Veuillez répondre à
"Struts Users Mailing List" 


A
"Struts Users Mailing List" 
cc

Objet
Re: [S2 v2.1.0] DateTimePicker : Dojo javascript error






Can you do a maven clean and recompile/redeploy? In the last days I've 
been
making changes that could result in that kind of problem, but at least it
was fine on the weekend, and it is working for me now (XP\FF)

musachy

On 5/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 
wrote:
>
> In Firefox I have this :
> DEBUG: DEPRECATED: dojo.event replaced by dojo.event.* -- will be 
removed
> in version: 0.5
> DEBUG: DEPRECATED: dojo.io replaced by dojo.io.* -

Re: [S2 v2.1.0] DateTimePicker : Dojo javascript error

2007-05-23 Thread MLENEVEUT
I get all the SVN workspace this morning, I didn't have it before...

I resolved the javascript bug saying "unterminated string" by modifing the 
head.ftl : I set the "," before each parameter, elsewhere whe have a "," 
for the last parameter.

// Dojo configuration
djConfig = {
isDebug: ${parameters.debug?default(false)?string}
,bindEncoding: "${parameters.encoding}"
<#if parameters.baseRelativePath?if_exists != "">
  ,baseRelativePath: "<@s.url value=
'${parameters.baseRelativePath}' includeParams='none' encode='false' />"
  ,baseScriptUri: "<@s.url value='${parameters.baseRelativePath}' 
includeParams='none' encode='false' />"
<#else>
  ,baseRelativePath: "${base}/struts/dojo/"
  ,baseScriptUri: "${base}/struts/dojo/"
</#if> 
<#if parameters.locale?if_exists != "">
  ,locale: "${parameters.locale}"
</#if>
<#if parameters.extraLocales?exists>
  ,extraLocale: [
<#list parameters.extraLocales as locale>
"${locale}",
</#list>
  ]
</#if>
};


Now I have these errors :
DEBUG: DEPRECATED: dojo.event replaced by dojo.event.* -- will be removed 
in version: 0.5
DEBUG: DEPRECATED: dojo.io replaced by dojo.io.* -- will be removed in 
version: 0.5
DEBUG: failed loading /crm/struts/dojo/struts/widget/StrutsTreeSelector.js 
with error: [SyntaxError: Identificateur, chaîne ou nombre attendu]
FATAL exception raised: Could not load 'struts.widget.StrutsTreeSelector'; 
last tried '__package__.js'
DEBUG: failed loading /crm/struts/dojo/struts/widget/__package__.js with 
error: [Error: Could not load 'struts.widget.StrutsTreeSelector'; last 
tried '__package__.js']
FATAL exception raised: symbol 'struts.widget' is not defined after 
loading '__package__.js'

I add a folder struts/dojo in my "WebContent" folder, containing the 
resource of dojo-plugin "resources\org\apache\struts2\static\dojo\struts", 
but the same errors occures :/


Michaël



"Musachy Barroso" <[EMAIL PROTECTED]> 
23/05/2007 17:30
Veuillez répondre à
"Struts Users Mailing List" 


A
"Struts Users Mailing List" 
cc

Objet
Re: [S2 v2.1.0] DateTimePicker : Dojo javascript error






Can you do a maven clean and recompile/redeploy? In the last days I've 
been
making changes that could result in that kind of problem, but at least it
was fine on the weekend, and it is working for me now (XP\FF)

musachy

On 5/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 
wrote:
>
> In Firefox I have this :
> DEBUG: DEPRECATED: dojo.event replaced by dojo.event.* -- will be 
removed
> in version: 0.5
> DEBUG: DEPRECATED: dojo.io replaced by dojo.io.* -- will be removed in
> version: 0.5
>
> But nothing in IE.
>
> Just to say, the datepicker is working fine (it opens, I can choose a
> date, it fills the input), but I have this javascript error, and my HTML
> page is not good rendered.
>
>
> Michaël
>
>
>
> "Musachy Barroso" <[EMAIL PROTECTED]>
> 23/05/2007 15:12
> Veuillez répondre à
> "Struts Users Mailing List" 
>
>
> A
> "Struts Users Mailing List" 
> cc
>
> Objet
> Re: [S2 v2.1.0] DateTimePicker : Dojo javascript error
>
>
>
>
>
>
> that usually means that there is a javascript error in one of the struts
> dojo widgets. If you set debug="true" on the head tag you should a lot 
of
> errors on the page.
>
> musachy
>
> On 5/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> wrote:
> >
> > Hi all,
> >
> > I try to insert a datetimepicker tag in my JSP, and I have the 
following
> > javascript error  :
> > symbol 'struts.widget' is not defined after loading '__package__.js'
> >
> > here is my JSP :
> > <%@ taglib uri="/struts-dojo-tags" prefix="sx"%>
> >
> > 
> > 
> >
> > 
> > 
> > 
> >  > "test.datepicker" />
> > 
> > 
> > 
> >
> > 
> >
> > I'm in version 2.1.0-SNAPSHOT (of today) for "core",
> "codebehind-plugin",
> > "dojo-plugin", "sitemesh-plugin", "spring-plugin" and "tiles-plugin"
> jars.
> >
> > What's wrong ?
> >
> > Thanks for your help,
> >
> > Regards,
> >
> > Michaël
>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
>


-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd



Re: [S2 v2.1.0] DateTimePicker : Dojo javascript error

2007-05-23 Thread Musachy Barroso

Can you do a maven clean and recompile/redeploy? In the last days I've been
making changes that could result in that kind of problem, but at least it
was fine on the weekend, and it is working for me now (XP\FF)

musachy

On 5/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


In Firefox I have this :
DEBUG: DEPRECATED: dojo.event replaced by dojo.event.* -- will be removed
in version: 0.5
DEBUG: DEPRECATED: dojo.io replaced by dojo.io.* -- will be removed in
version: 0.5

But nothing in IE.

Just to say, the datepicker is working fine (it opens, I can choose a
date, it fills the input), but I have this javascript error, and my HTML
page is not good rendered.


Michaël



"Musachy Barroso" <[EMAIL PROTECTED]>
23/05/2007 15:12
Veuillez répondre à
"Struts Users Mailing List" 


A
"Struts Users Mailing List" 
cc

Objet
Re: [S2 v2.1.0] DateTimePicker : Dojo javascript error






that usually means that there is a javascript error in one of the struts
dojo widgets. If you set debug="true" on the head tag you should a lot of
errors on the page.

musachy

On 5/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
>
> Hi all,
>
> I try to insert a datetimepicker tag in my JSP, and I have the following
> javascript error  :
> symbol 'struts.widget' is not defined after loading '__package__.js'
>
> here is my JSP :
> <%@ taglib uri="/struts-dojo-tags" prefix="sx"%>
>
> 
> 
>
> 
> 
> 
>  "test.datepicker" />
> 
> 
> 
>
> 
>
> I'm in version 2.1.0-SNAPSHOT (of today) for "core",
"codebehind-plugin",
> "dojo-plugin", "sitemesh-plugin", "spring-plugin" and "tiles-plugin"
jars.
>
> What's wrong ?
>
> Thanks for your help,
>
> Regards,
>
> Michaël




--
"Hey you! Would you help me to carry the stone?" Pink Floyd





--
"Hey you! Would you help me to carry the stone?" Pink Floyd


Re: [S2 v2.1.0] DateTimePicker : Dojo javascript error

2007-05-23 Thread MLENEVEUT
In Firefox I have this :
DEBUG: DEPRECATED: dojo.event replaced by dojo.event.* -- will be removed 
in version: 0.5
DEBUG: DEPRECATED: dojo.io replaced by dojo.io.* -- will be removed in 
version: 0.5

But nothing in IE.

Just to say, the datepicker is working fine (it opens, I can choose a 
date, it fills the input), but I have this javascript error, and my HTML 
page is not good rendered.


Michaël



"Musachy Barroso" <[EMAIL PROTECTED]> 
23/05/2007 15:12
Veuillez répondre à
"Struts Users Mailing List" 


A
"Struts Users Mailing List" 
cc

Objet
Re: [S2 v2.1.0] DateTimePicker : Dojo javascript error






that usually means that there is a javascript error in one of the struts
dojo widgets. If you set debug="true" on the head tag you should a lot of
errors on the page.

musachy

On 5/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 
wrote:
>
> Hi all,
>
> I try to insert a datetimepicker tag in my JSP, and I have the following
> javascript error  :
> symbol 'struts.widget' is not defined after loading '__package__.js'
>
> here is my JSP :
> <%@ taglib uri="/struts-dojo-tags" prefix="sx"%>
>
> 
> 
>
> 
> 
> 
>  "test.datepicker" />
> 
> 
> 
>
> 
>
> I'm in version 2.1.0-SNAPSHOT (of today) for "core", 
"codebehind-plugin",
> "dojo-plugin", "sitemesh-plugin", "spring-plugin" and "tiles-plugin" 
jars.
>
> What's wrong ?
>
> Thanks for your help,
>
> Regards,
>
> Michaël




-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd



Re: [S2 v2.1.0] DateTimePicker : Dojo javascript error

2007-05-23 Thread MLENEVEUT
> Maybe with this :  instead of 
theme is not in the DTD of sx:head

> Check to see if you have scriptaculos.js included as well as you dojo
> scripts...I was getting a problem with firefox in relation to this.
> Andrew
Where do I have to have this scriptaculos.js ? Declared in my JSP ? I 
don't see any file named like this in Dojo plugin.

> are you compiling S2.1 yourself?
Yes, with maven 2 from the SVN source (
http://svn.apache.org/repos/asf/struts/struts2/trunk) of today.

> If you set debug="true"
Nothing more happens :/

My JSP :
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="/struts-dojo-tags" prefix="sx"%>









The HTML generated :

// Dojo configuration
djConfig = {
isDebug: true,
bindEncoding: "UTF-8",
  baseRelativePath: "/crm/struts/dojo/",
  baseScriptUri: "/crm/struts/dojo/",
};


  







 




Date 
de début
: 






Cette page est en cours de construction.






One thing : /crm is my app context. But I don't have any folder named 
"struts"  in my webapp. Do I have to add the Dojo templates in my webapp, 
or does Struts find it in the dojo-plugin.jar ? How does he find the 
dojo.js, dojoRequire.js, ... ?


Michaël



"Julien Leonard" <[EMAIL PROTECTED]> 
23/05/2007 15:56
Veuillez répondre à
"Struts Users Mailing List" 


A
"Struts Users Mailing List" 
cc

Objet
Re: [S2 v2.1.0] DateTimePicker : Dojo javascript error






Maybe with this :  instead of 

2007/5/23, Andrew Penrose <[EMAIL PROTECTED]>:
>
> Check to see if you have scriptaculos.js included as well as you dojo
> scripts...I was getting a problem with firefox in relation to this.
> Andrew
>
> -Original Message-
> From: Musachy Barroso [mailto:[EMAIL PROTECTED]
> Sent: 23 May 2007 14:15
> To: Struts Users Mailing List
> Subject: Re: [S2 v2.1.0] DateTimePicker : Dojo javascript error
>
> I just compiled/deployed the dojo plugin and showcase seems to be 
working
> fine, are you compiling S2.1 yourself?
>
> musachy
>
> On 5/23/07, Musachy Barroso <[EMAIL PROTECTED]> wrote:
> >
> > that usually means that there is a javascript error in one of the 
struts
> > dojo widgets. If you set debug="true" on the head tag you should a lot
> of
> > errors on the page.
> >
> > musachy
> >
> > On 5/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED] >
> > wrote:
> > >
> > > Hi all,
> > >
> > > I try to insert a datetimepicker tag in my JSP, and I have the
> following
> > >
> > > javascript error  :
> > > symbol 'struts.widget' is not defined after loading '__package__.js'
> > >
> > > here is my JSP :
> > > <%@ taglib uri="/struts-dojo-tags" prefix="sx"%>
> > >
> > > 
> > > 
> > >
> > > 
> > > 
> > > 
> > >  > > "test.datepicker" />
> > > 
> > > 
> > > 
> > >
> > > 
> > >
> > > I'm in version 2.1.0-SNAPSHOT (of today) for "core",
> > > "codebehind-plugin",
> > > "dojo-plugin", "sitemesh-plugin", "spring-plugin" and "tiles-plugin"
> > > jars.
> > >
> > > What's wrong ?
> > >
> > > Thanks for your help,
> > >
> > > Regards,
> > >
> > > Michaël
> >
> >
> >
> >
> > --
> > "Hey you! Would you help me to carry the stone?" Pink Floyd
>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



Re: [S2 v2.1.0] DateTimePicker : Dojo javascript error

2007-05-23 Thread Julien Leonard

Maybe with this :  instead of 

2007/5/23, Andrew Penrose <[EMAIL PROTECTED]>:


Check to see if you have scriptaculos.js included as well as you dojo
scripts...I was getting a problem with firefox in relation to this.
Andrew

-Original Message-
From: Musachy Barroso [mailto:[EMAIL PROTECTED]
Sent: 23 May 2007 14:15
To: Struts Users Mailing List
Subject: Re: [S2 v2.1.0] DateTimePicker : Dojo javascript error

I just compiled/deployed the dojo plugin and showcase seems to be working
fine, are you compiling S2.1 yourself?

musachy

On 5/23/07, Musachy Barroso <[EMAIL PROTECTED]> wrote:
>
> that usually means that there is a javascript error in one of the struts
> dojo widgets. If you set debug="true" on the head tag you should a lot
of
> errors on the page.
>
> musachy
>
> On 5/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED] >
> wrote:
> >
> > Hi all,
> >
> > I try to insert a datetimepicker tag in my JSP, and I have the
following
> >
> > javascript error  :
> > symbol 'struts.widget' is not defined after loading '__package__.js'
> >
> > here is my JSP :
> > <%@ taglib uri="/struts-dojo-tags" prefix="sx"%>
> >
> > 
> > 
> >
> > 
> > 
> > 
> >  > "test.datepicker" />
> > 
> > 
> > 
> >
> > 
> >
> > I'm in version 2.1.0-SNAPSHOT (of today) for "core",
> > "codebehind-plugin",
> > "dojo-plugin", "sitemesh-plugin", "spring-plugin" and "tiles-plugin"
> > jars.
> >
> > What's wrong ?
> >
> > Thanks for your help,
> >
> > Regards,
> >
> > Michaël
>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd




--
"Hey you! Would you help me to carry the stone?" Pink Floyd

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: [S2 v2.1.0] DateTimePicker : Dojo javascript error

2007-05-23 Thread Andrew Penrose
Check to see if you have scriptaculos.js included as well as you dojo 
scripts...I was getting a problem with firefox in relation to this.
Andrew

-Original Message-
From: Musachy Barroso [mailto:[EMAIL PROTECTED] 
Sent: 23 May 2007 14:15
To: Struts Users Mailing List
Subject: Re: [S2 v2.1.0] DateTimePicker : Dojo javascript error

I just compiled/deployed the dojo plugin and showcase seems to be working
fine, are you compiling S2.1 yourself?

musachy

On 5/23/07, Musachy Barroso <[EMAIL PROTECTED]> wrote:
>
> that usually means that there is a javascript error in one of the struts
> dojo widgets. If you set debug="true" on the head tag you should a lot of
> errors on the page.
>
> musachy
>
> On 5/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED] >
> wrote:
> >
> > Hi all,
> >
> > I try to insert a datetimepicker tag in my JSP, and I have the following
> >
> > javascript error  :
> > symbol 'struts.widget' is not defined after loading '__package__.js'
> >
> > here is my JSP :
> > <%@ taglib uri="/struts-dojo-tags" prefix="sx"%>
> >
> > 
> > 
> >
> > 
> > 
> > 
> >  > "test.datepicker" />
> > 
> > 
> > 
> >
> > 
> >
> > I'm in version 2.1.0-SNAPSHOT (of today) for "core",
> > "codebehind-plugin",
> > "dojo-plugin", "sitemesh-plugin", "spring-plugin" and "tiles-plugin"
> > jars.
> >
> > What's wrong ?
> >
> > Thanks for your help,
> >
> > Regards,
> >
> > Michaël
>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd




-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2 v2.1.0] DateTimePicker : Dojo javascript error

2007-05-23 Thread Musachy Barroso

I just compiled/deployed the dojo plugin and showcase seems to be working
fine, are you compiling S2.1 yourself?

musachy

On 5/23/07, Musachy Barroso <[EMAIL PROTECTED]> wrote:


that usually means that there is a javascript error in one of the struts
dojo widgets. If you set debug="true" on the head tag you should a lot of
errors on the page.

musachy

On 5/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED] >
wrote:
>
> Hi all,
>
> I try to insert a datetimepicker tag in my JSP, and I have the following
>
> javascript error  :
> symbol 'struts.widget' is not defined after loading '__package__.js'
>
> here is my JSP :
> <%@ taglib uri="/struts-dojo-tags" prefix="sx"%>
>
> 
> 
>
> 
> 
> 
>  "test.datepicker" />
> 
> 
> 
>
> 
>
> I'm in version 2.1.0-SNAPSHOT (of today) for "core",
> "codebehind-plugin",
> "dojo-plugin", "sitemesh-plugin", "spring-plugin" and "tiles-plugin"
> jars.
>
> What's wrong ?
>
> Thanks for your help,
>
> Regards,
>
> Michaël




--
"Hey you! Would you help me to carry the stone?" Pink Floyd





--
"Hey you! Would you help me to carry the stone?" Pink Floyd


Re: [S2 v2.1.0] DateTimePicker : Dojo javascript error

2007-05-23 Thread Musachy Barroso

that usually means that there is a javascript error in one of the struts
dojo widgets. If you set debug="true" on the head tag you should a lot of
errors on the page.

musachy

On 5/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


Hi all,

I try to insert a datetimepicker tag in my JSP, and I have the following
javascript error  :
symbol 'struts.widget' is not defined after loading '__package__.js'

here is my JSP :
<%@ taglib uri="/struts-dojo-tags" prefix="sx"%>














I'm in version 2.1.0-SNAPSHOT (of today) for "core", "codebehind-plugin",
"dojo-plugin", "sitemesh-plugin", "spring-plugin" and "tiles-plugin" jars.

What's wrong ?

Thanks for your help,

Regards,

Michaël





--
"Hey you! Would you help me to carry the stone?" Pink Floyd


[S2 v2.1.0] DateTimePicker : Dojo javascript error

2007-05-23 Thread MLENEVEUT
Hi all,

I try to insert a datetimepicker tag in my JSP, and I have the following 
javascript error  :
symbol 'struts.widget' is not defined after loading '__package__.js'

here is my JSP :
<%@ taglib uri="/struts-dojo-tags" prefix="sx"%>














I'm in version 2.1.0-SNAPSHOT (of today) for "core", "codebehind-plugin", 
"dojo-plugin", "sitemesh-plugin", "spring-plugin" and "tiles-plugin" jars.

What's wrong ?

Thanks for your help,

Regards,

Michaël

JavaScript Error destroying Cache

2007-01-22 Thread Chetan Pandey
Hi All:

 

I have a Web-page for Add-Event in which I am using a date-picker.js File.

 

On choosing a Date from the Javascript pop-up I get an Error "calendar is
undefined".

 

If I ignore it and click submit I go to the preview Page.

 

Over here if I click the back button and go to the Main Form all Fields show
as Empty.

 

If I do not touch the Date Button then everything works fine. Back Buttton
will show all fields properly.

 

This  error is only happening in IE 6 and 7. In FireFox no such problem
occurs.

 

Any views.

 

Thanks 

 

Chetan

 

_
CHETAN PANDEY  Executive - Technology Services
BLUE, 1 Maritime Square, #13-02 Harbourfront Centre, Singapore 099253 
DID +65-6212-0863 main line +65-6333-3336 fax +65 6336-6334
email   [EMAIL PROTECTED] website
 www.BLUEsingapore.com
_
BEIJING  SHANGHAI   LONDON TOKYO  PALO ALTO  SINGAPORE

CONFIDENTIALITY STATEMENT: This email and its attachment(s) contain
Privileged/Confidential information. If you are not the intended recipient,
the distribution, use or replication of the information in this email is
strictly prohibited. If you have received this email in error, please notify
the sender immediately by return email, then delete this email and any
attached documents. Any opinions, conclusions or views expressed in this
email are those of the individual sender, except where he/she -- expressly
and with authority  -- states them to be the views of BLUE.

 



Re: Validator framework javascript error messages

2006-10-16 Thread Laurie Harper

Puneet Lakhina wrote:

Hi,
I have the following key value pair in ApplicationResource.properties

required = {0} is required.

I used this when I was doing only server side validation, to display a list
of error messages when some validation failed.

Now Im using the  to do the same thing on client side 
also.

But my problem is that now i get error messages like
Name is required
Status is requried

in an alert box on the jsp page when i submit with some validation 
errors. I

would like to maybe use different error messages for what is displayed on
the client side. Is that possible??
Following is my validation.xml





 
   
   
 
 
   
   
 




Im using struts 1.1


AFAIK, there's no way to use different validation messages client-side 
and server-side. However, what you should be able to do is remove the 
markup from the error messages you have, and use the server-side error 
reporting tags to insert it.


How you achieve the server-side part of that depends on how you display 
your error messages. If you use html:errors, you can use the 
errors.header, errors.footer, errors.prefix and errors.suffix resources 
[1]. If you use the html:messages tag [2], you would put the markup 
directly into your JSP / view.


L.

[1] http://struts.apache.org/1.2.9/userGuide/struts-html.html#errors
[2] http://struts.apache.org/1.2.9/userGuide/struts-html.html#messages


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Validator framework javascript error messages

2006-10-10 Thread Puneet Lakhina

Hi,
I have the following key value pair in ApplicationResource.properties

required = {0} is required.

I used this when I was doing only server side validation, to display a list
of error messages when some validation failed.

Now Im using the  to do the same thing on client side also.
But my problem is that now i get error messages like
Name is required
Status is requried

in an alert box on the jsp page when i submit with some validation errors. I
would like to maybe use different error messages for what is displayed on
the client side. Is that possible??
Following is my validation.xml





 
   
   
 
 
   
   
 




Im using struts 1.1
--
Puneet


firefox javascript error from validation js

2005-01-13 Thread Nathan Coast
the static js generated from:

throws the following error to the firefox javascript console:
Error: [Exception... "'Permission denied to get property 
XULElement.selectedIndex' when calling method: 
[nsIAutoCompletePopup::selectedIndex]"  nsresult: "0x8057001e 
(NS_ERROR_XPC_JS_THREW_STRING)"  location: "JS frame :: 
http://media:8080/tomcat/acl/Validation.jsp :: validateRequired :: line 
258"  data: no]
Source File: http://media:8080/tomcat/acl/Validation.jsp
Line: 258

the js that throws the error is the alert at the end of the function:
validateRequired(form) {
..
.
.
}
if (fields.length > 0) {
   focusField.focus();
   alert(fields.join('\n'));  // this line causes the error
}
return isValid;
}
other alerts in the js throw the same error.  The javascript seems to 
work fine though.

Firefox bug?
cheers
Nathan
--
Nathan Coast
Managing Director
Codeczar Ltd
mob : (852) 9049 5581
tel : (852) 2834 8733
fax : (852) 2834 8755
web : http://www.codeczar.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: client-side validation javascript error

2004-10-26 Thread Niall Pemberton
Version 1.2.2 of Struts was withdrawn because of problems. The current "ga"
quality release of Struts is Version 1.2.4

http://struts.apache.org/acquiring.html

Niall

- Original Message - 
From: "Jeffrey Ford" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 26, 2004 5:52 PM
Subject: client-side validation javascript error


> Hi,
>
> I'm trying to get client-side validation to work using Struts, v. 1.2.2.
> More specifically, I'm receiving a javascript error while trying to use
the
> 'required' validation rule.  The error in IE says:
>
> Error: 'required' is undefined
>
> When I look at the generated javascript, this is indeed true.  However,
> there's a function called 'locationForm_required' where 'locationForm' is
> the name of my form.  It seems that the 'validateRequired' method should
be
> calling a 'new locationForm_required( )' instead of a 'new required( ).
>
> function locationForm_required () {
>  this.a0 = new Array("shortDescription", "Short Description is
> required.", new Function ("varName", " return this[varName];"));
> }
>
> function validateRequired(form) {
> var isValid = true;
> var focusField = null;
> var i = 0;
> var fields = new Array();
> oRequired = new required();
> for (x in oRequired) {
> var field = form[oRequired[x][0]];
> ...  
>
>
> Does anyone have any insight into this?
>
> Thanks in advance,
> Jeff
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



client-side validation javascript error

2004-10-26 Thread Jeffrey Ford
Hi,

I'm trying to get client-side validation to work using Struts, v. 1.2.2.
More specifically, I'm receiving a javascript error while trying to use the
'required' validation rule.  The error in IE says:

Error: 'required' is undefined

When I look at the generated javascript, this is indeed true.  However,
there's a function called 'locationForm_required' where 'locationForm' is
the name of my form.  It seems that the 'validateRequired' method should be
calling a 'new locationForm_required( )' instead of a 'new required( ).

function locationForm_required () {
 this.a0 = new Array("shortDescription", "Short Description is
required.", new Function ("varName", " return this[varName];"));
}

function validateRequired(form) {
var isValid = true;
var focusField = null;
var i = 0;
var fields = new Array();
oRequired = new required();
for (x in oRequired) {
var field = form[oRequired[x][0]];
...  


Does anyone have any insight into this?

Thanks in advance,
Jeff




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Javascript error in struts validator.

2004-07-03 Thread Kote, Nijaguna Sangankal
Am still getting javascript error:  

function validateRequired(form) {
> > var isValid = true;
> > var focusField = null;
> > var i = 0;
> > var fields = new Array();
> > var formName = form.getAttributeNode("name"); //error is at
this

I used ms script debugger, it gives me error at above line... 

Please help me!!

-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 02, 2004 8:29 PM
To: Struts Users Mailing List
Subject: Re: Javascript error in struts validator.

Whoops yes 2nd July, thanks.

Niall

- Original Message -
From: "Matt Bathje" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, July 02, 2004 2:57 PM
Subject: Re: Javascript error in struts validator.


> Niall - I think you mean the 2nd of July. The nighly build from the
2nd of
> june still has the broken version of the multi-form fix in it I
believe.
>
> To the original poster:
> - Use the nightly build from the 2nd of july:
> http://cvs.apache.org/builds/jakarta-struts/nightly/ - at this point
you
> will no longer be using Struts 1.1, but Struts 1.2.0.
> - Make sure that you replace your commons-validator.jar and
> validator-rules.xml file with the ones from the nightly build
download.
(As
> well as all other jars!)
> - If it still doesn't work - what web browser/version are you using?
Based
> on your posts, it seems like your problem is with the
> form.getAttributeNode("name") javascript command - the
getAttributeNode
> method is a DOM Level 1 command, which was added to browsers
around/after
> 2000 I believe. If you are using a non-standard or really old browser,
you
> may have trouble with it. If you are using a browser that should
support
it,
> throw a javascript debugger on the page and see what happens.
>
> Matt Bathje
>
> - Original Message - 
> From: "Niall Pemberton" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, July 02, 2004 8:11 AM
> Subject: Re: Javascript error in struts validator.
>
>
> > Thats what I was trying to say - the patch (i.e. fix) was applied on
the
> 1st
> > June to   - try downloading the Struts nightly from
June
> > 2nd.
> >
> > Niall
> >
> > - Original Message - 
> > From: "Kote, Nijaguna Sangankal" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Friday, July 02, 2004 2:01 PM
> > Subject: RE: Javascript error in struts validator.
> >
> >
> > So is there any fix for this???
> > I am using struts1.1 and this has stopped my work.
> >
> > Please give me some hints...
> >
> > -Original Message-
> > From: Niall Pemberton [mailto:[EMAIL PROTECTED]
> > Sent: Friday, July 02, 2004 6:27 PM
> > To: Struts Users Mailing List
> > Subject: Re: Javascript error in struts validator.
> >
> > There was an outstanding bug against the  tag and a
> > patch was applied on 1st June
> >
> > http://issues.apache.org/bugzilla/show_bug.cgi?id=29796
> >
> > Maybe try the version from 2nd June
> >
> > Niall
> >
> > - Original Message -
> > From: "Kote, Nijaguna Sangankal" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Friday, July 02, 2004 11:34 AM
> > Subject: RE: Javascript error in struts validator.
> >
> >
> > Hi,
> > I downoaded, latest nightly build which was on 1st of June...
> > and it seems its not working..
> >
> > it gives some other javascript error.
> >
> > function validateRequired(form) {
> > var isValid = true;
> > var focusField = null;
> > var i = 0;
> > var fields = new Array();
> > var formName = form.getAttributeNode("name"); //error is at
this
> > line
> >
> > oRequired = eval('new ' + formName.value + '_required()');
> >
> >
> > Can u tell me which version did u download.?? I need to finish of
this.
> >
> > Regards.
> > Guna
> >
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent: Friday, July 02, 2004 3:22 PM
> > To: [EMAIL PROTECTED]
> > Subject: SV: Javascript error in struts validator.
> >
> > Hi
> >
> > I had the same problem - I think it was a mix of old and new struts
> > components. What I did was get the latest nightly 

Re: Javascript error in struts validator.

2004-07-02 Thread Niall Pemberton
Whoops yes 2nd July, thanks.

Niall

- Original Message - 
From: "Matt Bathje" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, July 02, 2004 2:57 PM
Subject: Re: Javascript error in struts validator.


> Niall - I think you mean the 2nd of July. The nighly build from the 2nd of
> june still has the broken version of the multi-form fix in it I believe.
>
> To the original poster:
> - Use the nightly build from the 2nd of july:
> http://cvs.apache.org/builds/jakarta-struts/nightly/ - at this point you
> will no longer be using Struts 1.1, but Struts 1.2.0.
> - Make sure that you replace your commons-validator.jar and
> validator-rules.xml file with the ones from the nightly build download.
(As
> well as all other jars!)
> - If it still doesn't work - what web browser/version are you using? Based
> on your posts, it seems like your problem is with the
> form.getAttributeNode("name") javascript command - the getAttributeNode
> method is a DOM Level 1 command, which was added to browsers around/after
> 2000 I believe. If you are using a non-standard or really old browser, you
> may have trouble with it. If you are using a browser that should support
it,
> throw a javascript debugger on the page and see what happens.
>
> Matt Bathje
>
> - Original Message - 
> From: "Niall Pemberton" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, July 02, 2004 8:11 AM
> Subject: Re: Javascript error in struts validator.
>
>
> > Thats what I was trying to say - the patch (i.e. fix) was applied on the
> 1st
> > June to   - try downloading the Struts nightly from
June
> > 2nd.
> >
> > Niall
> >
> > - Original Message - 
> > From: "Kote, Nijaguna Sangankal" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Friday, July 02, 2004 2:01 PM
> > Subject: RE: Javascript error in struts validator.
> >
> >
> > So is there any fix for this???
> > I am using struts1.1 and this has stopped my work.
> >
> > Please give me some hints...
> >
> > -Original Message-
> > From: Niall Pemberton [mailto:[EMAIL PROTECTED]
> > Sent: Friday, July 02, 2004 6:27 PM
> > To: Struts Users Mailing List
> > Subject: Re: Javascript error in struts validator.
> >
> > There was an outstanding bug against the  tag and a
> > patch was applied on 1st June
> >
> > http://issues.apache.org/bugzilla/show_bug.cgi?id=29796
> >
> > Maybe try the version from 2nd June
> >
> > Niall
> >
> > - Original Message -
> > From: "Kote, Nijaguna Sangankal" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Friday, July 02, 2004 11:34 AM
> > Subject: RE: Javascript error in struts validator.
> >
> >
> > Hi,
> > I downoaded, latest nightly build which was on 1st of June...
> > and it seems its not working..
> >
> > it gives some other javascript error.
> >
> > function validateRequired(form) {
> > var isValid = true;
> > var focusField = null;
> > var i = 0;
> > var fields = new Array();
> > var formName = form.getAttributeNode("name"); //error is at this
> > line
> >
> > oRequired = eval('new ' + formName.value + '_required()');
> >
> >
> > Can u tell me which version did u download.?? I need to finish of this.
> >
> > Regards.
> > Guna
> >
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent: Friday, July 02, 2004 3:22 PM
> > To: [EMAIL PROTECTED]
> > Subject: SV: Javascript error in struts validator.
> >
> > Hi
> >
> > I had the same problem - I think it was a mix of old and new struts
> > components. What I did was get the latest nightly build, and replace
> > everything. After that it all went away.
> >
> > Hermod
> >
> > -Opprinnelig melding-
> > Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
> > Sendt: 2. juli 2004 10:58
> > Til: Struts Users Mailing List
> > Emne: RE: Javascript error in struts validator.
> >
> >
> >  Hi Hermod,
> >
> > Thanks for the reply and the suggestion,
> > I should upgrade only the validator ?? Or entire struts??
> >
> > Regards/Guna
> >
> > -Original Messag

Re: Javascript error in struts validator.

2004-07-02 Thread Matt Bathje
As I stated below, the nightly build is Struts 1.2.0 - You are no longer
using Struts 1.1 once you use the nightly build. You need to make sure that
you replace all the jars, and the validator-rules.xml file with what is in
the download file.

Matt Bathje


- Original Message - 
From: "Kote, Nijaguna Sangankal" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, July 02, 2004 9:17 AM
Subject: RE: Javascript error in struts validator.


> I have debugged using firefox, it shows that invalidFunction.
>
> I have downloaded, struts latest one which is July 2nd.
> Now what is this sturs 1.2.x or  1.1??
> And where can I find 1.1 version.
>
>
> -Original Message-
> From: Matt Bathje [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 02, 2004 7:36 PM
> To: Struts Users Mailing List
> Subject: Re: Javascript error in struts validator.
>
> Nope, IE 6 should support it just fine. Get the ms script debugger and
> see if that helps in figuring out the problem. (Or better yet get
> Firefox and its script debugger)
>
> I really think the problem is you have a mix of struts 1.1 and 1.2.x
> stuff in your jars/configurations though, and if you fixed that it would
> solve the problem.
>
> Matt Bathje
>
>
> - Original Message -
> From: "Kote, Nijaguna Sangankal" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, July 02, 2004 9:03 AM
> Subject: RE: Javascript error in struts validator.
>
>
> > Am using IE 6.0 SP1, should I have msxml?? To work with..??
> >
> > -----Original Message-
> > From: Matt Bathje [mailto:[EMAIL PROTECTED]
> > Sent: Friday, July 02, 2004 7:27 PM
> > To: Struts Users Mailing List
> > Subject: Re: Javascript error in struts validator.
> >
> > Niall - I think you mean the 2nd of July. The nighly build from the
> 2nd
> > of june still has the broken version of the multi-form fix in it I
> > believe.
> >
> > To the original poster:
> > - Use the nightly build from the 2nd of july:
> > http://cvs.apache.org/builds/jakarta-struts/nightly/ - at this point
> you
> > will no longer be using Struts 1.1, but Struts 1.2.0.
> > - Make sure that you replace your commons-validator.jar and
> > validator-rules.xml file with the ones from the nightly build
> download.
> > (As well as all other jars!)
> > - If it still doesn't work - what web browser/version are you using?
> > Based on your posts, it seems like your problem is with the
> > form.getAttributeNode("name") javascript command - the
> getAttributeNode
> > method is a DOM Level 1 command, which was added to browsers
> > around/after 2000 I believe. If you are using a non-standard or really
> > old browser, you may have trouble with it. If you are using a browser
> > that should support it, throw a javascript debugger on the page and
> see
> > what happens.
> >
> > Matt Bathje
> >
> > - Original Message -
> > From: "Niall Pemberton" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Friday, July 02, 2004 8:11 AM
> > Subject: Re: Javascript error in struts validator.
> >
> >
> > > Thats what I was trying to say - the patch (i.e. fix) was applied on
> > the
> > 1st
> > > June to   - try downloading the Struts nightly from
> > June
> > > 2nd.
> > >
> > > Niall
> > >
> > > - Original Message - 
> > > From: "Kote, Nijaguna Sangankal" <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > Sent: Friday, July 02, 2004 2:01 PM
> > > Subject: RE: Javascript error in struts validator.
> > >
> > >
> > > So is there any fix for this???
> > > I am using struts1.1 and this has stopped my work.
> > >
> > > Please give me some hints...
> > >
> > > -Original Message-----
> > > From: Niall Pemberton [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, July 02, 2004 6:27 PM
> > > To: Struts Users Mailing List
> > > Subject: Re: Javascript error in struts validator.
> > >
> > > There was an outstanding bug against the  tag and a
> > > patch was applied on 1st June
> > >
> > > http://issues.apache.org/bugzilla/show_bug.cgi?id=29796
> > >
> > > Maybe try the version from 2nd June
> > >
> > > Niall
> > >
> > > - Original Me

RE: Javascript error in struts validator.

2004-07-02 Thread Kote, Nijaguna Sangankal
I have debugged using firefox, it shows that invalidFunction.

I have downloaded, struts latest one which is July 2nd.
Now what is this sturs 1.2.x or  1.1??
And where can I find 1.1 version.


-Original Message-
From: Matt Bathje [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 02, 2004 7:36 PM
To: Struts Users Mailing List
Subject: Re: Javascript error in struts validator.

Nope, IE 6 should support it just fine. Get the ms script debugger and
see if that helps in figuring out the problem. (Or better yet get
Firefox and its script debugger)

I really think the problem is you have a mix of struts 1.1 and 1.2.x
stuff in your jars/configurations though, and if you fixed that it would
solve the problem.

Matt Bathje


- Original Message -
From: "Kote, Nijaguna Sangankal" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, July 02, 2004 9:03 AM
Subject: RE: Javascript error in struts validator.


> Am using IE 6.0 SP1, should I have msxml?? To work with..??
>
> -Original Message-
> From: Matt Bathje [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 02, 2004 7:27 PM
> To: Struts Users Mailing List
> Subject: Re: Javascript error in struts validator.
>
> Niall - I think you mean the 2nd of July. The nighly build from the
2nd
> of june still has the broken version of the multi-form fix in it I
> believe.
>
> To the original poster:
> - Use the nightly build from the 2nd of july:
> http://cvs.apache.org/builds/jakarta-struts/nightly/ - at this point
you
> will no longer be using Struts 1.1, but Struts 1.2.0.
> - Make sure that you replace your commons-validator.jar and
> validator-rules.xml file with the ones from the nightly build
download.
> (As well as all other jars!)
> - If it still doesn't work - what web browser/version are you using?
> Based on your posts, it seems like your problem is with the
> form.getAttributeNode("name") javascript command - the
getAttributeNode
> method is a DOM Level 1 command, which was added to browsers
> around/after 2000 I believe. If you are using a non-standard or really
> old browser, you may have trouble with it. If you are using a browser
> that should support it, throw a javascript debugger on the page and
see
> what happens.
>
> Matt Bathje
>
> - Original Message -
> From: "Niall Pemberton" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, July 02, 2004 8:11 AM
> Subject: Re: Javascript error in struts validator.
>
>
> > Thats what I was trying to say - the patch (i.e. fix) was applied on
> the
> 1st
> > June to   - try downloading the Struts nightly from
> June
> > 2nd.
> >
> > Niall
> >
> > - Original Message - 
> > From: "Kote, Nijaguna Sangankal" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Friday, July 02, 2004 2:01 PM
> > Subject: RE: Javascript error in struts validator.
> >
> >
> > So is there any fix for this???
> > I am using struts1.1 and this has stopped my work.
> >
> > Please give me some hints...
> >
> > -Original Message-
> > From: Niall Pemberton [mailto:[EMAIL PROTECTED]
> > Sent: Friday, July 02, 2004 6:27 PM
> > To: Struts Users Mailing List
> > Subject: Re: Javascript error in struts validator.
> >
> > There was an outstanding bug against the  tag and a
> > patch was applied on 1st June
> >
> > http://issues.apache.org/bugzilla/show_bug.cgi?id=29796
> >
> > Maybe try the version from 2nd June
> >
> > Niall
> >
> > - Original Message -
> > From: "Kote, Nijaguna Sangankal" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Friday, July 02, 2004 11:34 AM
> > Subject: RE: Javascript error in struts validator.
> >
> >
> > Hi,
> > I downoaded, latest nightly build which was on 1st of June...
> > and it seems its not working..
> >
> > it gives some other javascript error.
> >
> > function validateRequired(form) {
> > var isValid = true;
> >     var focusField = null;
> > var i = 0;
> > var fields = new Array();
> > var formName = form.getAttributeNode("name"); //error is at
> this
> > line
> >
> > oRequired = eval('new ' + formName.value + '_required()');
> >
> >
> > Can u tell me which version did u download.?? I need to finish of
> this.
> >
> > Re

Re: Javascript error in struts validator.

2004-07-02 Thread Matt Bathje
Nope, IE 6 should support it just fine. Get the ms script debugger and see
if that helps in figuring out the problem. (Or better yet get Firefox and
its script debugger)

I really think the problem is you have a mix of struts 1.1 and 1.2.x stuff
in your jars/configurations though, and if you fixed that it would solve the
problem.

Matt Bathje


- Original Message - 
From: "Kote, Nijaguna Sangankal" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, July 02, 2004 9:03 AM
Subject: RE: Javascript error in struts validator.


> Am using IE 6.0 SP1, should I have msxml?? To work with..??
>
> -Original Message-
> From: Matt Bathje [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 02, 2004 7:27 PM
> To: Struts Users Mailing List
> Subject: Re: Javascript error in struts validator.
>
> Niall - I think you mean the 2nd of July. The nighly build from the 2nd
> of june still has the broken version of the multi-form fix in it I
> believe.
>
> To the original poster:
> - Use the nightly build from the 2nd of july:
> http://cvs.apache.org/builds/jakarta-struts/nightly/ - at this point you
> will no longer be using Struts 1.1, but Struts 1.2.0.
> - Make sure that you replace your commons-validator.jar and
> validator-rules.xml file with the ones from the nightly build download.
> (As well as all other jars!)
> - If it still doesn't work - what web browser/version are you using?
> Based on your posts, it seems like your problem is with the
> form.getAttributeNode("name") javascript command - the getAttributeNode
> method is a DOM Level 1 command, which was added to browsers
> around/after 2000 I believe. If you are using a non-standard or really
> old browser, you may have trouble with it. If you are using a browser
> that should support it, throw a javascript debugger on the page and see
> what happens.
>
> Matt Bathje
>
> - Original Message -
> From: "Niall Pemberton" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, July 02, 2004 8:11 AM
> Subject: Re: Javascript error in struts validator.
>
>
> > Thats what I was trying to say - the patch (i.e. fix) was applied on
> the
> 1st
> > June to   - try downloading the Struts nightly from
> June
> > 2nd.
> >
> > Niall
> >
> > - Original Message - 
> > From: "Kote, Nijaguna Sangankal" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Friday, July 02, 2004 2:01 PM
> > Subject: RE: Javascript error in struts validator.
> >
> >
> > So is there any fix for this???
> > I am using struts1.1 and this has stopped my work.
> >
> > Please give me some hints...
> >
> > -Original Message-
> > From: Niall Pemberton [mailto:[EMAIL PROTECTED]
> > Sent: Friday, July 02, 2004 6:27 PM
> > To: Struts Users Mailing List
> > Subject: Re: Javascript error in struts validator.
> >
> > There was an outstanding bug against the  tag and a
> > patch was applied on 1st June
> >
> > http://issues.apache.org/bugzilla/show_bug.cgi?id=29796
> >
> > Maybe try the version from 2nd June
> >
> > Niall
> >
> > - Original Message -
> > From: "Kote, Nijaguna Sangankal" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Friday, July 02, 2004 11:34 AM
> > Subject: RE: Javascript error in struts validator.
> >
> >
> > Hi,
> > I downoaded, latest nightly build which was on 1st of June...
> > and it seems its not working..
> >
> > it gives some other javascript error.
> >
> > function validateRequired(form) {
> > var isValid = true;
> >     var focusField = null;
> > var i = 0;
> > var fields = new Array();
> > var formName = form.getAttributeNode("name"); //error is at
> this
> > line
> >
> > oRequired = eval('new ' + formName.value + '_required()');
> >
> >
> > Can u tell me which version did u download.?? I need to finish of
> this.
> >
> > Regards.
> > Guna
> >
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent: Friday, July 02, 2004 3:22 PM
> > To: [EMAIL PROTECTED]
> > Subject: SV: Javascript error in struts validator.
> >
> > Hi
> >
> > I had the same problem - I think it was a mix of old and new struts
> > comp

RE: Javascript error in struts validator.

2004-07-02 Thread Kote, Nijaguna Sangankal
Am using IE 6.0 SP1, should I have msxml?? To work with..?? 

-Original Message-
From: Matt Bathje [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 02, 2004 7:27 PM
To: Struts Users Mailing List
Subject: Re: Javascript error in struts validator.

Niall - I think you mean the 2nd of July. The nighly build from the 2nd
of june still has the broken version of the multi-form fix in it I
believe.

To the original poster:
- Use the nightly build from the 2nd of july:
http://cvs.apache.org/builds/jakarta-struts/nightly/ - at this point you
will no longer be using Struts 1.1, but Struts 1.2.0.
- Make sure that you replace your commons-validator.jar and
validator-rules.xml file with the ones from the nightly build download.
(As well as all other jars!)
- If it still doesn't work - what web browser/version are you using?
Based on your posts, it seems like your problem is with the
form.getAttributeNode("name") javascript command - the getAttributeNode
method is a DOM Level 1 command, which was added to browsers
around/after 2000 I believe. If you are using a non-standard or really
old browser, you may have trouble with it. If you are using a browser
that should support it, throw a javascript debugger on the page and see
what happens.

Matt Bathje

- Original Message -
From: "Niall Pemberton" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, July 02, 2004 8:11 AM
Subject: Re: Javascript error in struts validator.


> Thats what I was trying to say - the patch (i.e. fix) was applied on
the
1st
> June to   - try downloading the Struts nightly from
June
> 2nd.
>
> Niall
>
> - Original Message - 
> From: "Kote, Nijaguna Sangankal" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, July 02, 2004 2:01 PM
> Subject: RE: Javascript error in struts validator.
>
>
> So is there any fix for this???
> I am using struts1.1 and this has stopped my work.
>
> Please give me some hints...
>
> -Original Message-
> From: Niall Pemberton [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 02, 2004 6:27 PM
> To: Struts Users Mailing List
> Subject: Re: Javascript error in struts validator.
>
> There was an outstanding bug against the  tag and a
> patch was applied on 1st June
>
> http://issues.apache.org/bugzilla/show_bug.cgi?id=29796
>
> Maybe try the version from 2nd June
>
> Niall
>
> - Original Message -
> From: "Kote, Nijaguna Sangankal" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, July 02, 2004 11:34 AM
> Subject: RE: Javascript error in struts validator.
>
>
> Hi,
> I downoaded, latest nightly build which was on 1st of June...
> and it seems its not working..
>
> it gives some other javascript error.
>
> function validateRequired(form) {
> var isValid = true;
> var focusField = null;
> var i = 0;
> var fields = new Array();
> var formName = form.getAttributeNode("name"); //error is at
this
> line
>
> oRequired = eval('new ' + formName.value + '_required()');
>
>
> Can u tell me which version did u download.?? I need to finish of
this.
>
> Regards.
> Guna
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 02, 2004 3:22 PM
> To: [EMAIL PROTECTED]
> Subject: SV: Javascript error in struts validator.
>
> Hi
>
> I had the same problem - I think it was a mix of old and new struts
> components. What I did was get the latest nightly build, and replace
> everything. After that it all went away.
>
> Hermod
>
> -Opprinnelig melding-
> Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
> Sendt: 2. juli 2004 10:58
> Til: Struts Users Mailing List
> Emne: RE: Javascript error in struts validator.
>
>
>  Hi Hermod,
>
> Thanks for the reply and the suggestion,
> I should upgrade only the validator ?? Or entire struts??
>
> Regards/Guna
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 02, 2004 2:14 PM
> To: [EMAIL PROTECTED]
> Subject: SV: Javascript error in struts validator.
>
> Hi
>
> If you look at jsp (view-source) you will probably notice that the
> jscript method (required) has been prefixed with the formname. Upgrade
> to the latest build. This was an issue with validator.
>
> Hermod
>
> -Opprinnelig melding-
> Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
> Sendt: 2. juli 2004 08:38
> Til: [EMAIL PROTECTED]
> Emne: Javascript error

Re: Javascript error in struts validator.

2004-07-02 Thread Matt Bathje
Niall - I think you mean the 2nd of July. The nighly build from the 2nd of
june still has the broken version of the multi-form fix in it I believe.

To the original poster:
- Use the nightly build from the 2nd of july:
http://cvs.apache.org/builds/jakarta-struts/nightly/ - at this point you
will no longer be using Struts 1.1, but Struts 1.2.0.
- Make sure that you replace your commons-validator.jar and
validator-rules.xml file with the ones from the nightly build download. (As
well as all other jars!)
- If it still doesn't work - what web browser/version are you using? Based
on your posts, it seems like your problem is with the
form.getAttributeNode("name") javascript command - the getAttributeNode
method is a DOM Level 1 command, which was added to browsers around/after
2000 I believe. If you are using a non-standard or really old browser, you
may have trouble with it. If you are using a browser that should support it,
throw a javascript debugger on the page and see what happens.

Matt Bathje

- Original Message - 
From: "Niall Pemberton" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, July 02, 2004 8:11 AM
Subject: Re: Javascript error in struts validator.


> Thats what I was trying to say - the patch (i.e. fix) was applied on the
1st
> June to   - try downloading the Struts nightly from June
> 2nd.
>
> Niall
>
> - Original Message - 
> From: "Kote, Nijaguna Sangankal" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, July 02, 2004 2:01 PM
> Subject: RE: Javascript error in struts validator.
>
>
> So is there any fix for this???
> I am using struts1.1 and this has stopped my work.
>
> Please give me some hints...
>
> -Original Message-
> From: Niall Pemberton [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 02, 2004 6:27 PM
> To: Struts Users Mailing List
> Subject: Re: Javascript error in struts validator.
>
> There was an outstanding bug against the  tag and a
> patch was applied on 1st June
>
> http://issues.apache.org/bugzilla/show_bug.cgi?id=29796
>
> Maybe try the version from 2nd June
>
> Niall
>
> - Original Message -
> From: "Kote, Nijaguna Sangankal" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, July 02, 2004 11:34 AM
> Subject: RE: Javascript error in struts validator.
>
>
> Hi,
> I downoaded, latest nightly build which was on 1st of June...
> and it seems its not working..
>
> it gives some other javascript error.
>
> function validateRequired(form) {
> var isValid = true;
> var focusField = null;
> var i = 0;
> var fields = new Array();
> var formName = form.getAttributeNode("name"); //error is at this
> line
>
> oRequired = eval('new ' + formName.value + '_required()');
>
>
> Can u tell me which version did u download.?? I need to finish of this.
>
> Regards.
> Guna
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 02, 2004 3:22 PM
> To: [EMAIL PROTECTED]
> Subject: SV: Javascript error in struts validator.
>
> Hi
>
> I had the same problem - I think it was a mix of old and new struts
> components. What I did was get the latest nightly build, and replace
> everything. After that it all went away.
>
> Hermod
>
> -Opprinnelig melding-
> Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
> Sendt: 2. juli 2004 10:58
> Til: Struts Users Mailing List
> Emne: RE: Javascript error in struts validator.
>
>
>  Hi Hermod,
>
> Thanks for the reply and the suggestion,
> I should upgrade only the validator ?? Or entire struts??
>
> Regards/Guna
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 02, 2004 2:14 PM
> To: [EMAIL PROTECTED]
> Subject: SV: Javascript error in struts validator.
>
> Hi
>
> If you look at jsp (view-source) you will probably notice that the
> jscript method (required) has been prefixed with the formname. Upgrade
> to the latest build. This was an issue with validator.
>
> Hermod
>
> -Opprinnelig melding-
> Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
> Sendt: 2. juli 2004 08:38
> Til: [EMAIL PROTECTED]
> Emne: Javascript error in struts validator.
>
>
> Hi All,
> I had posted this question, but got now answer. Please give me
> some hints on this.
>
> I am getting javascript error when I click on submit to validate
> my form.
> It's a simple login p

RE: Javascript error in struts validator.

2004-07-02 Thread Kote, Nijaguna Sangankal
Well, I am not able to find the june 2nd build.
But even after taking the builds after 2nd june, I am getting this
javascript error.

"Object doesn't support this property" in generated javascript.

/*$RCSfile: validateRequired.js,v $ $Revision: 1.13 $ $Date:
2004/03/28 16:53:21 $ */
/**
*  Check to see if fields must contain a value.
* Fields are not checked if they are disabled.
* 
* @param form The form validation is taking place on.
*/

function validateRequired(form) {
var isValid = true;
var focusField = null;
var i = 0;
var fields = new Array();
var formName = form.getAttributeNode("name"); // error at this
line.

oRequired = eval('new ' + formName.value + '_required()');

for (x in oRequired) {

-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 02, 2004 6:41 PM
To: Struts Users Mailing List
Subject: Re: Javascript error in struts validator.

Thats what I was trying to say - the patch (i.e. fix) was applied on the
1st June to   - try downloading the Struts nightly from
June 2nd.

Niall

- Original Message -
From: "Kote, Nijaguna Sangankal" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, July 02, 2004 2:01 PM
Subject: RE: Javascript error in struts validator.


So is there any fix for this???
I am using struts1.1 and this has stopped my work.

Please give me some hints...

-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Friday, July 02, 2004 6:27 PM
To: Struts Users Mailing List
Subject: Re: Javascript error in struts validator.

There was an outstanding bug against the  tag and a
patch was applied on 1st June

http://issues.apache.org/bugzilla/show_bug.cgi?id=29796

Maybe try the version from 2nd June

Niall

- Original Message -
From: "Kote, Nijaguna Sangankal" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, July 02, 2004 11:34 AM
Subject: RE: Javascript error in struts validator.


Hi,
I downoaded, latest nightly build which was on 1st of June...
and it seems its not working..

it gives some other javascript error.

function validateRequired(form) {
var isValid = true;
var focusField = null;
var i = 0;
var fields = new Array();
var formName = form.getAttributeNode("name"); //error is at this
line

oRequired = eval('new ' + formName.value + '_required()');


Can u tell me which version did u download.?? I need to finish of this.

Regards.
Guna

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, July 02, 2004 3:22 PM
To: [EMAIL PROTECTED]
Subject: SV: Javascript error in struts validator.

Hi

I had the same problem - I think it was a mix of old and new struts
components. What I did was get the latest nightly build, and replace
everything. After that it all went away.

Hermod

-Opprinnelig melding-
Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
Sendt: 2. juli 2004 10:58
Til: Struts Users Mailing List
Emne: RE: Javascript error in struts validator.


 Hi Hermod,

Thanks for the reply and the suggestion,
I should upgrade only the validator ?? Or entire struts??

Regards/Guna

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, July 02, 2004 2:14 PM
To: [EMAIL PROTECTED]
Subject: SV: Javascript error in struts validator.

Hi

If you look at jsp (view-source) you will probably notice that the
jscript method (required) has been prefixed with the formname. Upgrade
to the latest build. This was an issue with validator.

Hermod

-----Opprinnelig melding-
Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
Sendt: 2. juli 2004 08:38
Til: [EMAIL PROTECTED]
Emne: Javascript error in struts validator.


Hi All,
I had posted this question, but got now answer. Please give me
some hints on this.

I am getting javascript error when I click on submit to validate
my form.
It's a simple login page with username and password.

here is the code for login.jsp

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib
uri="/WEB-INF/struts-html.tld" prefix="html" %>

<%
response.setHeader("pragma", "no-cache");
response.setHeader("Cache-control", "no-cache, no-store");
response.setHeader("Expires", "0");
%>







 - This is how I am
including the Javascript for validation.

... Rest body code goes here.


This is my validation.xml file


http://jakarta.apache.org/commons/dtds/validator_1_1.dtd";>











   







And validation-rules.xml file


   

  

 

Re: Javascript error in struts validator.

2004-07-02 Thread Niall Pemberton
Thats what I was trying to say - the patch (i.e. fix) was applied on the 1st
June to   - try downloading the Struts nightly from June
2nd.

Niall

- Original Message - 
From: "Kote, Nijaguna Sangankal" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, July 02, 2004 2:01 PM
Subject: RE: Javascript error in struts validator.


So is there any fix for this???
I am using struts1.1 and this has stopped my work.

Please give me some hints...

-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Friday, July 02, 2004 6:27 PM
To: Struts Users Mailing List
Subject: Re: Javascript error in struts validator.

There was an outstanding bug against the  tag and a
patch was applied on 1st June

http://issues.apache.org/bugzilla/show_bug.cgi?id=29796

Maybe try the version from 2nd June

Niall

- Original Message -
From: "Kote, Nijaguna Sangankal" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, July 02, 2004 11:34 AM
Subject: RE: Javascript error in struts validator.


Hi,
I downoaded, latest nightly build which was on 1st of June...
and it seems its not working..

it gives some other javascript error.

function validateRequired(form) {
var isValid = true;
var focusField = null;
var i = 0;
var fields = new Array();
var formName = form.getAttributeNode("name"); //error is at this
line

oRequired = eval('new ' + formName.value + '_required()');


Can u tell me which version did u download.?? I need to finish of this.

Regards.
Guna

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, July 02, 2004 3:22 PM
To: [EMAIL PROTECTED]
Subject: SV: Javascript error in struts validator.

Hi

I had the same problem - I think it was a mix of old and new struts
components. What I did was get the latest nightly build, and replace
everything. After that it all went away.

Hermod

-Opprinnelig melding-
Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
Sendt: 2. juli 2004 10:58
Til: Struts Users Mailing List
Emne: RE: Javascript error in struts validator.


 Hi Hermod,

Thanks for the reply and the suggestion,
I should upgrade only the validator ?? Or entire struts??

Regards/Guna

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, July 02, 2004 2:14 PM
To: [EMAIL PROTECTED]
Subject: SV: Javascript error in struts validator.

Hi

If you look at jsp (view-source) you will probably notice that the
jscript method (required) has been prefixed with the formname. Upgrade
to the latest build. This was an issue with validator.

Hermod

-Opprinnelig melding-
Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
Sendt: 2. juli 2004 08:38
Til: [EMAIL PROTECTED]
Emne: Javascript error in struts validator.


Hi All,
I had posted this question, but got now answer. Please give me
some hints on this.

I am getting javascript error when I click on submit to validate
my form.
It's a simple login page with username and password.

here is the code for login.jsp

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib
uri="/WEB-INF/struts-html.tld" prefix="html" %>

<%
response.setHeader("pragma", "no-cache");
response.setHeader("Cache-control", "no-cache, no-store");
response.setHeader("Expires", "0");
%>







 - This is how I am
including the Javascript for validation.

... Rest body code goes here.


This is my validation.xml file


http://jakarta.apache.org/commons/dtds/validator_1_1.dtd";>











   







And validation-rules.xml file


   

  

 

RE: Javascript error in struts validator.

2004-07-02 Thread Kote, Nijaguna Sangankal
So is there any fix for this???
I am using struts1.1 and this has stopped my work.

Please give me some hints... 

-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 02, 2004 6:27 PM
To: Struts Users Mailing List
Subject: Re: Javascript error in struts validator.

There was an outstanding bug against the  tag and a
patch was applied on 1st June

http://issues.apache.org/bugzilla/show_bug.cgi?id=29796

Maybe try the version from 2nd June

Niall

- Original Message -
From: "Kote, Nijaguna Sangankal" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, July 02, 2004 11:34 AM
Subject: RE: Javascript error in struts validator.


Hi,
I downoaded, latest nightly build which was on 1st of June...
and it seems its not working..

it gives some other javascript error.

function validateRequired(form) {
var isValid = true;
var focusField = null;
var i = 0;
var fields = new Array();
var formName = form.getAttributeNode("name"); //error is at this
line

oRequired = eval('new ' + formName.value + '_required()');


Can u tell me which version did u download.?? I need to finish of this.

Regards.
Guna

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, July 02, 2004 3:22 PM
To: [EMAIL PROTECTED]
Subject: SV: Javascript error in struts validator.

Hi

I had the same problem - I think it was a mix of old and new struts
components. What I did was get the latest nightly build, and replace
everything. After that it all went away.

Hermod

-Opprinnelig melding-
Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
Sendt: 2. juli 2004 10:58
Til: Struts Users Mailing List
Emne: RE: Javascript error in struts validator.


 Hi Hermod,

Thanks for the reply and the suggestion,
I should upgrade only the validator ?? Or entire struts??

Regards/Guna

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, July 02, 2004 2:14 PM
To: [EMAIL PROTECTED]
Subject: SV: Javascript error in struts validator.

Hi

If you look at jsp (view-source) you will probably notice that the
jscript method (required) has been prefixed with the formname. Upgrade
to the latest build. This was an issue with validator.

Hermod

-Opprinnelig melding-
Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
Sendt: 2. juli 2004 08:38
Til: [EMAIL PROTECTED]
Emne: Javascript error in struts validator.


Hi All,
I had posted this question, but got now answer. Please give me
some hints on this.

I am getting javascript error when I click on submit to validate
my form.
It's a simple login page with username and password.

here is the code for login.jsp

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib
uri="/WEB-INF/struts-html.tld" prefix="html" %>

<%
response.setHeader("pragma", "no-cache");
response.setHeader("Cache-control", "no-cache, no-store");
response.setHeader("Expires", "0");
%>







 - This is how I am
including the Javascript for validation.

... Rest body code goes here.


This is my validation.xml file


http://jakarta.apache.org/commons/dtds/validator_1_1.dtd";>











   







And validation-rules.xml file


   

  

 

Re: Javascript error in struts validator.

2004-07-02 Thread Niall Pemberton
There was an outstanding bug against the  tag and a patch
was applied on 1st June

http://issues.apache.org/bugzilla/show_bug.cgi?id=29796

Maybe try the version from 2nd June

Niall

- Original Message - 
From: "Kote, Nijaguna Sangankal" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, July 02, 2004 11:34 AM
Subject: RE: Javascript error in struts validator.


Hi,
I downoaded, latest nightly build which was on 1st of June...
and it seems its not working..

it gives some other javascript error.

function validateRequired(form) {
var isValid = true;
var focusField = null;
var i = 0;
var fields = new Array();
var formName = form.getAttributeNode("name"); //error is at this
line

oRequired = eval('new ' + formName.value + '_required()');


Can u tell me which version did u download.?? I need to finish of this.

Regards.
Guna

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, July 02, 2004 3:22 PM
To: [EMAIL PROTECTED]
Subject: SV: Javascript error in struts validator.

Hi

I had the same problem - I think it was a mix of old and new struts
components. What I did was get the latest nightly build, and replace
everything. After that it all went away.

Hermod

-Opprinnelig melding-
Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
Sendt: 2. juli 2004 10:58
Til: Struts Users Mailing List
Emne: RE: Javascript error in struts validator.


 Hi Hermod,

Thanks for the reply and the suggestion,
I should upgrade only the validator ?? Or entire struts??

Regards/Guna

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, July 02, 2004 2:14 PM
To: [EMAIL PROTECTED]
Subject: SV: Javascript error in struts validator.

Hi

If you look at jsp (view-source) you will probably notice that the
jscript method (required) has been prefixed with the formname. Upgrade
to the latest build. This was an issue with validator.

Hermod

-Opprinnelig melding-
Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
Sendt: 2. juli 2004 08:38
Til: [EMAIL PROTECTED]
Emne: Javascript error in struts validator.


Hi All,
I had posted this question, but got now answer. Please give me
some hints on this.

I am getting javascript error when I click on submit to validate
my form.
It's a simple login page with username and password.

here is the code for login.jsp

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib
uri="/WEB-INF/struts-html.tld" prefix="html" %>

<%
response.setHeader("pragma", "no-cache");
response.setHeader("Cache-control", "no-cache, no-store");
response.setHeader("Expires", "0");
%>







 - This is how I am
including the Javascript for validation.

... Rest body code goes here.


This is my validation.xml file


http://jakarta.apache.org/commons/dtds/validator_1_1.dtd";>











   







And validation-rules.xml file


   

  

 

RE: Javascript error in struts validator.

2004-07-02 Thread Kote, Nijaguna Sangankal
I have also debugging the script:

This is the error :var formName = form.getAttributeNode("name");
is not a function.
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 02, 2004 4:46 PM
To: [EMAIL PROTECTED]
Subject: SV: Javascript error in struts validator.

Hi

Seems it is not picking up your "formName" - Is there any misspelling ?.
If you running IE (against advice from this list lately :)) you could
download and use the script debugger. Or use Firefox with its script
debugger plugin to debug his.

Hermod

-Opprinnelig melding-
Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
Sendt: 2. juli 2004 13:10
Til: Struts Users Mailing List
Emne: RE: Javascript error in struts validator.


I did all these, but there is a javascript error... "Object doesn't
support this property".. In  form.getAttributeNode("name");

Don't know what to do now?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, July 02, 2004 4:25 PM
To: [EMAIL PROTECTED]
Subject: SV: Javascript error in struts validator.

Hi

Did you regenerate the static javascript part ? - Use  to get it in your page and
then cut and paste it into a .js file

Hermod

-Opprinnelig melding-
Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
Sendt: 2. juli 2004 12:34
Til: Struts Users Mailing List
Emne: RE: Javascript error in struts validator.


Hi,
I downoaded, latest nightly build which was on 1st of June...
and it seems its not working..

it gives some other javascript error.

function validateRequired(form) {
var isValid = true;
var focusField = null;
var i = 0;
var fields = new Array();
var formName = form.getAttributeNode("name"); //error is at this
line

oRequired = eval('new ' + formName.value + '_required()');


Can u tell me which version did u download.?? I need to finish of this.

Regards.
Guna

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, July 02, 2004 3:22 PM
To: [EMAIL PROTECTED]
Subject: SV: Javascript error in struts validator.

Hi

I had the same problem - I think it was a mix of old and new struts
components. What I did was get the latest nightly build, and replace
everything. After that it all went away.

Hermod

-Opprinnelig melding-
Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
Sendt: 2. juli 2004 10:58
Til: Struts Users Mailing List
Emne: RE: Javascript error in struts validator.


 Hi Hermod,

Thanks for the reply and the suggestion,
I should upgrade only the validator ?? Or entire struts??

Regards/Guna

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, July 02, 2004 2:14 PM
To: [EMAIL PROTECTED]
Subject: SV: Javascript error in struts validator.

Hi

If you look at jsp (view-source) you will probably notice that the
jscript method (required) has been prefixed with the formname. Upgrade
to the latest build. This was an issue with validator. 

Hermod

-Opprinnelig melding-
Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
Sendt: 2. juli 2004 08:38
Til: [EMAIL PROTECTED]
Emne: Javascript error in struts validator.


Hi All,
I had posted this question, but got now answer. Please give me
some hints on this.

I am getting javascript error when I click on submit to validate
my form.
It's a simple login page with username and password.

here is the code for login.jsp

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib
uri="/WEB-INF/struts-html.tld" prefix="html" %>

<%
response.setHeader("pragma", "no-cache");
response.setHeader("Cache-control", "no-cache, no-store");
response.setHeader("Expires", "0");
%>







 - This is how I am
including the Javascript for validation.

... Rest body code goes here.


This is my validation.xml file


http://jakarta.apache.org/commons/dtds/validator_1_1.dtd";>











   







And validation-rules.xml file


   

  

 

SV: Javascript error in struts validator.

2004-07-02 Thread hermod . opstvedt
Hi

Might be - Did you also replace all the struts required lib files (look
in the Maven project.xml file for versions).

Hermod

-Opprinnelig melding-
Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
Sendt: 2. juli 2004 13:27
Til: Struts Users Mailing List
Emne: RE: Javascript error in struts validator.


I don't thinksk its problem with picking up the form name, I guess the
method called on form to get the form name is different ..
Is it different version problem??

 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 02, 2004 4:46 PM
To: [EMAIL PROTECTED]
Subject: SV: Javascript error in struts validator.

Hi

Seems it is not picking up your "formName" - Is there any misspelling ?.
If you running IE (against advice from this list lately :)) you could
download and use the script debugger. Or use Firefox with its script
debugger plugin to debug his.

Hermod

-Opprinnelig melding-
Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
Sendt: 2. juli 2004 13:10
Til: Struts Users Mailing List
Emne: RE: Javascript error in struts validator.


I did all these, but there is a javascript error... "Object doesn't
support this property".. In  form.getAttributeNode("name");

Don't know what to do now?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, July 02, 2004 4:25 PM
To: [EMAIL PROTECTED]
Subject: SV: Javascript error in struts validator.

Hi

Did you regenerate the static javascript part ? - Use  to get it in your page and
then cut and paste it into a .js file

Hermod

-Opprinnelig melding-
Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
Sendt: 2. juli 2004 12:34
Til: Struts Users Mailing List
Emne: RE: Javascript error in struts validator.


Hi,
I downoaded, latest nightly build which was on 1st of June...
and it seems its not working..

it gives some other javascript error.

function validateRequired(form) {
var isValid = true;
var focusField = null;
var i = 0;
var fields = new Array();
var formName = form.getAttributeNode("name"); //error is at this
line

oRequired = eval('new ' + formName.value + '_required()');


Can u tell me which version did u download.?? I need to finish of this.

Regards.
Guna

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, July 02, 2004 3:22 PM
To: [EMAIL PROTECTED]
Subject: SV: Javascript error in struts validator.

Hi

I had the same problem - I think it was a mix of old and new struts
components. What I did was get the latest nightly build, and replace
everything. After that it all went away.

Hermod

-Opprinnelig melding-
Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
Sendt: 2. juli 2004 10:58
Til: Struts Users Mailing List
Emne: RE: Javascript error in struts validator.


 Hi Hermod,

Thanks for the reply and the suggestion,
I should upgrade only the validator ?? Or entire struts??

Regards/Guna

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, July 02, 2004 2:14 PM
To: [EMAIL PROTECTED]
Subject: SV: Javascript error in struts validator.

Hi

If you look at jsp (view-source) you will probably notice that the
jscript method (required) has been prefixed with the formname. Upgrade
to the latest build. This was an issue with validator. 

Hermod

-Opprinnelig melding-
Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
Sendt: 2. juli 2004 08:38
Til: [EMAIL PROTECTED]
Emne: Javascript error in struts validator.


Hi All,
I had posted this question, but got now answer. Please give me
some hints on this.

I am getting javascript error when I click on submit to validate
my form.
It's a simple login page with username and password.

here is the code for login.jsp

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib
uri="/WEB-INF/struts-html.tld" prefix="html" %>

<%
response.setHeader("pragma", "no-cache");
response.setHeader("Cache-control", "no-cache, no-store");
response.setHeader("Expires", "0");
%>







 - This is how I am
including the Javascript for validation.

... Rest body code goes here.


This is my validation.xml file


http://jakarta.apache.org/commons/dtds/validator_1_1.dtd";>











   







And validation-rules.xml file


   

  

 

RE: Javascript error in struts validator.

2004-07-02 Thread Kote, Nijaguna Sangankal
I don't thinksk its problem with picking up the form name, I guess the
method called on form to get the form name is different ..
Is it different version problem??

 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 02, 2004 4:46 PM
To: [EMAIL PROTECTED]
Subject: SV: Javascript error in struts validator.

Hi

Seems it is not picking up your "formName" - Is there any misspelling ?.
If you running IE (against advice from this list lately :)) you could
download and use the script debugger. Or use Firefox with its script
debugger plugin to debug his.

Hermod

-Opprinnelig melding-
Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
Sendt: 2. juli 2004 13:10
Til: Struts Users Mailing List
Emne: RE: Javascript error in struts validator.


I did all these, but there is a javascript error... "Object doesn't
support this property".. In  form.getAttributeNode("name");

Don't know what to do now?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, July 02, 2004 4:25 PM
To: [EMAIL PROTECTED]
Subject: SV: Javascript error in struts validator.

Hi

Did you regenerate the static javascript part ? - Use  to get it in your page and
then cut and paste it into a .js file

Hermod

-Opprinnelig melding-
Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
Sendt: 2. juli 2004 12:34
Til: Struts Users Mailing List
Emne: RE: Javascript error in struts validator.


Hi,
I downoaded, latest nightly build which was on 1st of June...
and it seems its not working..

it gives some other javascript error.

function validateRequired(form) {
var isValid = true;
var focusField = null;
var i = 0;
var fields = new Array();
var formName = form.getAttributeNode("name"); //error is at this
line

oRequired = eval('new ' + formName.value + '_required()');


Can u tell me which version did u download.?? I need to finish of this.

Regards.
Guna

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, July 02, 2004 3:22 PM
To: [EMAIL PROTECTED]
Subject: SV: Javascript error in struts validator.

Hi

I had the same problem - I think it was a mix of old and new struts
components. What I did was get the latest nightly build, and replace
everything. After that it all went away.

Hermod

-Opprinnelig melding-
Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
Sendt: 2. juli 2004 10:58
Til: Struts Users Mailing List
Emne: RE: Javascript error in struts validator.


 Hi Hermod,

Thanks for the reply and the suggestion,
I should upgrade only the validator ?? Or entire struts??

Regards/Guna

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, July 02, 2004 2:14 PM
To: [EMAIL PROTECTED]
Subject: SV: Javascript error in struts validator.

Hi

If you look at jsp (view-source) you will probably notice that the
jscript method (required) has been prefixed with the formname. Upgrade
to the latest build. This was an issue with validator. 

Hermod

-Opprinnelig melding-
Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
Sendt: 2. juli 2004 08:38
Til: [EMAIL PROTECTED]
Emne: Javascript error in struts validator.


Hi All,
I had posted this question, but got now answer. Please give me
some hints on this.

I am getting javascript error when I click on submit to validate
my form.
It's a simple login page with username and password.

here is the code for login.jsp

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib
uri="/WEB-INF/struts-html.tld" prefix="html" %>

<%
response.setHeader("pragma", "no-cache");
response.setHeader("Cache-control", "no-cache, no-store");
response.setHeader("Expires", "0");
%>







 - This is how I am
including the Javascript for validation.

... Rest body code goes here.


This is my validation.xml file


http://jakarta.apache.org/commons/dtds/validator_1_1.dtd";>











   







And validation-rules.xml file


   

  

 

SV: Javascript error in struts validator.

2004-07-02 Thread hermod . opstvedt
Hi

Seems it is not picking up your "formName" - Is there any misspelling ?.
If you running IE (against advice from this list lately :)) you could
download and use the script debugger. Or use Firefox with its script
debugger plugin to debug his.

Hermod

-Opprinnelig melding-
Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
Sendt: 2. juli 2004 13:10
Til: Struts Users Mailing List
Emne: RE: Javascript error in struts validator.


I did all these, but there is a javascript error... "Object doesn't
support this property".. In  form.getAttributeNode("name");

Don't know what to do now?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 02, 2004 4:25 PM
To: [EMAIL PROTECTED]
Subject: SV: Javascript error in struts validator.

Hi

Did you regenerate the static javascript part ? - Use  to get it in your page and
then cut and paste it into a .js file

Hermod

-Opprinnelig melding-
Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
Sendt: 2. juli 2004 12:34
Til: Struts Users Mailing List
Emne: RE: Javascript error in struts validator.


Hi,
I downoaded, latest nightly build which was on 1st of June...
and it seems its not working..

it gives some other javascript error.

function validateRequired(form) {
var isValid = true;
var focusField = null;
var i = 0;
var fields = new Array();
var formName = form.getAttributeNode("name"); //error is at this
line

oRequired = eval('new ' + formName.value + '_required()');


Can u tell me which version did u download.?? I need to finish of this.

Regards.
Guna

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, July 02, 2004 3:22 PM
To: [EMAIL PROTECTED]
Subject: SV: Javascript error in struts validator.

Hi

I had the same problem - I think it was a mix of old and new struts
components. What I did was get the latest nightly build, and replace
everything. After that it all went away.

Hermod

-Opprinnelig melding-
Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
Sendt: 2. juli 2004 10:58
Til: Struts Users Mailing List
Emne: RE: Javascript error in struts validator.


 Hi Hermod,

Thanks for the reply and the suggestion,
I should upgrade only the validator ?? Or entire struts??

Regards/Guna

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, July 02, 2004 2:14 PM
To: [EMAIL PROTECTED]
Subject: SV: Javascript error in struts validator.

Hi

If you look at jsp (view-source) you will probably notice that the
jscript method (required) has been prefixed with the formname. Upgrade
to the latest build. This was an issue with validator. 

Hermod

-Opprinnelig melding-
Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
Sendt: 2. juli 2004 08:38
Til: [EMAIL PROTECTED]
Emne: Javascript error in struts validator.


Hi All,
I had posted this question, but got now answer. Please give me
some hints on this.

I am getting javascript error when I click on submit to validate
my form.
It's a simple login page with username and password.

here is the code for login.jsp

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib
uri="/WEB-INF/struts-html.tld" prefix="html" %>

<%
response.setHeader("pragma", "no-cache");
response.setHeader("Cache-control", "no-cache, no-store");
response.setHeader("Expires", "0");
%>







 - This is how I am
including the Javascript for validation.

... Rest body code goes here.


This is my validation.xml file


http://jakarta.apache.org/commons/dtds/validator_1_1.dtd";>











   







And validation-rules.xml file


   

  

 

RE: Javascript error in struts validator.

2004-07-02 Thread Kote, Nijaguna Sangankal
I did all these, but there is a javascript error... "Object doesn't
support this property".. In  form.getAttributeNode("name");

Don't know what to do now?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 02, 2004 4:25 PM
To: [EMAIL PROTECTED]
Subject: SV: Javascript error in struts validator.

Hi

Did you regenerate the static javascript part ? - Use  to get it in your page and
then cut and paste it into a .js file

Hermod

-Opprinnelig melding-
Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
Sendt: 2. juli 2004 12:34
Til: Struts Users Mailing List
Emne: RE: Javascript error in struts validator.


Hi,
I downoaded, latest nightly build which was on 1st of June...
and it seems its not working..

it gives some other javascript error.

function validateRequired(form) {
var isValid = true;
var focusField = null;
var i = 0;
var fields = new Array();
var formName = form.getAttributeNode("name"); //error is at this
line

oRequired = eval('new ' + formName.value + '_required()');


Can u tell me which version did u download.?? I need to finish of this.

Regards.
Guna

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, July 02, 2004 3:22 PM
To: [EMAIL PROTECTED]
Subject: SV: Javascript error in struts validator.

Hi

I had the same problem - I think it was a mix of old and new struts
components. What I did was get the latest nightly build, and replace
everything. After that it all went away.

Hermod

-Opprinnelig melding-
Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
Sendt: 2. juli 2004 10:58
Til: Struts Users Mailing List
Emne: RE: Javascript error in struts validator.


 Hi Hermod,

Thanks for the reply and the suggestion,
I should upgrade only the validator ?? Or entire struts??

Regards/Guna

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, July 02, 2004 2:14 PM
To: [EMAIL PROTECTED]
Subject: SV: Javascript error in struts validator.

Hi

If you look at jsp (view-source) you will probably notice that the
jscript method (required) has been prefixed with the formname. Upgrade
to the latest build. This was an issue with validator. 

Hermod

-Opprinnelig melding-
Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
Sendt: 2. juli 2004 08:38
Til: [EMAIL PROTECTED]
Emne: Javascript error in struts validator.


Hi All,
I had posted this question, but got now answer. Please give me
some hints on this.

I am getting javascript error when I click on submit to validate
my form.
It's a simple login page with username and password.

here is the code for login.jsp

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib
uri="/WEB-INF/struts-html.tld" prefix="html" %>

<%
response.setHeader("pragma", "no-cache");
response.setHeader("Cache-control", "no-cache, no-store");
response.setHeader("Expires", "0");
%>







 - This is how I am
including the Javascript for validation.

... Rest body code goes here.


This is my validation.xml file


http://jakarta.apache.org/commons/dtds/validator_1_1.dtd";>











   







And validation-rules.xml file


   

  

 

SV: Javascript error in struts validator.

2004-07-02 Thread hermod . opstvedt
Hi

Did you regenerate the static javascript part ? - Use  to get it in your page and
then cut and paste it into a .js file

Hermod

-Opprinnelig melding-
Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
Sendt: 2. juli 2004 12:34
Til: Struts Users Mailing List
Emne: RE: Javascript error in struts validator.


Hi,
I downoaded, latest nightly build which was on 1st of June...
and it seems its not working..

it gives some other javascript error.

function validateRequired(form) {
var isValid = true;
var focusField = null;
var i = 0;
var fields = new Array();
var formName = form.getAttributeNode("name"); //error is at this
line

oRequired = eval('new ' + formName.value + '_required()');


Can u tell me which version did u download.?? I need to finish of this.

Regards.
Guna

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 02, 2004 3:22 PM
To: [EMAIL PROTECTED]
Subject: SV: Javascript error in struts validator.

Hi

I had the same problem - I think it was a mix of old and new struts
components. What I did was get the latest nightly build, and replace
everything. After that it all went away.

Hermod

-Opprinnelig melding-
Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
Sendt: 2. juli 2004 10:58
Til: Struts Users Mailing List
Emne: RE: Javascript error in struts validator.


 Hi Hermod,

Thanks for the reply and the suggestion,
I should upgrade only the validator ?? Or entire struts??

Regards/Guna

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, July 02, 2004 2:14 PM
To: [EMAIL PROTECTED]
Subject: SV: Javascript error in struts validator.

Hi

If you look at jsp (view-source) you will probably notice that the
jscript method (required) has been prefixed with the formname. Upgrade
to the latest build. This was an issue with validator. 

Hermod

-Opprinnelig melding-
Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
Sendt: 2. juli 2004 08:38
Til: [EMAIL PROTECTED]
Emne: Javascript error in struts validator.


Hi All,
I had posted this question, but got now answer. Please give me
some hints on this.

    I am getting javascript error when I click on submit to validate
my form.
It's a simple login page with username and password.

here is the code for login.jsp

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib
uri="/WEB-INF/struts-html.tld" prefix="html" %>

<%
response.setHeader("pragma", "no-cache");
response.setHeader("Cache-control", "no-cache, no-store");
response.setHeader("Expires", "0");
%>







 - This is how I am
including the Javascript for validation.

... Rest body code goes here.


This is my validation.xml file


http://jakarta.apache.org/commons/dtds/validator_1_1.dtd";>











   







And validation-rules.xml file


   

  

 

RE: Javascript error in struts validator.

2004-07-02 Thread Kote, Nijaguna Sangankal
Hi,
I downoaded, latest nightly build which was on 1st of June...
and it seems its not working..

it gives some other javascript error.

function validateRequired(form) {
var isValid = true;
var focusField = null;
var i = 0;
var fields = new Array();
var formName = form.getAttributeNode("name"); //error is at this
line

oRequired = eval('new ' + formName.value + '_required()');


Can u tell me which version did u download.?? I need to finish of this.

Regards.
Guna

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 02, 2004 3:22 PM
To: [EMAIL PROTECTED]
Subject: SV: Javascript error in struts validator.

Hi

I had the same problem - I think it was a mix of old and new struts
components. What I did was get the latest nightly build, and replace
everything. After that it all went away.

Hermod

-Opprinnelig melding-
Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
Sendt: 2. juli 2004 10:58
Til: Struts Users Mailing List
Emne: RE: Javascript error in struts validator.


 Hi Hermod,

Thanks for the reply and the suggestion,
I should upgrade only the validator ?? Or entire struts??

Regards/Guna

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, July 02, 2004 2:14 PM
To: [EMAIL PROTECTED]
Subject: SV: Javascript error in struts validator.

Hi

If you look at jsp (view-source) you will probably notice that the
jscript method (required) has been prefixed with the formname. Upgrade
to the latest build. This was an issue with validator. 

Hermod

-Opprinnelig melding-
Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
Sendt: 2. juli 2004 08:38
Til: [EMAIL PROTECTED]
Emne: Javascript error in struts validator.


Hi All,
I had posted this question, but got now answer. Please give me
some hints on this.

    I am getting javascript error when I click on submit to validate
my form.
It's a simple login page with username and password.

here is the code for login.jsp

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib
uri="/WEB-INF/struts-html.tld" prefix="html" %>

<%
response.setHeader("pragma", "no-cache");
response.setHeader("Cache-control", "no-cache, no-store");
response.setHeader("Expires", "0");
%>







 - This is how I am
including the Javascript for validation.

... Rest body code goes here.


This is my validation.xml file


http://jakarta.apache.org/commons/dtds/validator_1_1.dtd";>











   







And validation-rules.xml file


   

  

 

SV: Javascript error in struts validator.

2004-07-02 Thread hermod . opstvedt
Hi

I had the same problem - I think it was a mix of old and new struts
components. What I did was get the latest nightly build, and replace
everything. After that it all went away.

Hermod

-Opprinnelig melding-
Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
Sendt: 2. juli 2004 10:58
Til: Struts Users Mailing List
Emne: RE: Javascript error in struts validator.


 Hi Hermod,

Thanks for the reply and the suggestion,
I should upgrade only the validator ?? Or entire struts??

Regards/Guna

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 02, 2004 2:14 PM
To: [EMAIL PROTECTED]
Subject: SV: Javascript error in struts validator.

Hi

If you look at jsp (view-source) you will probably notice that the
jscript method (required) has been prefixed with the formname. Upgrade
to the latest build. This was an issue with validator. 

Hermod

-Opprinnelig melding-
Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
Sendt: 2. juli 2004 08:38
Til: [EMAIL PROTECTED]
Emne: Javascript error in struts validator.


Hi All,
I had posted this question, but got now answer. Please give me
some hints on this.

I am getting javascript error when I click on submit to validate
my form.
It's a simple login page with username and password.

here is the code for login.jsp

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib
uri="/WEB-INF/struts-html.tld" prefix="html" %>

<%
response.setHeader("pragma", "no-cache");
response.setHeader("Cache-control", "no-cache, no-store");
response.setHeader("Expires", "0");
%>







 - This is how I am
including the Javascript for validation.

... Rest body code goes here.


This is my validation.xml file


http://jakarta.apache.org/commons/dtds/validator_1_1.dtd";>











   







And validation-rules.xml file


   

  

 

RE: Javascript error in struts validator.

2004-07-02 Thread Kote, Nijaguna Sangankal
 Hi Hermod,

Thanks for the reply and the suggestion,
I should upgrade only the validator ?? Or entire struts??

Regards/Guna

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 02, 2004 2:14 PM
To: [EMAIL PROTECTED]
Subject: SV: Javascript error in struts validator.

Hi

If you look at jsp (view-source) you will probably notice that the
jscript method (required) has been prefixed with the formname. Upgrade
to the latest build. This was an issue with validator. 

Hermod

-Opprinnelig melding-
Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
Sendt: 2. juli 2004 08:38
Til: [EMAIL PROTECTED]
Emne: Javascript error in struts validator.


Hi All,
I had posted this question, but got now answer. Please give me
some hints on this.

I am getting javascript error when I click on submit to validate
my form.
It's a simple login page with username and password.

here is the code for login.jsp

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib
uri="/WEB-INF/struts-html.tld" prefix="html" %>

<%
response.setHeader("pragma", "no-cache");
response.setHeader("Cache-control", "no-cache, no-store");
response.setHeader("Expires", "0");
%>







 - This is how I am
including the Javascript for validation.

... Rest body code goes here.


This is my validation.xml file


http://jakarta.apache.org/commons/dtds/validator_1_1.dtd";>











   







And validation-rules.xml file


   

  

 

SV: Javascript error in struts validator.

2004-07-02 Thread hermod . opstvedt
Hi

If you look at jsp (view-source) you will probably notice that the
jscript method (required) has been prefixed with the formname. Upgrade
to the latest build. This was an issue with validator. 

Hermod

-Opprinnelig melding-
Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
Sendt: 2. juli 2004 08:38
Til: [EMAIL PROTECTED]
Emne: Javascript error in struts validator.


Hi All,
I had posted this question, but got now answer. Please give me
some hints on this.

I am getting javascript error when I click on submit to validate
my form.
It's a simple login page with username and password.

here is the code for login.jsp

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

<%
response.setHeader("pragma", "no-cache");
response.setHeader("Cache-control", "no-cache, no-store");
response.setHeader("Expires", "0");
%>







 - This is how I am
including the Javascript for validation.

... Rest body code goes here.


This is my validation.xml file


http://jakarta.apache.org/commons/dtds/validator_1_1.dtd";>











   







And validation-rules.xml file


   

  

 

RE: Javascript error in struts validator.

2004-07-02 Thread Kote, Nijaguna Sangankal
I found why is it giving javascript error...
Because, when struts generates javascript code in jsp... Instead of
generating required() method it generates xForm_required() method.
This method is internally called by validateRequired() method.

Attached is the generated struts javascript code 


Javascript error in struts validator.

2004-07-01 Thread Kote, Nijaguna Sangankal
Hi All,
I had posted this question, but got now answer. Please give me
some hints on this.

I am getting javascript error when I click on submit to validate
my form.
It's a simple login page with username and password.

here is the code for login.jsp

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

<%
response.setHeader("pragma", "no-cache");
response.setHeader("Cache-control", "no-cache, no-store");
response.setHeader("Expires", "0");
%>







 - This is how I am
including the Javascript for validation.

... Rest body code goes here.


This is my validation.xml file


http://jakarta.apache.org/commons/dtds/validator_1_1.dtd";>











   







And validation-rules.xml file


   

  

 

Javascript error

2004-06-29 Thread dangmp

Return Receipt
   
Your  Javascript error 
document   
:  
   
was   Dang Minh Phuong/MIS/MECS/SG 
received   
by:
   
at:   06/30/2004 08:35:29 AM   
   






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JavaScript error

2004-06-29 Thread Jim Barrows
My first instinct is to ask why you changed the validation_rules.xml file at all.  You 
shouldn't have had
to change that file, except to add some functionality.  I would suggest going back to 
the original validation-rules.xml file and seeing if that helps.


> -Original Message-
> From: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 29, 2004 2:21 AM
> To: [EMAIL PROTECTED]
> Subject: Javascript error
> 
> 
> Hi,
> 
>   I am a new user for this group,.
>   I am using struts1.1 for my project, Am having some trouble with
> struts1.1 validator framework.
>   I have changed my validation.xml and validation-rules.xml to
> reflect my formbean  and its properties.
>   Struts also generates javascript in JSP, but once I click on
> submit button " javascript error is thrown.
> 
>   This is the error : 'required is undefined'
> 
>   this in validateRequired method in validation_rules.xml file.
> 
>   Am I doing something wrong here... Please help.
> 
>   Thanks
>   Guna
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Javascript error

2004-06-29 Thread DGraham

Return Receipt
   
Your  Javascript error 
document   
:  
   
was   Dennis Graham/EvergreenFunds 
received   
by:
   
at:   06/29/2004 09:16:08 AM   
   





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Javascript error

2004-06-29 Thread lukasz.lenart


Return Receipt

 Your Javascript error  
 document:  

 was received Lukasz Lenart/pl/delphiauto   
 by:

 at:  12:43:01 PM CED Today 






Note: The information contained in this message may be privileged and confidential and 
thus protected from disclosure. If the reader of this message is not the intended 
recipient, or an employee or agent responsible for delivering this message to the 
intended recipient, you are hereby notified that any dissemination, distribution or 
copying of this communication is strictly prohibited. If you have received this 
communication in error, please notify us immediately by replying to the message and 
deleting it from your computer. Thank you. 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Javascript error

2004-06-29 Thread Kote, Nijaguna Sangankal
Hi,

I am a new user for this group,.
I am using struts1.1 for my project, Am having some trouble with
struts1.1 validator framework.
I have changed my validation.xml and validation-rules.xml to
reflect my formbean  and its properties.
Struts also generates javascript in JSP, but once I click on
submit button " javascript error is thrown.

This is the error : 'required is undefined'

this in validateRequired method in validation_rules.xml file.

Am I doing something wrong here... Please help.

Thanks
Guna



Re: Javascript Error

2004-04-19 Thread birendar . waldiya

try this if this works ??




function Next()

          { 
                  document.form1.hiddenname.value="hai";
         
              document.form1.method
="post"; 
                    
             document.form1.action
=""            
                    
             document.form1.submit();
                  
          }

Birendar Singh Waldiya
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com





"Sudhakar G"
<[EMAIL PROTECTED]> 
19-04-04 06:07 PM




Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>





To
<[EMAIL PROTECTED]>


cc



Subject
_javascript_ Error








Hi All,

I have defined a form tag and assigned a form name like as follows..








the problem is:

when i submit the button. its giving error "object doesnot support

property or method" from _javascript_

The _javascript_ code:

function Next()

          { 
                  document.form1.hiddenname.value="hai";
                  document.form1.action
=""            
                  document.form1.submit();
                  
          }


Can any one tell me you it is behaving like this?.I have multiple forms
declared in that page  was it a problem?.



Thanks & Regards

Sudhakar
Mindtree Consulting Private Ltd.
Bangalore.

Quote:-
Imagination is more important than knowledge. 
--Albert Einstein 




DISCLAIMER:
This message (including attachment if any) is confidential and may be privileged.
Before opening attachments please check them for viruses and defects. MindTree
Consulting Private Limited (MindTree) will not be responsible for any viruses
or defects or any forwarded attachments emanating either from within MindTree
or outside. If you have received this message by mistake please notify
the sender by return  e-mail and delete this message from your system.
Any unauthorized use or dissemination of this message in whole or in part
is strictly prohibited.  Please note that e-mails are susceptible
to change and MindTree shall not be liable for any improper, untimely or
incomplete transmission.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


ForwardSourceID:NT452A
   
DISCLAIMER: The information contained in this message is intended only and solely for 
the addressed individual or entity indicated in this message and for the exclusive use 
of the said addressed individual or entity indicated in this message (or responsible 
for delivery
of the message to such person) and may contain legally privileged and confidential 
information belonging to Tata Consultancy Services. It must not be printed, read, 
copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person 
other than the addressee. 
Unauthorized use, disclosure or copying is strictly prohibited and may constitute 
unlawful act and can possibly attract legal action, civil and/or criminal. The 
contents of this message need not necessarily reflect or endorse the views of Tata 
Consultancy Services on any subject matter.
Any action taken or omitted to be taken based on this message is entirely at your risk 
and neither the originator of this message nor Tata Consultancy Services takes any 
responsibility or liability towards the same. Opinions, conclusions and any other 
information contained in this message 
that do not relate to the official business of Tata Consultancy Services shall be 
understood as neither given nor endorsed by Tata Consultancy Services or any affiliate 
of Tata Consultancy Services. If you have received this message in error, you should 
destroy this message and may please notify the sender by e-mail. Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Javascript Error

2004-04-19 Thread Sudhakar G
Hi All,

I have defined a form tag and assigned a form name like as follows..








the problem is:

when i submit the button. its giving error "object doesnot support 
property or method" from java script

The javascript code:

function Next()

  { 
  document.form1.hiddenname.value="hai";
  document.form1.action ="something.do";
  document.form1.submit();
  
  }


Can any one tell me you it is behaving like this?.I have multiple forms
declared in that page  was it a problem?.



Thanks & Regards

Sudhakar
Mindtree Consulting Private Ltd.
Bangalore.

Quote:-
Imagination is more important than knowledge. 
--Albert Einstein 




DISCLAIMER:
This message (including attachment if any) is confidential and may be privileged. 
Before opening attachments please check them for viruses and defects. MindTree 
Consulting Private Limited (MindTree) will not be responsible for any viruses or 
defects or any forwarded attachments emanating either from within MindTree or outside. 
If you have received this message by mistake please notify the sender by return  
e-mail and delete this message from your system. Any unauthorized use or dissemination 
of this message in whole or in part is strictly prohibited.  Please note that e-mails 
are susceptible to change and MindTree shall not be liable for any improper, untimely 
or incomplete transmission.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]