title: calling jsp or javascript from java
body: <p>Is it possible to call a JSP page from Java (I have written below method in Java only not on jsp) ?                      I want to do something like..  </p>
  
  <pre><code>public void testmethod(){
  
    if(somecondtion){
      show some messege to the user.
   }  
  
  
  } 
  </code></pre>