I think I should try to explain my problem a little better. As I said I am having trouble with DispatchAction action handling. The method within DispatchAction is not called the second time after initial request is processed ( i.e. ActionForm is populated inside my action class and forwarded to
jsp file which displays the values in a TreeView). Now I wanted to know if I can use the same DispatchAction method -- selectCMAForm shown below with the same ActionForm and ActionMapping Login.do for events within TreeView, I was asking because I dont see the DispatchAction method called in the logs (System.out.println). I know that my ActionForm would be mostly reset() due to the request scope, but I am populating my form inside the Action and dont need the contents. I am very new to
Struts and would appreciate any help or advice.
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 (am using the struts-layout extension library to design the TreeView). I am using Struts DispatchAction class to forward the user to the Tree based navigation. This is the jsp code fragment for this.
Here the unspecified method in the DispatchAction class is called fine. 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.
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 get this error in my Websphere portal log file.
2005.08.28 17:54:19.285 E com.ibm.wps.engine.tags.PortletRenderTag doStartTag
javax.portlet.UnavailableException: Creation of WrapperServlet failed
at com.ibm.wps.pe.om.definition.impl.ServletDefinitionImpl.createWrapper(ServletDefinitionImpl.java:367)....
2005.08.28 17:54:54.806 W com.ibm.wps.engine.Servlet doGet()
class com.ibm.wps.state.nls.inputmediators.exceptions.NlsCannotInterpretStateException: Unspecified message ()
....
I tried to call any outside link through my action class like
. This works.
I also tried to call my DispatchAction method directly through the jsp like
This also works and the selectCMAForm method is called. May be I am missing something here. I am new to Struts framework and would appreciate any help or tips with this problem. I am using an ActionForm which is getting populated inside the Action class.
Thanks
- Kunjal.
[ August 29, 2005: Message edited by: Kunjal Shah ]
[ August 29, 2005: Message edited by: Kunjal Shah ]