📄 myinfoform_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
import ws.woa.core.*;
import ws.woa.util.*;
public class MyInfoForm_jsp extends HttpJspBase {
private static java.util.Vector _jspx_includes;
public java.util.List getIncludes() {
return _jspx_includes;
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
javax.servlet.jsp.PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html; charset=Shift_JIS");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\r\n");
/**
* WOA MyInfo Modify Form
*/
out.write("\r\n");
out.write("\r\n");
out.write("\r\n\r\n");
ws.woa.core.UserInfo userInfo = null;
synchronized (session) {
userInfo = (ws.woa.core.UserInfo) pageContext.getAttribute("userInfo", PageContext.SESSION_SCOPE);
if (userInfo == null){
try {
userInfo = (ws.woa.core.UserInfo) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "ws.woa.core.UserInfo");
} catch (ClassNotFoundException exc) {
throw new InstantiationException(exc.getMessage());
} catch (Exception exc) {
throw new ServletException("Cannot create bean of class " + "ws.woa.core.UserInfo", exc);
}
pageContext.setAttribute("userInfo", userInfo, PageContext.SESSION_SCOPE);
}
}
out.write("\r\n\r\n");
out.write("<SCRIPT LANGUAGE=\"JavaScript\">\r\nfunction submit_check(){\r\n if(!checkNotEmpty('Account',document.MyInfoForm.Account)||\r\n !checkBytes('Account',document.MyInfoForm.Account,20)||\r\n !checkNotEmpty('Password',document.MyInfoForm.Password)||\r\n !checkBytes('Password',document.MyInfoForm.Password,20)||\r\n !checkNotEmpty('Name',document.MyInfoForm.Name)||\r\n !checkBytes('Name',document.MyInfoForm.Name,100)||\r\n !checkBytes('Email',document.MyInfoForm.Mail,100)||\r\n !checkBytes('Tel',document.MyInfoForm.Tel,20)||\r\n !checkBytes('Address',document.MyInfoForm.Address,200)){\r\n return false;\r\n } else {\r\n return confirm('Modify?');\r\n }\r\n}\r\n");
out.write("</SCRIPT>\r\n\r\n");
out.write("<h2>個人情報");
out.write("</h2>\r\n\r\n");
out.write("<FORM ACTION=\"myinfo.module\" METHOD=\"POST\" NAME=\"MyInfoForm\" ONSUBMIT=\"return submit_check();\">\r\n");
out.write("<TABLE>\r\n ");
out.write("<TR>\r\n ");
out.write("<TH>Account");
out.write("</TH>\r\n ");
out.write("<TD>\r\n ");
out.write("<INPUT TYPE=\"TEXT\" NAME=\"Account\" SIZE=\"20\"\r\n VALUE=\"");
out.print(StrUtil.tagFilter(userInfo.getAccount()));
out.write("\">\r\n ");
out.write("</TD>\r\n ");
out.write("</TR>\r\n ");
out.write("<TR>\r\n ");
out.write("<TH>Group");
out.write("</TH>\r\n ");
out.write("<TD>");
out.write("<B>");
out.print(StrUtil.tagFilter(userInfo.getGroupName()));
out.write("</B>");
out.write("<BR>(Not Modifiable)");
out.write("</TD>\r\n ");
out.write("</TR>\r\n ");
out.write("<TR>\r\n ");
out.write("<TH>Password");
out.write("</TH>\r\n ");
out.write("<TD>\r\n ");
out.write("<INPUT TYPE=\"PASSWORD\" NAME=\"Password\" SIZE=\"20\"\r\n VALUE=\"");
out.print(StrUtil.formFilter(userInfo.getPassword()));
out.write("\">\r\n ");
out.write("</TD>\r\n ");
out.write("</TR>\r\n ");
out.write("<TR>\r\n ");
out.write("<TH>Name");
out.write("</TH>\r\n ");
out.write("<TD>\r\n ");
out.write("<INPUT TYPE=\"TEXT\" NAME=\"Name\" SIZE=\"20\"\r\n VALUE=\"");
out.print(StrUtil.formFilter(userInfo.getName()));
out.write("\">\r\n ");
out.write("</TD>\r\n ");
out.write("</TR>\r\n ");
out.write("<TR>\r\n ");
out.write("<TH>Email");
out.write("</TH>\r\n ");
out.write("<TD>\r\n ");
out.write("<INPUT TYPE=\"TEXT\" NAME=\"Mail\" SIZE=\"40\"\r\n VALUE=\"");
out.print(StrUtil.formFilter(userInfo.getMail()));
out.write("\">\r\n ");
out.write("</TD>\r\n ");
out.write("</TR>\r\n ");
out.write("<TR>\r\n ");
out.write("<TH>Tel");
out.write("</TH>\r\n ");
out.write("<TD>\r\n ");
out.write("<INPUT TYPE=\"TEXT\" NAME=\"Tel\" SIZE=\"20\"\r\n VALUE=\"");
out.print(StrUtil.formFilter(userInfo.getTel()));
out.write("\">\r\n ");
out.write("</TD>\r\n ");
out.write("</TR>\r\n ");
out.write("<TR>\r\n ");
out.write("<TH>Address");
out.write("</TH>\r\n ");
out.write("<TD>\r\n ");
out.write("<INPUT TYPE=\"TEXT\" NAME=\"Address\" SIZE=\"60\"\r\n VALUE=\"");
out.print(StrUtil.formFilter(userInfo.getAddress()));
out.write("\">\r\n ");
out.write("</TD>\r\n ");
out.write("</TR>\r\n");
out.write("</TABLE>\r\n");
out.write("<BR>\r\n");
out.write("<INPUT TYPE=\"SUBMIT\" NAME=\"SAVE\" VALUE=\"Modify\">\r\n");
out.write("<INPUT TYPE=\"RESET\" VALUE=\"Reset\">\r\n");
out.write("<INPUT TYPE=\"BUTTON\" VALUE=\"Go Back\" onClick=\"javascript:history.back();\">\r\n");
out.write("</FORM>\r\n");
} catch (Throwable t) {
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (pageContext != null) pageContext.handlePageException(t);
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -