struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Boyer <>
Subject [Struts 2] How do I migrate an action with no result name to an annotation?
Date Fri, 02 Nov 2012 15:53:31 GMT

I'm trying to move all of my action configurations out of the struts.xml file into annotations.
For the most part it's working fine. Yet, for my actions that have results with no 'name'
parameter it doesn't work. For example, the following entry in my XML works perfectly.

  <action name="start">

However, when move this entry to my action class it doesn't work. I get an "No result defined
for action...and result input" error. What am I doing wrong? I feel like I'm missing some
fundamental concept here. My SUCCESS and INPUT results work as expected.

@Action(value = "start", results = @Result(location="/WEB-INF/jsp/register.jsp"))

Thank you,

John Boyer
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message