> In my very simple WebObjects application I move between pages using
> hyperlinks, but every now and then I'll need to initiate the move from code
> based on certain conditions.
Depending on what you are doing this might be a crude start...
public returnAPage anAction() {
if (somecondition) {
someConditionPage nextPage =
(someConditionPage)pageWithName("ThisPage");
} else if (anotherCondition) {
anotherConditionPage nextPage =
(anotherConditionPage)pageWithName("ThatPage");
}
// Initialize your component here
return nextPage;
}
-Alex