title: Why is my jsp struts2 sx:textarea rendering only as a horizontal bar instead of the expected input field?
body: <p>I started out trying to follow this tutorial to create a <a href="http://www.roseindia.net/struts/struts2/richeditor.shtml" rel="nofollow">Rich Text Editor</a>.</p>
  
  <p>I quickly realized that the tutorial was outdated and I needed to use the struts2-dojo-plugin.</p>
  
  <p>My JSP now looks like this:</p>
  
  <pre><code>&lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1"
      pageEncoding="ISO-8859-1"%&gt;
  &lt;%@ taglib prefix="s" uri="/struts-tags" %&gt;
  &lt;%@ taglib prefix="sx" uri="/struts-dojo-tags" %&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
  &lt;title&gt;Pagination Example&lt;/title&gt;
  &lt;sx:head parseContent="true"/&gt; 
  &lt;link href="&lt;s:url value="/assets/css/main.css"/&gt;" rel="stylesheet" type="text/css"/&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;s:form&gt;
          &lt;sx:textarea id="pasteTextInput" name="text" label="Paste your text here" cols="50" rows="50" /&gt;
      &lt;/s:form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>When I go to render this page, instead of the desired rich text editor, or even any text area element, all I get is a little horizontal bar.</p>
  
  <p>This is the relevant CSS:</p>
  
  <pre><code>// /assets/css/main.css
  #pasteTextInput
  {
      background-color: #fcfcfc; 
      border: 1px solid #a0a0a0;
      min-height: 500px;
      max-height: inherit;
  }
  </code></pre>
  
  <p>and this is the HTML that is created by the server:</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  
  &lt;html&gt;
  
  &lt;head&gt;
  
  &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
  
  &lt;title&gt;Pagination Example&lt;/title&gt;
  
  &lt;script language="JavaScript" type="text/javascript"&gt; 
      // Dojo configuration
      djConfig = {
          isDebug: false,
          bindEncoding: "UTF-8"
            ,baseRelativePath: "/OverviewOfStruts/struts/dojo/"
            ,baseScriptUri: "/OverviewOfStruts/struts/dojo/"
           ,parseWidgets : true
  
      };
  &lt;/script&gt; 
  
  
  
    &lt;script language="JavaScript" type="text/javascript"
          src="/OverviewOfStruts/struts/dojo/struts_dojo.js"&gt;&lt;/script&gt; 
  
  &lt;script language="JavaScript" type="text/javascript"
          src="/OverviewOfStruts/struts/ajax/dojoRequire.js"&gt;&lt;/script&gt; 
  &lt;link rel="stylesheet" href="/OverviewOfStruts/struts/xhtml/styles.css" type="text/css"/&gt; 
  
  &lt;script language="JavaScript" src="/OverviewOfStruts/struts/utils.js" type="text/javascript"&gt;&lt;/script&gt; 
  &lt;script language="JavaScript" src="/OverviewOfStruts/struts/xhtml/validation.js" type="text/javascript"&gt;&lt;/script&gt; 
  &lt;script language="JavaScript" src="/OverviewOfStruts/struts/css_xhtml/validation.js" type="text/javascript"&gt;&lt;/script&gt; 
  
  &lt;link href="/OverviewOfStruts/assets/css/main.css" rel="stylesheet" type="text/css"/&gt;
  
  &lt;/head&gt;
  
  &lt;body&gt;
  
      &lt;form id="paginationExample" name="paginationExample" action="/OverviewOfStruts/paginationExample.action" method="post"&gt;
  
  &lt;table class="wwFormTable"&gt;
  
          &lt;textarea dojoType="Editor2"
   items="linkGroup;|;textGroup;|;justifyGroup;|;listGroup;|;indentGroup;|;colorGroup"
   name="text" cols="50" rows="50" id="pasteTextInput"&gt;&lt;/textarea&gt; 
  
  
      &lt;/table&gt;&lt;/form&gt;
  
  
  
  
  
  
  
  
  
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>Is there something else I need to do for this to work?  </p>
  
  <p>I saw on <a href="https://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-21x.html#TroubleshootingguidemigratingfromStruts2.0.xto2.1.x-AjaxTheme%252FDojo" rel="nofollow">this guide to updating from struts 2.0 to struts 2.1</a> something about adding dependencies, but I couldn't figure out where to add this.  (For whatever its worth, I'm <strong><em>NOT</em></strong> using Maven.)</p>