aspose file tools*
The moose likes Struts and the fly likes method not executing in action class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "method not executing in action class" Watch "method not executing in action class" New topic
Author

method not executing in action class

shukla raghav
Ranch Hand

Joined: Aug 03, 2008
Posts: 200
this is a very strange problem.

strutms.xml



Action Class



index.jsp



result.jsp



none of the setter /getters are working, nor is the execute method working. It seems as if the interceptors are not populating. The System.out.println()'s are not showing any result on the console. what could be the problem??? although the result.jsp is shown but without reflecting the username.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Do you really not indent your code? It's one thing if that's actually your preference (which I would find amazing), it's another to expect *other* people to dig out structure and purpose.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Works fine for me. Check your startup logs, check configuration using the config-browser plugin, turn devMode on, turn of logging to DEBUG level.
shukla raghav
Ranch Hand

Joined: Aug 03, 2008
Posts: 200
I am really sorry, that was a hurried up work, so i did not happen to indent the code. Mostly my code is well formatted with proper indentations and comments.

I have resolved the issue. Now i am looking forward to Test integrate Struts 2 with GWT. Please provide me some details if you have any regarding the same.

Thanks
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Please start new threads for new questions, thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: method not executing in action class
 
Similar Threads
struts 2 don�t get radio button
Form Validation using xml in struts2
Struts 2 - wrong method executed
WARNING: Could not find action or result
Handling multiple form data in struts2