Advertisement
Guest User

Untitled

a guest
Mar 17th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <jsp:root
  3. xmlns:jsp="http://java.sun.com/JSP/Page"
  4. xmlns:f="http://java.sun.com/jsf/core"
  5. xmlns:h="http://java.sun.com/jsf/html" version="2.0">
  6. <jsp:directive.page language="java"
  7. contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" />
  8. <jsp:text>
  9. <![CDATA[ <?xml version="1.0" encoding="UTF-8" ?> ]]>
  10. </jsp:text>
  11. <jsp:text>
  12. <![CDATA[ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ]]>
  13. </jsp:text>
  14. <html xmlns="http://www.w3.org/1999/xhtml">
  15. <head>
  16. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  17. <title>Login</title>
  18. </head>
  19. <body>
  20. <f:view>
  21. <h4 align="center">IDS517 s16g38 Database Login</h4>
  22. <hr />
  23. <a href="index.jsp">Home</a>
  24. <br />
  25. <hr />
  26. <br />
  27.  
  28. <h:form>
  29. username:<h:inputText id="username" value="#{username}" /> <br />
  30. password:<h:inputText id="password" value="#{password}" /> <br />
  31. host:
  32. <h:selectOneMenu value="#{host}">
  33. <f:selectItem itemValue="131.193.209.54" itemLabel="Server 54" />
  34. <f:selectItem itemValue="131.193.209.57" itemLabel="Server 57" />
  35. <f:selectItem itemValue="localhost" itemLabel="localhost" />
  36. </h:selectOneMenu>
  37. RDBMS:
  38. <h:selectOneMenu value="#{rdbms}">
  39. <f:selectItem itemValue="MySQL" itemLabel="MySQL" />
  40. <f:selectItem itemValue="DB2" itemLabel="DB2" />
  41. <f:selectItem itemValue="Oracle" itemLabel="Oracle" />
  42. </h:selectOneMenu>
  43. dbSchema:<h:inputText id="password" value="#{password}" /> <br />
  44. <h:commandButton value="Submit" />
  45. </h:form>
  46.  
  47. </f:view>
  48. </body>
  49. </html>
  50. </jsp:root>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement