Re: How to get dropdown list value even if validation intercetor intercepts

2009-02-20 Thread sheva j
Hi Seshagiri,
Thanks for your replay.

I found the solution for that. As prepare() method of Preparable interface
will be called before validation interceptor, I have placed my code inside
that.

Thanks,
Sheeva



On Thu, Feb 19, 2009 at 11:44 AM, Seshagiri V seshagi...@kensium.comwrote:

 Hi,

 Please send a snippet of my code in the jsp:

 Thank you,
 Seshagiri V
 seshagi...@kensium.com.

 US Main: 877 KENSIUM (536.7486)
 US Fax:   312.242.3029

 Kensium
 200 S Wacker Dr, Suite 3100
 Chicago, IL 60606

 Confidentiality Note:
 -
 The information contained in this e-mail is strictly confidential and for
 the intended use of the addressee only. Any disclosure, use or copying of
 the information by anyone other than the intended recipient is prohibited.
 If you have received this message in error, please notify the sender
 immediately by return e-mail and securely discard this message.



 -Original Message-
 From: sheva j [mailto:shee...@gmail.com]
 Sent: Thursday, February 19, 2009 10:38 AM
 To: Struts Users Mailing List
 Subject: How to get dropdown list value even if validation intercetor
 intercepts

 Hi,
 I am using struts 2.0.11. I am using s:select tag, struts is populating
 the list box correctly for all the time, except when the validation error
 occurs for any other field.

 My issue is:

 When I first enter into the page, I am able to get the dropdown value,

 When I submit the page with out entering some mandatory fields, the list
 box
 is cleared,

 Once I enter all the mandatory fields and submit the page, I can able to
 get
 the values in list box.(but now it is not showing the selected value in
 dropdown, instead it is showing 'Please select') .

 I want the list box to be populated even if validation error occurs

 Kindly help me

 Thanks in advance.

 Thanks,
 Sheeva

 No virus found in this incoming message.
 Checked by AVG - www.avg.com
 Version: 8.0.237 / Virus Database: 270.11.0/1959 - Release Date: 02/18/09
 20:55:00


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




Re: How to get dropdown list value even if validation intercetor intercepts

2009-02-19 Thread Felipe Fraga
My guess is you are not populating the list in the prepare() method of
the action.

After validation error, prepare() of Preparable classes is called so
the lists are repopulated.


Felipe

On Thu, Feb 19, 2009 at 5:07 AM, sheva j shee...@gmail.com wrote:
 Hi,
 I am using struts 2.0.11. I am using s:select tag, struts is populating
 the list box correctly for all the time, except when the validation error
 occurs for any other field.

 My issue is:

 When I first enter into the page, I am able to get the dropdown value,

 When I submit the page with out entering some mandatory fields, the list box
 is cleared,

 Once I enter all the mandatory fields and submit the page, I can able to get
 the values in list box.(but now it is not showing the selected value in
 dropdown, instead it is showing 'Please select') .

 I want the list box to be populated even if validation error occurs

 Kindly help me

 Thanks in advance.

 Thanks,
 Sheeva


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



Re: How to get dropdown list value even if validation intercetor intercepts

2009-02-19 Thread Greg Lindholm

See this FAQ item:

http://struts.apache.org/2.x/docs/how-do-we-repopulate-controls-when-validation-fails.html


Rag wrote:
 
 Hi,
 I am using struts 2.0.11. I am using s:select tag, struts is populating
 the list box correctly for all the time, except when the validation error
 occurs for any other field.
 
 My issue is:
 
 When I first enter into the page, I am able to get the dropdown value,
 
 When I submit the page with out entering some mandatory fields, the list
 box
 is cleared,
 
 Once I enter all the mandatory fields and submit the page, I can able to
 get
 the values in list box.(but now it is not showing the selected value in
 dropdown, instead it is showing 'Please select') .
 
 I want the list box to be populated even if validation error occurs
 
 Kindly help me
 
 Thanks in advance.
 
 Thanks,
 Sheeva
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-get-dropdown-list-value-even-if-validation-intercetor--intercepts-tp22094114p22101779.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



How to get dropdown list value even if validation intercetor intercepts

2009-02-18 Thread sheva j
Hi,
I am using struts 2.0.11. I am using s:select tag, struts is populating
the list box correctly for all the time, except when the validation error
occurs for any other field.

My issue is:

When I first enter into the page, I am able to get the dropdown value,

When I submit the page with out entering some mandatory fields, the list box
is cleared,

Once I enter all the mandatory fields and submit the page, I can able to get
the values in list box.(but now it is not showing the selected value in
dropdown, instead it is showing 'Please select') .

I want the list box to be populated even if validation error occurs

Kindly help me

Thanks in advance.

Thanks,
Sheeva


RE: How to get dropdown list value even if validation intercetor intercepts

2009-02-18 Thread Seshagiri V
Hi,

Please send a snippet of my code in the jsp:

Thank you,
Seshagiri V
seshagi...@kensium.com. 
 
US Main: 877 KENSIUM (536.7486)
US Fax:   312.242.3029
 
Kensium
200 S Wacker Dr, Suite 3100
Chicago, IL 60606
 
Confidentiality Note:
-
The information contained in this e-mail is strictly confidential and for
the intended use of the addressee only. Any disclosure, use or copying of
the information by anyone other than the intended recipient is prohibited.
If you have received this message in error, please notify the sender
immediately by return e-mail and securely discard this message.
 
 

-Original Message-
From: sheva j [mailto:shee...@gmail.com] 
Sent: Thursday, February 19, 2009 10:38 AM
To: Struts Users Mailing List
Subject: How to get dropdown list value even if validation intercetor
intercepts

Hi,
I am using struts 2.0.11. I am using s:select tag, struts is populating
the list box correctly for all the time, except when the validation error
occurs for any other field.

My issue is:

When I first enter into the page, I am able to get the dropdown value,

When I submit the page with out entering some mandatory fields, the list box
is cleared,

Once I enter all the mandatory fields and submit the page, I can able to get
the values in list box.(but now it is not showing the selected value in
dropdown, instead it is showing 'Please select') .

I want the list box to be populated even if validation error occurs

Kindly help me

Thanks in advance.

Thanks,
Sheeva

No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.0.237 / Virus Database: 270.11.0/1959 - Release Date: 02/18/09
20:55:00


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