RE: Server side validation not working

2006-07-12 Thread Lance
1. Is validate="true"?

2. Or are you explicitly calling ActionForm.validate() in your action?
If so you'll have to call Action.saveErrors().

-Original Message-
From: Pankaj Gupta [mailto:[EMAIL PROTECTED] 
Sent: 12 July 2006 14:05
To: Struts Users Mailing List
Subject: Re: Server side validation not working

Yes

Samere, Adam J wrote:
> Did you set the input attribute on your action mapping in
> struts-config.xml ? 
>
> -Original Message-
> From: Pankaj Gupta [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, July 12, 2006 8:55 AM
> To: Struts Users Mailing List
> Subject: Re: Server side validation not working
>
> Yes I did.
>
> Krishna, Hari wrote:
>   
>> did u put  properly in jsp
>>
>> -Original Message-
>> From: Pankaj Gupta [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, July 12, 2006 6:13 PM
>> To: Struts Users Mailing List
>> Subject: Server side validation not working
>>
>>
>> Hi All,
>>
>> I am using server side validation in my application. The problem is 
>> that when validate() returns an ActionErrors object, the page 
>> displayed becomes blank. I have no clue as to why this is happening. 
>> There is no javascript error or exception thrown.
>>
>> Pl Help.
>>
>> regards,
>> Pankaj
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> Notice:  All email and instant messages (including attachments) sent 
>> to or from Franklin Templeton Investments (FTI) personnel may be 
>> retained, monitored and/or reviewed by FTI and its agents, or 
>> authorized law enforcement personnel, without further notice or
>> 
> consent.
>   
>> -
>> 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]
>
>
> -
> The information contained in this message may be privileged,
> confidential, and protected from disclosure. If the reader of this
> message is not the intended recipient, or any 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. Paychex, Inc.
>
>
> -
> 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]




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



Re: Server side validation not working

2006-07-12 Thread Pankaj Gupta

Yes

Samere, Adam J wrote:

Did you set the input attribute on your action mapping in
struts-config.xml ? 


-Original Message-
From: Pankaj Gupta [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 12, 2006 8:55 AM

To: Struts Users Mailing List
Subject: Re: Server side validation not working

Yes I did.

Krishna, Hari wrote:
  

did u put  properly in jsp

-Original Message-
From: Pankaj Gupta [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 12, 2006 6:13 PM
To: Struts Users Mailing List
Subject: Server side validation not working


Hi All,

I am using server side validation in my application. The problem is 
that when validate() returns an ActionErrors object, the page 
displayed becomes blank. I have no clue as to why this is happening. 
There is no javascript error or exception thrown.


Pl Help.

regards,
Pankaj

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Notice:  All email and instant messages (including attachments) sent 
to or from Franklin Templeton Investments (FTI) personnel may be 
retained, monitored and/or reviewed by FTI and its agents, or 
authorized law enforcement personnel, without further notice or


consent.
  

-
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]


-
The information contained in this message may be privileged,
confidential, and protected from disclosure. If the reader of this
message is not the intended recipient, or any 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. Paychex, Inc.


-
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]



RE: Server side validation not working

2006-07-12 Thread Samere, Adam J
Did you set the input attribute on your action mapping in
struts-config.xml ? 

-Original Message-
From: Pankaj Gupta [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 12, 2006 8:55 AM
To: Struts Users Mailing List
Subject: Re: Server side validation not working

Yes I did.

Krishna, Hari wrote:
> did u put  properly in jsp
>
> -Original Message-
> From: Pankaj Gupta [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 12, 2006 6:13 PM
> To: Struts Users Mailing List
> Subject: Server side validation not working
>
>
> Hi All,
>
> I am using server side validation in my application. The problem is 
> that when validate() returns an ActionErrors object, the page 
> displayed becomes blank. I have no clue as to why this is happening. 
> There is no javascript error or exception thrown.
>
> Pl Help.
>
> regards,
> Pankaj
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> Notice:  All email and instant messages (including attachments) sent 
> to or from Franklin Templeton Investments (FTI) personnel may be 
> retained, monitored and/or reviewed by FTI and its agents, or 
> authorized law enforcement personnel, without further notice or
consent.
>
> -
> 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]


-
The information contained in this message may be privileged,
confidential, and protected from disclosure. If the reader of this
message is not the intended recipient, or any 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. Paychex, Inc.


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



Re: Server side validation not working

2006-07-12 Thread Pankaj Gupta

Yes I did.

Krishna, Hari wrote:

did u put  properly in jsp

-Original Message-
From: Pankaj Gupta [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 12, 2006 6:13 PM
To: Struts Users Mailing List
Subject: Server side validation not working


Hi All,

I am using server side validation in my application. The problem is that 
when validate() returns an ActionErrors object, the page displayed 
becomes blank. I have no clue as to why this is happening. There is no 
javascript error or exception thrown.


Pl Help.

regards,
Pankaj

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Notice:  All email and instant messages (including attachments) sent to
or from Franklin Templeton Investments (FTI) personnel may be retained,
monitored and/or reviewed by FTI and its agents, or authorized
law enforcement personnel, without further notice or consent.

-
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]



RE: Server side validation not working

2006-07-12 Thread Krishna, Hari
did u put  properly in jsp

-Original Message-
From: Pankaj Gupta [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 12, 2006 6:13 PM
To: Struts Users Mailing List
Subject: Server side validation not working


Hi All,

I am using server side validation in my application. The problem is that 
when validate() returns an ActionErrors object, the page displayed 
becomes blank. I have no clue as to why this is happening. There is no 
javascript error or exception thrown.

Pl Help.

regards,
Pankaj

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Notice:  All email and instant messages (including attachments) sent to
or from Franklin Templeton Investments (FTI) personnel may be retained,
monitored and/or reviewed by FTI and its agents, or authorized
law enforcement personnel, without further notice or consent.

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



Re: Server side validation

2004-05-18 Thread Nicholas L Mohler





Hi Samuel,

I'm not sure why the input couldn't accept pages and forwards within one
application.  That's probably a good question for the major contributors to
the framework.  For the struts-config.xml file Ted Husted's book, "Struts
in Action", is a good reference that I have used .  The book has a chapter
completely dedicated to the struts-config API.  The chapter really just has
the dtd information formatted in a more readable layout.  In terms of
examples, I have looked at the examples included with the struts downloads
and other random learning opportunities, like this mailing list.  Sorry I
don't really have a good answer for either question.

Nick




|-+-->
| |   Samuel Rochas  |
| |   <[EMAIL PROTECTED]|
| |   nasoft.com>|
| |  |
| |   05/17/2004 03:33 PM|
| |   Please respond to  |
| |   "Struts Users  |
| |   Mailing List"  |
| |  |
|-+-->
  
>--|
  |
  |
  |   To:   Struts Users Mailing List <[EMAIL PROTECTED]>  
 |
  |   cc:  
          |
  |   Subject:  Re: Server side validation 
  |
  
>--|




Hello Nicholas,

Ok, thank you very much for the explanation, it makes the things a bit
clearer and less magical to me.

I have two questions:
-Why making that difference once for all? I mean, why not just accept
everything here (page, action, forward)?
-Where is a good and complete documentation with examples about
config-struts.xml to find (except struts-config_1_1.dtd)?

Sincerly
Samuel

---  andinasoft SA - Software y Consulting  ---
Mariano Aguilera 276 y Almagro - Quito, Ecuador
Tel. +593 2 290 55 18  Cel. +593 9 946 4046
-  http://www.andinasoft.com  -


-
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]



Re: Server side validation

2004-05-17 Thread Samuel Rochas
Hello Nicholas,
Ok, thank you very much for the explanation, it makes the things a bit 
clearer and less magical to me.

I have two questions:
-Why making that difference once for all? I mean, why not just accept 
everything here (page, action, forward)?
-Where is a good and complete documentation with examples about 
config-struts.xml to find (except struts-config_1_1.dtd)?

Sincerly
Samuel
---  andinasoft SA - Software y Consulting  ---
Mariano Aguilera 276 y Almagro - Quito, Ecuador
Tel. +593 2 290 55 18  Cel. +593 9 946 4046
-  http://www.andinasoft.com  -
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Server side validation

2004-05-17 Thread Nicholas L Mohler





Samuel,

If you look in the struts-config.xml file, within the  tags,
there is a statement  - inputForward="true" - that indicates the type of
value that will be specified in you input tags.  If "true" is specified,
then your input tags must refer to a forward name.  If "false" is specified
or if the statement is omitted, then the input value can refer to a page or
an action mapping.  In the example, "true" is specified and there is also a
global "logon" mapping.  When you specify a jsp page, there is no such
mapping, so you get the blank page.  Hopefully this helps you understand
why adding the global forward helped resolved the problem.

Our "inputForward" is set to false, so all of our input values refer to
ActionMappings (), but we could refer to global forwards.


Sorry I wasn't able to post to your thread last week.  I didn't have the
time.
Nick




|-+-->
| |   Samuel Rochas  |
| |   <[EMAIL PROTECTED]|
| |   nasoft.com>|
| |  |
| |   05/14/2004 06:40 PM|
| |   Please respond to  |
| |   "Struts Users  |
| |   Mailing List"  |
| |  |
|-+-->
  
>--|
  |
  |
  |   To:   Struts Users Mailing List <[EMAIL PROTECTED]>  
 |
  |   cc:              
  |
  |   Subject:  Re: Server side validation 
  |
  
>--|




Hello Geeta,

I've solved the problem, still don't really understand the reason.

I've defined a global forward for the input of my reluctant form, and
now, in case of validation error, I am forwarded to the desired page,
not to the blank one.

Thanks for you help.
Samuel

-
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]



Re: Server side validation

2004-05-14 Thread Samuel Rochas
Hello Geeta,
I've solved the problem, still don't really understand the reason.
I've defined a global forward for the input of my reluctant form, and 
now, in case of validation error, I am forwarded to the desired page, 
not to the blank one.

Thanks for you help.
Samuel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Server side validation

2004-05-14 Thread Samuel Rochas
Good Morning Geeta,

Geeta Ramani wrote:
Hmm.. Ok, look at the source code of the page you get.. anything there?


No so much, right?

I used to work, then I probably change _something_ 

Sincerly
Samuel
---  andinasoft SA - Software y Consulting  ---
Mariano Aguilera 276 y Almagro - Quito, Ecuador
Tel. +593 2 290 55 18  Cel. +593 9 946 4046
-  http://www.andinasoft.com  -
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Server side validation

2004-05-14 Thread Geeta Ramani
Hmm.. Ok, look at the source code of the page you get.. anything there?
Geeta

> -Original Message-
> From: Samuel Rochas [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 13, 2004 6:42 PM
> To: Struts Users Mailing List
> Subject: Re: Server side validation
> 
> 
> Hello Geeta,
> 
> > "login" must have been defined as a global-forward ..?
> You are right, I am quite new here, I did no notice.
> 
> > No reason. So just take it out..:)
> Ok, it's gone.
> 
> But I still get an empty page when I make a validation error :-(
> 
> The validation code is going thru, maybe another hint?
> 
> Samuel
> 
> -
> 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]



Re: Server side validation

2004-05-13 Thread Samuel Rochas
Hello Geeta,

"login" must have been defined as a global-forward ..?
You are right, I am quite new here, I did no notice.

No reason. So just take it out..:)
Ok, it's gone.

But I still get an empty page when I make a validation error :-(

The validation code is going thru, maybe another hint?

Samuel

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


RE: Server side validation

2004-05-13 Thread Geeta Ramani
Samuel:

> > input="/myDir/myForm.jsp"
> If the page is under /web (root of the application), then a 
> "/page.jsp" 
> is ok?

Yes, that should be ok.

> Why in the login example there is only a input="login" 
> without a page name?

"login" must have been defined as a global-forward ..?

> 
> > ..and you may want to check on the "scope=session" bit. 
>  > Are you using session scope?
> For what? What should be in the session?

No reason. So just take it out..:)

> 
> Samuel


regards,
Geeta 

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



Re: Server side validation

2004-05-13 Thread Samuel Rochas
Hello Geeta,

Thanks again for your answer.

Geeta Ramani wrote:
The "input" field is the path to the jsp where your form resides, something like: 

	input="/myDir/myForm.jsp"
If the page is under /web (root of the application), then a "/page.jsp" 
is ok?
Why in the login example there is only a input="login" without a page name?

..and you may want to check on the "scope=session" bit. 
> Are you using session scope?
For what? What should be in the session?
Samuel

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


RE: Server side validation

2004-05-13 Thread Geeta Ramani
Samuel: 

The "input" field is the path to the jsp where your form resides, something like: 

input="/myDir/myForm.jsp"

..and you may want to check on the "scope=session" bit. Are you using session scope?

Geeta

> -Original Message-
> From: Samuel Rochas [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 13, 2004 11:42 AM
> To: Struts Users Mailing List
> Subject: Server side validation
> 
> 
> Hello,
> 
> I am trying to use server side validation. I validate my form data in 
> the validate method of the form. When there is a validation error the 
> application shows me a blank page, and not the form again.
> 
> I guess I have an error in the action mapping configuration in 
> struts-config, I am not sure about the use of the "input" field.
> 
>   type="x.y.ItemNewAction"
> name="itemForm"
> scope="session"
> input="item">
>
>  
> 
> My form validation works fine with the login (from the struts 
> example) 
> but I can't see what is the difference between both form 
> configuration.
> 
> Can anybody help?
> 
> Thanks
> Samuel
> 
> ---  andinasoft SA - Software y Consulting  ---
> Mariano Aguilera 276 y Almagro - Quito, Ecuador
> Tel. +593 2 290 55 18  Cel. +593 9 946 4046
> -  http://www.andinasoft.com  -
> 
> 
> -
> 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]