Hi,
Hi I am new to Struts 2, I created a POJO Class, but freamwrok gives error on
it. How to define Pojo Action Class?
Error says : "Action class not found"
here is my class :
/**
*
*/
package com.prayog.apps;
/**
* @author Administrator
*
*/
public class LoginUser {
private String userID;
private String userPassword;
/**
* @return the userID
*/
public String getUserID() {
return userID;
}
/**
* @param userID the userID to set
*/
public void setUserID(String userID) {
this.userID = userID;
}
/**
* @return the userPassword
*/
public String getUserPassword() {
return userPassword;
}
/**
* @param userPassword the userPassword to set
*/
public void setUserPassword(String userPassword) {
this.userPassword = userPassword;
}
public String execute() throws Exception {
if("psaraf".equals(userID) && "psaraf".equals(userPassword))
return "SUCCESS";
else
return "loginForm";
}
}
if i want to make this class as POJO Action Class do i need to make any special
changes in struts.xml?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]