Re: bean missing after validation

2004-09-20 Thread Antony James
ruts take us back to input page ?( using > > > forward or redirect i guees its redirect) > > > > > > -Original Message- > > > From: Sebastian Ho [mailto:[EMAIL PROTECTED] > > > Sent: Monday, September 20, 2004 12:59 PM > > > To: Struts Users Ma

RE: bean missing after validation

2004-09-20 Thread Sebastian Ho
nput page ?( using > > forward or redirect i guees its redirect) > > > > -Original Message- > > From: Sebastian Ho [mailto:[EMAIL PROTECTED] > > Sent: Monday, September 20, 2004 12:59 PM > > To: Struts Users Mailing List > > Subject: be

Re: bean missing after validation

2004-09-20 Thread Erik Weber
What did you change to Session scope? It looks to me like you are trying to put the current user ID into the form as a hidden variable. I would have thought that your "user" bean would already have been in Session scope . . . not the case? Are you retrieving other values for your form from Sessi

Re: bean missing after validation

2004-09-20 Thread Sebastian Ho
Tried changing it to session scpope. Guess wat, I hit into another problem. Because the values are in session scope, whenever there's validation errors, the values entered by user previously was reset to whats set in session! Guess have to continue reading to find a workaround.. If only struts doe

Re: bean missing after validation

2004-09-20 Thread Erik Weber
Perhaps you would like to use the html-el tags (which also come with the Struts dist), like this: But there is nothing wrong with using the standard html hidden input as far as I know (but you give up some Struts luxuries). Using Session scope is one way, but not the only way, to solve your p

Re: bean missing after validation

2004-09-20 Thread Jitender K Chukkavenkata
Hi Sebastian, I would suggest you to manually call validate method and let your data still remains in the request scope incase of validation being failed. I feel this to be a better solution for your scenario. Jitender Kumar C.V.

RE: bean missing after validation

2004-09-20 Thread Sebastian Ho
Ho [mailto:[EMAIL PROTECTED] > Sent: Monday, September 20, 2004 12:59 PM > To: Struts Users Mailing List > Subject: bean missing after validation > > > hi > > i have the following codes in my JSP : > > property="userID" scope="request"/>

Re: bean missing after validation

2004-09-20 Thread Sebastian Ho
Why didnt I use html:hidden? Whenever I use that I have parsing error and exception thrown which I think is because of the within . Using didn't cause any problem. If html:hidden will not cause the problem and I am doing it the wrong way. Pls advise. Ok..now I understand the scope implication.

RE: bean missing after validation

2004-09-20 Thread Jitender K Chukkavenkata
I dont think this is right solution.. Jitender Kumar C.V.

Re: bean missing after validation

2004-09-20 Thread Jitender K Chukkavenkata
Could you be little bit clear at your JSP? Thanks. Jitender Kumar C.V.

Re: bean missing after validation

2004-09-20 Thread Erik Weber
First I would ask, why aren't you using the Struts tags (such as html:hidden)? I assume that you are using them to render your other inputs (such as those of type "text"). But, to answer your question, it's a matter of scope. When the page containing the form is first rendered, the hidden varia

RE: bean missing after validation

2004-09-20 Thread Sachin Bhutada
guees its redirect) -Original Message- From: Sebastian Ho [mailto:[EMAIL PROTECTED] Sent: Monday, September 20, 2004 12:59 PM To: Struts Users Mailing List Subject: bean missing after validation hi i have the following codes in my JSP : "/> which converts into . If validation

bean missing after validation

2004-09-20 Thread Sebastian Ho
hi i have the following codes in my JSP : "/> which converts into . If validation is used and there are errors, the input page is displayed. Now the above value became : The valus is missing.. Can anyone explain why this is happening and how to resolve it? sebastian