In my struts.xml file, I have:
<action name="preregister">
<result>/WEB-INF/views/user/register.jsp</result>
</action>
<action name="register" class="com.dentlak.user.RegisterAction">
<result name="input">/WEB-INF/views/user/register.jsp</result>
<result name="success">/WEB-INF/views/user/email-verification-needed.jsp</result>
</action>
I really dislike having the literal for register.jsp there twice. Ideally, I'd like some magic that lets me get rid of the "preregister" action entirely, so the user would go straight to register which would then say "oh, it's a get? don't bother performing validation, just forward to INPUT."