title: How to pass parameters from jsp to jsx file?
body: <p>Java 1.8, if no parameters, my test jsp calling jsx works fine. The question is how to pass parameters from jsp to jsx, so far i cannot see the message.</p>
  
  <p>In the jsp file, i'm using react 15.4 for testing, but will use the more recent versions.</p>
  
  <pre><code>&lt;script src="https://cdn.bootcss.com/react/15.4.2/react.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://cdn.bootcss.com/react/15.4.2/react-dom.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://cdn.bootcss.com/babel-standalone/6.22.1/babel.min.js"&gt;&lt;/script&gt;
  
  &lt;div id="example"&gt;&lt;/div&gt;
  &lt;script type="text/babel" src="alert.jsx"&gt;
      &lt;Alert1 toWhat="sth...." /&gt;;
  &lt;/script&gt;
  </code></pre>
  
  <p>The alert.jsx</p>
  
  <pre><code>const Alert1 = (props) =&gt; {
      ReactDOM.render(
          &lt;h5&gt;{props.toWhat} &lt;/h5&gt;,
          document.getElementById('example')
      )
  };
  </code></pre>
  
  <p>I won't use the React.createClass(). We want to stay close to recent React.</p>
  
  <p>Thanks !</p>