Created
July 31, 2012 22:49
-
-
Save sangramanand/3221411 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
in Struts.xml | |
<action name="blog" class="com.generalsentiment.action.RedirectToBlog" method="toWPAdmin"> | |
<result name="redirect" type="redirect">${externalUrl}</result> | |
</action> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.generalsentiment.action; | |
public class RedirectToBlog { | |
private String externalUrl; | |
public String getExternalUrl() { | |
return externalUrl; | |
} | |
public String execute() { | |
externalUrl = "http://blog.generalsentiment.com"; | |
return "redirect"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment