Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Java in General and the fly likes maintaining the current state in weblogic portal Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "maintaining the current state in weblogic portal" Watch "maintaining the current state in weblogic portal" New topic

maintaining the current state in weblogic portal

Prashant Kirtiwar

Joined: Jul 08, 2005
Posts: 6
hello guys....
I do want ur help as quick as be there
and hope u respond quickly with the appropriate code...
thnx in advance....

I want to maintain the current state in tree-node structure using net-ui
library in weblogic portal 8.1
here is the scenario....

/* Code is here pls go through it */

public Forward treeState_Revision()
String nodeSel = null;

String nodeExpanded = null;

HttpSession session = getRequest().getSession();
TreeNode rootNode = (TreeNode) session.getAttribute("_rootNodeRevision");

* Handles expansion / collapse of a tree node.
* Get the String name of the content node or the expandable/collapsable node
* selected by the user.

nodeSel = getRequest().getParameter(TreeNode.SELECTED_NODE);

nodeExpanded = getRequest().getParameter(TreeNode.EXPAND_NODE);

//nodeSel = getRequest().getParameter(TreeNode.SELECTED_NODE);

// nodeSel= (String) session.getAttribute("NodeSlect");

//nodeExpanded = getRequest().getParameter(TreeNode.EXPAND_NODE);


// nodeExpanded = (String) session.getAttribute("NodeExpand");

* If the user selected an expandable/collapsable node...
if (nodeExpanded != null)
* ...then get the TreeNode object based on the node's String name...
TreeNode node = rootNode.findNode(nodeExpanded);
if (node != null)
* ...and reverse the expand/collapse state of the node.
* (I.e. if the node was previously collapsed, then expand it;
* if it was previously expanded, then collapse it.)

* When a node is selected for expansion/collapse, display changes only in the
* navigation frame.
return new Forward("tree_Revision");

return new Forward(nodeSel);


with the above code and XML parsing I have created the parent node ,their child
*module 1
so how should i maintain the state of selected node...

I agree. Here's the link:
subject: maintaining the current state in weblogic portal
jQuery in Action, 3rd edition