Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8" ?>
- <jsp:root
- xmlns:jsp="http://java.sun.com/JSP/Page"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html" version="2.0">
- <jsp:directive.page language="java"
- contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" />
- <jsp:text>
- <![CDATA[ <?xml version="1.0" encoding="UTF-8" ?> ]]>
- </jsp:text>
- <jsp:text>
- <![CDATA[ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ]]>
- </jsp:text>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title>s16g38 Database Login</title>
- <style>
- .error{color:red}
- .fixed-width-input-areas{
- width: 175px
- }
- </style>
- </head>
- <body>
- <h3 align="center">IDS517 s16g38 Database Login</h3>
- <hr></hr>
- <br></br>
- <div align="center">
- <a href="index.jsp">Home</a>
- <br></br>
- <br></br>
- <br></br>
- <br></br>
- </div>
- </body>
- <div align="center">
- <f:view>
- <h:form>
- <table>
- <tbody>
- <tr>
- <th align="right">Username:</th>
- <td>
- <h:inputText id="username" styleClass="fixed-width-input-areas" size="20" value="#{actionBean1.dbInfo.userName}"
- label="Username"
- required="true"
- requiredMessage="Username is required." />
- <br></br>
- </td>
- <td>
- <h:message for="username" styleClass="error" />
- </td>
- </tr>
- <tr>
- <th align="right">Password:</th>
- <td>
- <h:inputSecret id="password" styleClass="fixed-width-input-areas" size="20" value="#{actionBean1.dbInfo.password}"
- label="Password"
- required="true"
- requiredMessage="Password is required." />
- <br></br>
- </td>
- <td>
- <h:message for="password" styleClass="error" />
- </td>
- </tr>
- <tr>
- <th align="right">Host:</th>
- <td>
- <h:selectOneMenu styleClass="fixed-width-input-areas" value="#{actionBean1.dbInfo.dbmsHost}">
- <f:selectItem itemValue="131.193.209.54" itemLabel="Server 54" />
- <f:selectItem itemValue="131.193.209.57" itemLabel="Server 57" />
- <f:selectItem itemValue="localhost" itemLabel="localhost" />
- </h:selectOneMenu> <br></br>
- </td>
- </tr>
- <tr>
- <th align="right">RDBMS:</th>
- <td>
- <h:selectOneMenu styleClass="fixed-width-input-areas" value="#{actionBean1.dbInfo.dbms}">
- <f:selectItem itemValue="MySQL" itemLabel="MySQL" />
- <f:selectItem itemValue="DB2" itemLabel="DB2" />
- <f:selectItem itemValue="Oracle" itemLabel="Oracle" />
- </h:selectOneMenu>
- <br></br>
- </td>
- </tr>
- <tr>
- <th align="right">dbschema:</th>
- <td>
- <h:inputText id="dbschema" styleClass="fixed-width-input-areas" size="20" value="#{actionBean1.dbInfo.dbSchema}"
- label="dbschema"
- required="true"
- requiredMessage="dbschema is required." />
- <br></br>
- </td>
- <td>
- <h:message for="dbschema" styleClass="error" />
- </td>
- </tr>
- <tr>
- <td></td>
- <td>
- <br></br>
- <h:commandButton value="Submit" action="#{actionBean1.connect}"/>
- </td>
- </tr>
- </tbody>
- </table>
- </h:form>
- </f:view>
- </div>
- </html>
- </jsp:root>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement