package com.mkyong.user.action;
public class LoginAction{
//business logic
public String execute() {
return "success";
}
}
//Struts xml
<package name="user" namespace="/User" extends="struts-default">
<action name="validateUser" class="com.mkyong.user.action.LoginAction">
<result name="success">pages/welcome.jsp</result>
</action>
<package>
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.