Re: Pass parameters from One HTML to another HTML

2013-03-12 Thread jp . malrieu
possibly cause this? JPM - Mail original - De: miriyala srinivas srinivas2...@gmail.com À: Jean Pierre Malrieu jp.malr...@free.fr Cc: WebObjects-Dev List webobjects-dev@lists.apple.com Envoyé: Mardi 12 Mars 2013 02:52:57 Objet: Re: Pass parameters from One HTML to another HTML Thanks to all

Pass parameters from One HTML to another HTML

2013-03-11 Thread miriyala srinivas
Hi All, I am completely new to WO.Here I am trying to pass user entered values from one html page to another html.I have retrieved user entered values in DirectAction class and I am setting retrieved values to another page using takeValueForKey() method and i am returning the page,but values are

Re: Pass parameters from One HTML to another HTML

2013-03-11 Thread Jean Pierre Malrieu
Your code seems correct to me. Did you inspect (in debugging mode) the value of the username variable in helloAction() and make sure this value is correctly set before handing it the nextPage? It is quite easy to make a typo when retrieving values from a direct action parameters. What happens

Re: Pass parameters from One HTML to another HTML

2013-03-11 Thread Hugi Thordarson
Hi Miryala. Your code looks fine, assuming the rest of it is correct. It's a little old style though, see example below for a nicer, type safe version. This assumes you're using Wonder, which you probably are judging from the syntax in your template. If you're not—well, there's your problem.

Re: Pass parameters from One HTML to another HTML

2013-03-11 Thread Hugi Thordarson
I didn't really answer your question though, did I :-). If printing the username in helloAction and setUser (like Jean Pierre suggested) yields no suspicious results, you might want to check if the Details.wo/Details.html is correctly located in your Components folder. Try adding some content

Re: Pass parameters from One HTML to another HTML

2013-03-11 Thread miriyala srinivas
Thanks to all for valuable suggestions and I looked around and I modified the html code and then it worked fine. Modified code Details.html webobject name=test Details.wod test : WOString { value = username; } On Mon, Mar 11, 2013 at 4:17 PM, Jean Pierre Malrieu jp.malr...@free.frwrote: Your