Implementing Custom ResultType in Struts2

there are different types of result types for a struts2 action.


for full list please visit.
http://struts.apache.org/release/2.1.x/docs/result-types.html


from the book 

how to implement a custom result type please see on

public class my customresultType extends PlainTextResult{

}

then in struts.xml file define this result type

   

and then use this in any action

Comments

Popular posts from this blog

Strings in Java