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

📄 shopcreation.jsp

📁 噶额外噶外骨骼感广泛高热感 就 啊啊
💻 JSP
字号:
<%@ page contentType="text/html; charset=UTF-8" %>
<%--
 * @author  Sujatha
 * @version 1.0
 *
 * Development Environment        :  Oracle9i JDeveloper
 * Name of the Application        :  shopCreation.jsp
 * Creation/Modification History  :
 *
 *     Sujatha        27-Dec-2001      Created
 *     Sujatha        07-Jan-2003      Incorporated Struts framework
 *
 * Overview of Application  
 * This jsp displays the shop creation form, which will allow users to set up 
 * their own shop
 *
--%>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

<%@ page import="oracle.otnsamples.vsm.actions.forms.ShopForm"%>
<%@ page import="oracle.otnsamples.vsm.services.data.Category"%>
<HEAD>
<TITLE><bean:message key="title.shopcreation"/></TITLE>
<!-- To prevent caching -->
<% 
    response.setHeader("Cache-Control","no-cache"); // HTTP 1.1
    response.setHeader("Pragma","no-cache"); // HTTP 1.0
    response.setDateHeader ("Expires", -1); // Prevents caching at the proxy server
   %>
<SCRIPT SRC="includes/utils.js"></SCRIPT>
<SCRIPT>
function submitForm() {
  var frm = document.forms[1];
  
  // Check if all the required fields have been entered by the user before
  // submitting the form
  if( trim(frm.shopName.value).length < 1 ) {
 
    alert(" <bean:message key='shopinfo.javascript.shopnameerror'/>");
    frm.shopName.focus();
    return ;
  }

  if(  trim(frm.description.value).length < 1 ) {
    alert(" <bean:message key='shopinfo.javascript.shopdescerror'/>");
    frm.description.focus();
    return ;
  }

   
  if( frm.description.value.length > 4000 ) {
    alert(" <bean:message key='shopinfo.javascript.shopdesclimiterror'/>");
    frm.description.focus();
    return ;
  }

  frm.submit();
}
</SCRIPT>
</HEAD>

<jsp:include page="../misc/userHeader.jsp" flush="true"></jsp:include>
<html:form action="shopcreation.do?command=createShop" name="shop" type="oracle.otnsamples.vsm.actions.forms.ShopForm" scope="request">

<TABLE width="100%" border="0" cellspacing="1" cellpadding="1"
    bgcolor="white">
    <TR> 
      <TD valign="top"> 
        <TABLE width="100%">
          <TR> 
            <TD width="20%" class="SubHeading"><bean:message key="subheading.shopcreation"/></TD>
            <TD width="80%"> 
              <HR>
            </TD>
          </TR>
  <logic:present name="message" scope="request">
       <TR> 
         <TD width="20%" align="center" class="ErrorText" colspan="2">
           <%=request.getAttribute("message")%>
         </TD>
       </TR>
</logic:present>           
        </TABLE>
        <BR>
        <TABLE width="100%" border="0" cellspacing="0"
          cellpadding="3">
          <TR> 
            <TD width="17%" class="Prompt" align="right"><bean:message key="prompt.shopName"/></TD>
            <TD width="29%">
              <html:text property="shopName" size="46" maxlength="20"/>              
            </TD>
          </TR>
          <TR> 
            <TD width="17%" class="Prompt" align="right"> <bean:message key="prompt.shopDescription"/></TD>
            <TD width="29%">
              <html:textarea property="description" rows="5" cols="35"/> 
            </TD>
          </TR>
         <TR> 
            <TD width="17%" class="Prompt" align="right"><bean:message key="prompt.category"/></TD>
            <TD width="29%"> 
              <html:select property="categoryID">
                <logic:iterate id="category" name="categories" type ="oracle.otnsamples.vsm.services.data.Category">
                    <option value="<%=category.getId()%>"><%= category.getName()%></option>                        
                 </logic:iterate>   
              </html:select>
            </TD>
          </TR> 
          <TR> 
            <TD>&nbsp;</TD>
          </TR>
        </TABLE>        
        <BR>
         <TABLE width="50%" border="0" cellspacing="0" cellpadding="3" align=center>
          <TR> 
            <TD width="30%">&nbsp;</TD>
            <TD width="10%" align="right"> <A HREF="javascript:submitForm()">
              <html:img srcKey="image.create" border="0"/></A> </TD>
            <TD width="10%" align="center">
              <A HREF="javascript:document.forms[1].reset();">
                <html:img srcKey="image.reset" border="0"/></A> </TD>
            <TD width="10%" align="left"> <A HREF="javascript:history.go(-1);">
              <html:img  srcKey="image.cancel" border="0"/></A> </TD>
            <TD width="29%">&nbsp;</TD>
          </TR>
        </TABLE>
      </TD>
    </TR>
  </TABLE>
</html:form>
<jsp:include page="../misc/commonFooter.jsp" flush="true"></jsp:include>
</BODY>
</html:html>

⌨️ 快捷键说明

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