title: JAVA - Is there possible pass a servlet value received to a .java file, but in another project?
body: <p>good afternoon. I have a .JSP file that send a value to a servlet file. I have another project, where there is a java file in that i want to get this servlet value received by .JSP file.</p>
  
  <p>My question is if is there possible pass this servlet value to this .java file in another project ? Or can i send by .JSP file directly ?</p>
  
  <p>I created a Java Class in my Web Application, but now, how can i pass the servlet parameter to this java class ?</p>
  
  <p>I will put the code down here:</p>
  
  <p>Servlet code:</p>
  
  <pre><code>public class ServletJava extends HttpServlet {
  
      protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
       response.setContentType("text/html;charset=UTF-8");
  
       /*I WANT TO INSTANCE THE PARAMETER HERE TO SEND TO OTHER CLASS*/
      }
  
      @Override
      protected void doGet(HttpServletRequest request, HttpServletResponse response)
              throws ServletException, IOException {
          processRequest(request, response);
      }
  
      @Override
      protected void doPost(HttpServletRequest request, HttpServletResponse response)
              throws ServletException, IOException {
          processRequest(request, response);
      }
  
      @Override
      public String getServletInfo() {
          return "Short description";
      }
  
  }
  </code></pre>
  
  <p>The Class java:</p>
  
  <pre><code>public class RecebeServlet {
       public static void main(String[] args) throws Exception {
        /*I WANT RECEIVE THE PARAMETER HERE !! */
     }
  }
  </code></pre>