Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 23rd, 2012  |  syntax: Java  |  size: 2.05 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <%@page import="com.pack.speech.SpeakText"%>
  2. <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
  3.     pageEncoding="ISO-8859-1"%>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  5. <html>
  6. <head>
  7. <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  8. <meta http-equiv="refresh" content="8; URL=http://localhost:8080/Talktive_speech/QuestionServlet">
  9. <title>Insert title here</title>
  10. <style>
  11. body
  12. {
  13. background: url('http://www.dvd-ppt-slideshow.com/images/ppt-background/background-3.jpg') no-repeat;
  14. background-size: 100% 100%;
  15. }
  16. </style>
  17. </head>
  18. <body>
  19.  
  20. <br/>
  21. <br/>
  22. <br/>
  23. <br/>
  24.  
  25.  
  26. <form action="QuestionServlet" id="1">
  27.         <Table align="center">
  28.                 <tr>
  29.                         <td colspan=2><textarea rows=3 cols=35 readonly><%=session.getAttribute("text") %></textarea></td>
  30.                 </tr>
  31.                 <tr>
  32.                         <td colspan=1><textarea rows=1 cols=35 readonly><%=session.getAttribute("opt1") %></textarea></td>
  33.                 </tr>
  34.                 <tr>
  35.                         <td colspan=1><textarea rows=1 cols=35 readonly><%=session.getAttribute("opt2") %></textarea></td>
  36.                 </tr>
  37.                
  38.                 <tr>
  39.                         <td colspan=1><textarea rows=1 cols=35 readonly><%=session.getAttribute("opt3") %></textarea></td>
  40.                 </tr>
  41.                 <tr>
  42.                         <td colspan=1><textarea rows=1 cols=35 readonly><%=session.getAttribute("opt4") %></textarea></td>
  43.                 </tr>
  44.                 <tr>
  45.                         <td colspan=1><input type="text">
  46.                 </tr>
  47.                 <tr>
  48.                         <td colspan="2" align="center"><input type="submit" name="opt3" value="OK" align="middle"/></td>
  49.                         </tr>
  50.                         <tr>
  51.                         <td colspan="2" align="center"><input type="submit" name="opt3" value="SKIP" align="middle"/></td>             
  52.                 </tr>
  53.         </Table>
  54. </form>
  55.  
  56. <!-- <script type="text/javascript">
  57. document.FrmUser.Submit();
  58.  
  59. </script> -->
  60.  
  61.  
  62.  
  63. </body>
  64. <%
  65. SpeakText st= new SpeakText();
  66. st.doSpeak((String)session.getAttribute("text"));
  67. st.doSpeak((String)session.getAttribute("opt1"));
  68. st.doSpeak((String)session.getAttribute("opt2"));
  69. st.doSpeak((String)session.getAttribute("opt3"));
  70. st.doSpeak((String)session.getAttribute("opt4"));
  71.  
  72. //st=null;
  73. %>
  74.  
  75. </html>