So I changed this slightly and think I've got something working...
// Referenced:
core/src/main/java/org/apache/struts2/dispatcher/ServletDispatcherResult.java
// http://docs.oracle.com/javaee/5/api/javax/servlet/RequestDispatcher.html
public class KeywordResultType extends StrutsResultSupport {
Thanks Paul,
So based on what you said, I looked up creating a custom result type:
http://indreshtech.blogspot.com/2013/03/implementing-custom-resulttype-in.html
And added this code (struts.xml):
And using it like so (struts.xml):
/HelloWorld.j
It sounds like what you want is to create a new result type.
Cheers,
Paul
On Tue, Jul 1, 2014 at 4:08 PM, Christopher Gokey wrote:
> We've got some pretty old code that I'm trying to port over to Struts2 and
> if someone could point me in the right direction in how I can rewrite this
> code
3 matches
Mail list logo