• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Struts DispatchAction problem action not called second time.

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Kunjal Shah
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just wanted to bounce my post. Would appreciate any help.
 
If you like strawberry rhubarb pie, try blueberry rhubarb (bluebarb) pie. And try this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic