⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 forminfo.java

📁 wiki建站资源 java编写的 很好用
💻 JAVA
字号:
/*    WikiForms - a WikiPage FORM handler for JSPWiki.     Copyright (C) 2003 BaseN.     JSPWiki Copyright (C) 2002 Janne Jalkanen (Janne.Jalkanen@iki.fi)    This program is free software; you can redistribute it and/or modify    it under the terms of the GNU Lesser General Public License as published    by the Free Software Foundation; either version 2.1 of the License, or    (at your option) any later version.     This program is distributed in the hope that it will be useful,    but WITHOUT ANY WARRANTY; without even the implied warranty of    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    GNU Lesser General Public License for more details.     You should have received a copy of the GNU Lesser General Public License    along with this program; if not, write to the Free Software*/package com.ecyrd.jspwiki.forms;import java.io.Serializable;import java.util.HashMap;import java.util.Map;/** * Container for carrying HTTP FORM information between * WikiPlugin invocations in the Session. * *  @author ebu */public class FormInfo    implements Serializable{    public static final int EXECUTED =  1;    public static final int OK       =  0;    public static final int ERROR    = -1;    public int    status;    public boolean hide;    public String action;    public String name;    public String handler;    public String result;    public String error;    //public PluginParameters submission;    public Map submission;    public FormInfo()    {        status = OK;    }    public void setStatus( int val )    {        status = val;    }    public int getStatus()    {        return( status );    }    public void setHide( boolean val )    {        hide = val;    }    public boolean hide()    {        return( hide );    }    public void setAction( String val )    {        action = val;    }    public String getAction()    {        return( action );    }    public void setName( String val )    {        name = val;    }    public String getName()    {        return( name );    }    public void setHandler( String val )    {        handler = val;    }    public String getHandler()    {        return( handler );    }    public void setResult( String val )    {        result = val;    }    public String getResult()    {        return( result );    }    public void setError( String val )    {        error = val;    }    public String getError()    {        return( error );    }    /**     * Copies the given values into the handler parameter map using Map.putAll().     * @param val parameter name-value pairs for a Form handler WikiPlugin     */    public void setSubmission( Map val )    {        submission = new HashMap();        submission.putAll( val );    }    /**     * Adds the given values into the handler parameter map.     * @param val parameter name-value pairs for a Form handler WikiPlugin     */    public void addSubmission( Map val )    {        if( submission == null )            submission = new HashMap();        submission.putAll( val );    }    /**     * Returns parameter name-value pairs for a Form handler WikiPlugin.     * The names are those of Form input fields, and the values whatever     * the user selected in the form. The FormSet plugin can also be used      * to provide initial values.     *      * @return Handler parameter name-value pairs.     */    public Map getSubmission()    {        return( submission );    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -