This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

method not executing in action class

 
shukla raghav
Ranch Hand
Posts: 203
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 203
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please start new threads for new questions, thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic