Re: how can i retain the field values when there is validation error in field

2013-03-19 Thread Muralidhar Yaragalla
ok. Now i understand. I am using jstl. I am not using struts tags. On Wed, Mar 20, 2013 at 5:03 AM, Chris Pratt wrote: > Muralidhar, > How are you specifying the form? If you aren't using the (or if you are using the "simple" theme), then you will have to handle the > form value retrieval yo

Re: how can i retain the field values when there is validation error in field

2013-03-19 Thread Chris Pratt
Muralidhar, How are you specifying the form? If you aren't using the wrote: > As stated, there is no particular action you need to take other than not > redirecting. > > If the action is hit and the params interceptor is working, they'll be > there. > > Dave > > > > On Tue, Mar 19, 2013 at 7:1

Re: how can i retain the field values when there is validation error in field

2013-03-19 Thread Dave Newton
If you haven't configured any of: * Default interceptor stack, or... * Package-specific interceptor stack, or... * Action-specific stack then you're running the default stack. The default stack is defined in struts-default.xml, contained in the struts2-core jar. It's also on the documentation wik

Re: how can i retain the field values when there is validation error in field

2013-03-19 Thread Muralidhar Yaragalla
where can i see the default interceptors configured. I mean in struts blank war application in struts.xml file there is nothing so where to check what are configured? On Wed, Mar 20, 2013 at 4:49 AM, Dave Newton wrote: > As stated, there is no particular action you need to take other than not >

Re: how can i retain the field values when there is validation error in field

2013-03-19 Thread Dave Newton
As stated, there is no particular action you need to take other than not redirecting. If the action is hit and the params interceptor is working, they'll be there. Dave On Tue, Mar 19, 2013 at 7:11 PM, Muralidhar Yaragalla < java.yaraga...@gmail.com> wrote: > Almost sorted out all the problem

Re: how can i retain the field values when there is validation error in field

2013-03-19 Thread Muralidhar Yaragalla
Almost sorted out all the problems only this is remaining. Any idea how to retain the field values? On Wed, Mar 20, 2013 at 3:55 AM, Lukasz Lenart wrote: > 2013/3/19 Muralidhar Yaragalla : > > ok I understood. I will remove but how to retain values. any idea? > > They will retain automatically >

Re: how can i retain the field values when there is validation error in field

2013-03-19 Thread Muralidhar Yaragalla
The following is what i am doing /jsp/lv/voteTopic.jsp /jsp/lv/voteTopic.jsp When there is field validation error then it is getting directed to the same jsp but the values are not retained. am i doing something wrong? On Wed, Mar 20, 2013 at 3:55

Re: how can i retain the field values when there is validation error in field

2013-03-19 Thread Lukasz Lenart
2013/3/19 Muralidhar Yaragalla : > ok I understood. I will remove but how to retain values. any idea? They will retain automatically Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-u

Re: how can i retain the field values when there is validation error in field

2013-03-19 Thread Muralidhar Yaragalla
ok I understood. I will remove but how to retain values. any idea? On Wed, Mar 20, 2013 at 3:49 AM, Lukasz Lenart wrote: > 2013/3/19 Muralidhar Yaragalla : > > I i use just plain input error messages getting printed but the values of > > the fields are not retained. > > You cannot use redirect a

Re: how can i retain the field values when there is validation error in field

2013-03-19 Thread Lukasz Lenart
2013/3/19 Muralidhar Yaragalla : > I i use just plain input error messages getting printed but the values of > the fields are not retained. You cannot use redirect and expect that the values will be retained. Remove type="redirect". Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/

Re: how can i retain the field values when there is validation error in field

2013-03-19 Thread Muralidhar Yaragalla
I i use just plain input error messages getting printed but the values of the fields are not retained. On Wed, Mar 20, 2013 at 3:43 AM, Lukasz Lenart wrote: > 2013/3/19 Muralidhar Yaragalla : > > I have tried this > > > > > class="com.ymd.ums.lv.action.VotingTopicAction" method="execute"> > >

Re: how can i retain the field values when there is validation error in field

2013-03-19 Thread Muralidhar Yaragalla
I have used redirect as follows /jsp/lv/voteTopic.jsp /jsp/lv/voteTopic.jsp This did not work eighter. On Wed, Mar 20, 2013 at 3:04 AM, Paul Benedict wrote: > You retain those values by doing a forward to a view (JS

Re: how can i retain the field values when there is validation error in field

2013-03-19 Thread Lukasz Lenart
2013/3/19 Muralidhar Yaragalla : > I have tried this > > class="com.ymd.ums.lv.action.VotingTopicAction" method="execute"> >/jsp/lv/voteTopic.jsp > > >/jsp/lv/voteTopic.jsp > > > > But even error messages not getting pri

Re: how can i retain the field values when there is validation error in field

2013-03-19 Thread Muralidhar Yaragalla
I have tried this /jsp/lv/voteTopic.jsp /jsp/lv/voteTopic.jsp But even error messages not getting printed. On Wed, Mar 20, 2013 at 3:04 AM, Paul Benedict wrote: > You retain those values by doing a forward to a view

Re: how can i retain the field values when there is validation error in field

2013-03-19 Thread Paul Benedict
You retain those values by doing a forward to a view (JSP, freemarker, etc.) whose view knows how to render the appropriate model object in the action. Paul On Tue, Mar 19, 2013 at 4:32 PM, Muralidhar Yaragalla < java.yaraga...@gmail.com> wrote: > Hi when there is validation error in the farm th