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 not getting populated to html page.I tried
printing  WOComponent Page,there its saying subComponents are null
eventhough I set value to the page,can you guys help me Please.Code is
below


DirectAction.java
 public WOComponent helloAction() {

//retrieving username,password values from request

//get the page and set the value to the key
WOComponent nextPage = pageWithName("Details");
nextPage.takeValueForKey(username,"username");
return nextPage;

}

Details.java
public class Details extends WOComponent {

private String username;

//getter and setters

}

I am not sure Details.html file is correct
Details.html
<wo:str  value="$username"/>

and I am also not sure whether wod file is required for this.Please
Help in this.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to