aspose file tools*
The moose likes BEA/Weblogic and the fly likes page flow question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "page flow question" Watch "page flow question" New topic
Author

page flow question

Cyrus Serrano
Ranch Hand

Joined: Sep 29, 2003
Posts: 137
hi, i have two page flows is it possible to jump from one page flow to another page flow. And is it correct that the variables will be shared across the page flows. thanks again
Lin Feng
Ranch Hand

Joined: Dec 11, 2002
Posts: 142
Per my understanding, page flow is a bunch of related pages and actions for a certain business logic.

I am wondering why you have the requirement of jumping from one page flow to another. Or you mean communication?

Thanks

Lin
Cyrus Serrano
Ranch Hand

Joined: Sep 29, 2003
Posts: 137
hi lin, the application was divided into page flows, meaning common(name) scripts were grouped together. So for example in Flow # 1 page A will jump to Flow # 2 page D. something like that.

But i get your point on application design that one page flow for a certain business logic. thanks

Any idea on how to attain my first question.

thanks again
Cyrus Serrano
Ranch Hand

Joined: Sep 29, 2003
Posts: 137
any one has an idea if this is possible.. thanks
Kevin Conaway
Ranch Hand

Joined: Jan 27, 2006
Posts: 57
I wouldn't use globalApp for much of anything really. Try using request attributes (or parameters for non sensitive info) to pass data between flows.

Cyrus Serrano
Ranch Hand

Joined: Sep 29, 2003
Posts: 137
hi kevin

thanks for that info. i didn't know that..

can i use session variables instead?

all thorough out the web application that variable is to be accessed much like a login information of a user like password and username which will be accessed anytime or anywhere of the web application.

i tried it, but it prompts an error.. it says about something about binding..
[ September 15, 2006: Message edited by: Cyrus Serrano ]
Kevin Conaway
Ranch Hand

Joined: Jan 27, 2006
Posts: 57
What is the error your getting? Please paste

I wouldn't use session variables for communicating between page flows.

Kevin
Cyrus Serrano
Ranch Hand

Joined: Sep 29, 2003
Posts: 137
i was able to make it work now.

previous code

<netui:textbox datasource={pageFlow.globalApp.sessionVar.Input1}/>

into

<netui:textbox datasource={globalApp.sessionVar.Input1}/>

by removing the pageFlow keyword, it worked fine now.

Additional question, is it a good design to jump from one page flow to another page flow and not starting on the begin action, but rather jumping to a jsp.

@Kevin,

what would you recommend to use rather than session variables. thanks.

Also this was the previous error..

Caught exception when evaluating expression "{pageFlow.globalApp.callVars.inputA}" with available binding contexts [actionForm, pageFlow, globalApp, request, session, appication, pageContext, bundle, container, url, pageInput]. Root cause: knex.scripting.javascript.EvaluatorException: The undefined value has no properties.

[ September 20, 2006: Message edited by: Cyrus Serrano ]
[ September 20, 2006: Message edited by: Cyrus Serrano ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: page flow question
 
Similar Threads
Interaction Diagram Question
Srikanth Shenoy: Bookmarking in Struts
How big are collaboration diagrams supposed to be?
Question on Spring Webflow
struts - using validwhen for password validation