AdicionaLocalAction

package br.mackenzie.projeto.action;
import br.mackenzie.projeto.control.ConexaoMySQL;
import br.mackenzie.projeto.model.Local;
import static com.opensymphony.xwork2.Action.SUCCESS;
import com.opensymphony.xwork2.ActionSupport;
import org.apache.struts2.interceptor.SessionAware;
import java.util.Map;

public class AdicionaLocalAction extends ActionSupport implements SessionAware {
    private Map session;
    private String nome;
    
        @Override
    public String execute() {
        ConexaoMySQL.setLocal(nome);
        return SUCCESS;
    }

    public String getNome() {
        return nome;
    }

    public void setNome(String nome) {
        this.nome = nome;
    }
    


    @Override
    public void setSession(Map<String, Object> session) {
        this.session = session;
    }
}