1 | <%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> |
---|
2 | <%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> |
---|
3 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> |
---|
4 | <%@ page import="gov.uscis.fipsnet.form.NewLetterForm" %> |
---|
5 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
---|
6 | <html> |
---|
7 | <head> |
---|
8 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
---|
9 | <title>FIPS Custom Letter Template Creation</title> |
---|
10 | |
---|
11 | <!-- =============== this is for nice Editor ================= --> |
---|
12 | <!-- <script type="text/javascript" src="js/nicEdit-latest.js"></script> |
---|
13 | <script type="text/javascript"> |
---|
14 | //<![CDATA[ |
---|
15 | bkLib.onDomLoaded(function() { nicEditors.allTextAreas(); }); |
---|
16 | //]]> |
---|
17 | </script> --> |
---|
18 | <script src="js/ckeditor.js"></script> |
---|
19 | <link href="js/ckeditor/samples/plugins/stylesheetparser/assets/sample.css" rel="stylesheet"> |
---|
20 | <script> |
---|
21 | |
---|
22 | // This call can be placed at any point after the |
---|
23 | // <textarea>, or inside a <head><script> in a |
---|
24 | // window.onload event handler. |
---|
25 | |
---|
26 | // Replace the <textarea id="editor"> with an CKEditor |
---|
27 | // instance, using default configurations. |
---|
28 | |
---|
29 | CKEDITOR.replace( 'paragraph' ); |
---|
30 | |
---|
31 | </script> |
---|
32 | |
---|
33 | |
---|
34 | </head> |
---|
35 | <body> |
---|
36 | <h1>Create Custom Letter Template</h1> |
---|
37 | <center> |
---|
38 | <% |
---|
39 | //String letterVal = "<script>document.writeln(newVal)</script>"; |
---|
40 | //System.out.println("this is from jsp file...: " + letterVal); |
---|
41 | String letterVal = request.getParameter("createNewLtr"); |
---|
42 | |
---|
43 | System.out.println("this is from jsp file...: " + letterVal); |
---|
44 | %> |
---|
45 | |
---|
46 | <div style="color:white"> |
---|
47 | Create New Letter: <bean:write name="SelectLetterForm" property="createNewLtr"></bean:write> <br> |
---|
48 | </div></center> |
---|
49 | <html:form focus="paragraph" action="/newLetterText"> |
---|
50 | <!-- ===== Hide the value for the letter name but still use it in action class. ===== --> |
---|
51 | <div style="padding:16px"> |
---|
52 | <html:hidden property="createNewLtr" name="SelectLetterForm" /> |
---|
53 | </div> |
---|
54 | <!-- ===== Start first putting content for the new letter here... ===== --> |
---|
55 | <div> |
---|
56 | Enter New Letter Template Content |
---|
57 | <html:textarea property="paragraph" styleId="paragraph" cols="100" rows="30"> |
---|
58 | <strong>Your</strong> HTML <em>code</em> goes here.<br> |
---|
59 | This text will be pre-loaded in the editor when it is rendered. |
---|
60 | </html:textarea> |
---|
61 | </div> |
---|
62 | |
---|
63 | <div style="padding:16px"> |
---|
64 | <div style="float:left;padding-right:8px;"> |
---|
65 | <html:submit value="submit" /> |
---|
66 | <html:reset value="reset" /> |
---|
67 | </div> |
---|
68 | </div> |
---|
69 | </html:form> |
---|
70 | </body> |
---|
71 | |
---|
72 | </html> |
---|