package com.asyl.action;

import java.util.Properties;

import com.asyl.domain.User;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
/**
*
* @author 站在菠萝的肩膀上
*
*/
public class LoginAction extends ActionSupport implements ModelDriven<User> {

private static final long serialVersionUID = 1L;

@Override
public User getModel() {
return null;
}

@Override
public String execute() throws Exception {
String filename = "com/asyl/config/uploadpath.properties";
Properties props = new Properties();
props.load(LoginAction.class.getClassLoader().getResourceAsStream(filename));
String h = props.getProperty("abc");

System.out.println(h); //h就是要获取的属性值


System.out.println("LoginAction执行了");
return SUCCESS;
}

}