📄 submit.java
字号:
package com.web.tag;
import javax.servlet.jsp.tagext.*;
import javax.servlet.jsp.*;
import java.io.*;
/**
*
*
* To change this generated comment edit the template variable "typecomment":
* Window>Preferences>Java>Templates.
* To enable and disable the creation of type comments go to
* Window>Preferences>Java>Code Generation.
*/
public class Submit extends TagSupport {
private String type = "";
private String name = "";
private String onClick = "";
private String value = "提交";
public int doStartTag() throws JspException {
try {
JspWriter out = pageContext.getOut();
out.println("<p align=right> <input type="+type+" value="+value+" onclick=\""+onClick+"\" name=\""+name+"\" input type=button class=btn3_mouseout onmouseover=\"this.className='btn3_mouseover'\" onmouseout=\"this.className='btn3_mouseout'\">"+
" <input type=reset value=全部重写 input type=button class=btn3_mouseout onmouseover=\"this.className='btn3_mouseover'\" onmouseout=\"this.className='btn3_mouseout'\">");
} catch (IOException ioExc) {
throw new JspException(ioExc.toString());
}
return EVAL_BODY_INCLUDE;
}
public int doEndTag() throws JspException {
return EVAL_PAGE;
}
/**
* Returns the onClick.
* @return String
*/
public String getOnClick() {
return onClick;
}
/**
* Returns the type.
* @return String
*/
public String getType() {
return type;
}
/**
* Sets the onClick.
* @param onClick The onClick to set
*/
public void setOnClick(String onClick) {
this.onClick = onClick;
}
/**
* Sets the type.
* @param type The type to set
*/
public void setType(String type) {
this.type = type;
}
/**
* Returns the name.
* @return String
*/
public String getName() {
return name;
}
/**
* Sets the name.
* @param name The name to set
*/
public void setName(String name) {
this.name = name;
}
/**
* Returns the value.
* @return String
*/
public String getValue() {
return value;
}
/**
* Sets the value.
* @param value The value to set
*/
public void setValue(String value) {
this.value = value;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -