You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Seshagiri V <se...@kensium.com> on 2009/02/19 07:14:25 UTC

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

Hi,

Please send a snippet of my code in the jsp:

Thank you,
Seshagiri V
seshagiriv@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:sheevaj@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-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


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

Posted by sheva j <sh...@gmail.com>.
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 <se...@kensium.com>wrote:

> Hi,
>
> Please send a snippet of my code in the jsp:
>
> Thank you,
> Seshagiri V
> seshagiriv@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:sheevaj@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-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>