import java.io.UnsupportedEncodingException;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

public class SearchForm extends ActionForm {

	private String ndc           = "";
	private String tyosya_hyouji = "";
	private String id            = "";
	private String title         = "";
	private String author        = "";
	private String publisher     = "";

	public String getNdc() {
		return ndc;
	}

	public void setNdc(String ndc) {
		this.ndc = ndc;
	}

	public String getTyosya_hyouji() {
		return tyosya_hyouji;
	}

	public void setTyosya_hyouji(String tyosya_hyouji) {
		this.tyosya_hyouji = tyosya_hyouji;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getPublisher() {
		return publisher;
	}

	public void setPublisher(String publisher) {
		this.publisher = publisher;
	}

	public void reset(ActionMapping mapping, HttpServletRequest req) {
		try {
			req.setCharacterEncoding("Shift_JIS");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
	}

/*
	private String iso8859toSJIS(String s) {
		String str = "";
		try {
			str = new String(s.getBytes("iso-8859-1"), "Shift_JIS");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}

		return str;
	}
*/
}
