how to send data from servlet to Jsp using request dispatcher
<p>servlet:</p>

<pre><code>  protected void doGet(HttpServletRequest request, HttpServletResponse response)
                throws ServletException, IOException {
            response.getWriter().append("Served at: ").append(request.getContextPath());
            System.out.println("Received Value: " + request.getRequestURL());
            response.getWriter().append("Decoded string: ").append(
                    Utils.getDataFromFeedbackLink(request.getPathInfo().substring(1, request.getPathInfo().length())));

            String decodeValue = Utils
                    .getDataFromFeedbackLink(request.getPathInfo().substring(1, request.getPathInfo().length()));

            request.setAttribute("finalData", decodeValue);

            RequestDispatcher rd = request.getRequestDispatcher(decodeValue);
            rd.forward(request, response);
        }
</code></pre>

<p>jsp:</p>

<pre><code>&lt;body&gt;
    Hello World ::::
    &lt;%=request.getAttribute("finalData")%&gt;
&lt;/body&gt;
</code></pre>

<p>web.xml</p>

<pre><code>&lt;servlet&gt;
    &lt;servlet-name&gt;SubmitFeedbackServlet&lt;/servlet-name&gt;

    &lt;description&gt;&lt;/description&gt;
    &lt;servlet-class&gt;com.techjini.tfs.servlets.SubmitFeedbackServlet&lt;/servlet-class&gt;
  &lt;/servlet&gt;
 &lt;servlet-mapping&gt;
    &lt;servlet-name&gt;SubmitFeedbackServlet&lt;/servlet-name&gt;
    &lt;url-pattern&gt;/submitfeedback/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
</code></pre>

<p>i am getting value but when i try to send value from Servlet to Jsp then  each time same servlet loaded so am unable to get value inside jsp please suggest me how to get value from servlet to jsp using request dispatcher or some thing i did wrong please point me where am doing mistake .</p>