Hello,
 
I am new to Struts Framework. I am developing a Struts based JSR 168 portlet on 
WepSphere Portal 5.1 platform. I needed some help with an error I am getting in 
designing a Tree based hierarchial View in the portlet. I am using Struts 
DispatchAction class to forward the user to the Tree based navigation. This is 
the jsp code fragment for this.
 
<html:form urlType="standard" action="Login.do">

Here I am calling the unspecified method in my DispatchAction class. 
This works fine and the tree is populated inside my Action class and displayed 
through a JSP (ActionForward). Now I am trying to associate action handling 
with the links within Tree View (MenuComponent)  doing something like this in 
my Action Class. 
 
channel.setLocation("Login.do?method=selectCMAForm&cellPointId=" + 
form.getChannel());
 
Here channel is my MenuComponent -- the last node within the tree..
This dosent seem to work and selectCMAForm method within the Action class is 
not called. I tried to call any outside link through my action class like 
channel.setLocation("http://www.google.com";); This works. 
 
I also tried to call my DispatchAction method directly through the jsp like
 
<html:form urlType="standard" 
action="Login.do?method=selectCMAForm&cellPointId=customer">
 
This also works and the selectCMAForm method is called. May be I am missing 
something here. I would appreciate any help or tips with this problem. I am 
using an ActionForm which is getting populated inside the Action class. 
Thanks
- Kunjal. 
 
 


                
---------------------------------
 Start your day with Yahoo! - make it your home page 

Reply via email to