title: How to show success message on page.redirect from servlet to jsp
body: <p>I have a html form in jsp page which on submit is going to servlet ..After executing the functions in servlet i am again redirecting it to the same jsp page from which it has been invoked with a success message to display now on the same jsp page but i don't know how to do this ...</p>
  
  <p>Here is my jsp form code..</p>
  
  <pre><code> &lt;form action="CallTimer" method="GET"&gt;
      &lt;label class="button2"&gt;Set Date: &lt;/label&gt;
      &lt;input type="text" name="date" id="date"&gt;
      &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;label class="button2"&gt;Set Hour &lt;/label&gt;
      &lt;input type="text" name="hour" id="hour"&gt;
      &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;label class="button2"&gt;Set Minute: &lt;/label&gt;
      &lt;input type="text" name="minute" id="minute"&gt;
      &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
      &lt;input type="Submit" name="Submit" value="Submit" id="Submit"&gt;
      &lt;br/&gt;&lt;br/&gt;
      &lt;label class="button2"&gt;Set File-Path: &lt;/label&gt;
      &lt;input type="text" name="filepath" id="filepath"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>And here is my servlet redirect code.</p>
  
  <pre><code>response.sendRedirect("Automail.jsp");
  </code></pre>