Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package actions.survey;
- import data.*;
- import java.util.HashMap;
- import java.util.List;
- import java.util.Map;
- import com.opensymphony.xwork2.ActionContext;
- import actions.base.BaseAction;
- public class Listing extends BaseAction {
- /**
- *
- */
- private static final long serialVersionUID = -7954410790927568904L;
- private List<Forms> forms;
- private Forms selectedForm;
- private Long formId;
- public Listing() {
- }
- public String execute() {
- selectedForm = services.getFormsById(formId);
- return SUCCESS;
- }
- public String display() {
- forms = services.getForms();
- formId = forms.get(0).getId();
- return NONE;
- }
- public String beginQuestions() {
- return "redirect";
- }
- public List<Forms> getForms() {
- return forms;
- }
- /**
- * @param selectedForm the selectedForm to set
- */
- public void setSelectedForm(Forms selectedForm) {
- this.selectedForm = selectedForm;
- }
- /**
- * @return the selectedForm
- */
- public Forms getSelectedForm() {
- return selectedForm;
- }
- /**
- * @param formId the formId to set
- */
- public void setFormId(Long formId) {
- this.formId = formId;
- }
- /**
- * @return the formId
- */
- public Long getFormId() {
- return formId;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment