RequestDispatcher include of jsp is not coming in place

Posted on 2009-04-21
Medium Priority
Last Modified: 2012-05-06

I want to include the FCHTMLRenderer.jsp page in my jsp, I am doing with RequestDispatcher using following code,
but the included jsp code is coming in first para of the even before the HTML tag, I want to display withing the Table TD.When I am doing with JSP include it is working fine, but i want to use the RequestDispatcher  as I need to pass the parameters dynamically
Please suggest the possible solution,

        <td width="<%=width%>" >
        <%RequestDispatcher rd=request.getRequestDispatcher("FCHTMLRenderer.jsp"+par1);
        <td width="<%=width%>">
            <jsp:include page="FCHTMLRenderer.jsp" flush="true">
                <jsp:param name="chartSWF" value="/OA_HTML/eisrs/jsp/dashboard/FC/MSColumn3D.swf" />
                <jsp:param name="strURL" value="/OA_HTML/eisrs/jsp/dashboard/XMLData/SecondChartData.xml" />
                <jsp:param name="strXML" value="" />
                <jsp:param name="chartId" value="chart2" />
                <jsp:param name="chartWidth" value="450" />
                <jsp:param name="chartHeight" value="300" />
                <jsp:param name="debugMode" value="false" />
                <jsp:param name="registerWithJS" value="false" /> 

Open in new window

Question by:ramadevimandala
LVL 10

Assisted Solution

mahome earned 80 total points
ID: 24192331
You can use the include syntax with an expression in the value:

<jsp:include page="FCHTMLRenderer.jsp" flush="true">
    <jsp:param name="par1Name" value="<%= par1Value %>" />   

Open in new window


Accepted Solution

ramadevimandala earned 0 total points
ID: 24192365
I got the solution...

just did out.flush(); before rd.inclue(..)...

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Strategic internal linking is often considered an SEO power technique, especially for content marketing. Do you need to hire an SEO agency to optimize you internal linking? No, this article will help you understand the basics of internal linking and…
Tech giants such as Amazon and Google have sold Alexa and Echo to such an extent that they have become household names. And soon they are expected to be used by commoners in their homes, ordering takeout, picking out a song, answering trivia questio…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses
Course of the Month16 days, 17 hours left to enroll

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question