In order to send information from one bean to another you can use the variable resover or the value binding. When the action to navigate from tree.jsp to editFolder.jsp, you can locate the folderBean (if it doesn't exist it'll be created) and set the data you want to send.



On 3/30/06, Dean Hiller <[EMAIL PROTECTED]> wrote:
I am have this

treeBean -> tree.jsp
folderBean -> editFolder.jsp

When someone click on the tree.jsp, I need to fill in the folderBean
with the folderName, folderId, and folderDescription properties.  What
is the best design for this?  I am quite the newb to all this.  I am
thinking session state right now is easiest, and I retrieve the
folderBean in treeBean.editFolder() action method and fill it in, so
when editFolder.jsp renders, it renders with the correct data.  Please
suggest alternatives and what you think is the best.

Lastly, what about dealing with someone who opens up two windows(which
would be in the same session).  Couldn't he possibly step on himself
since I am storing this stuff in the session above?

thanks,
dean


Reply via email to