.jsp pages have access to the a reference named application from which you can gain
access to
objects stored in your servlet context. I believe you should use the following method
to access
context scoped objects within your jsp pages.
You can extract the reference to your treemodel with the
Hello,
My question might sound naive but I really eed your answer.
I'm storing an object in ServletContext with the following code :
servlet.getServletContext().setAttribute(treemodel,root);
where root is an object of type Node(myclass).
In my jsp I want to retrieve this object from the
Hi Constantina,
Instead of servlet.getServletContext().setAttribute(treemodel,root);
I use request.setAttribute(treemodel,root);
In the JSP, instead of
DirectoryModel((Node)servlet.getServletContext().getAttribute(treemodel)
%.
I use bean:write name=treemodel property=propertyOfNodeClass / to
Thanx,
It finally worked by using bean.
Konstantina
- Original Message -
From: Enrique Rodriguez [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, April 03, 2002 4:50 PM
Subject: RE: How to take object from the Action to jsp
Hi Constantina,
Instead
4 matches
Mail list logo