Any way for dynamic include t o pass back data to including page???

Posted on 2004-11-14
Last Modified: 2010-04-01
Any way for a dynamic include to pass back data to the including including page???
Question by:894359
    LVL 11

    Expert Comment

    Use session varaible to pass

    // in included page
    String temp = "Hello";
    session.setAttribute("name", object);

    // in including page
    String str = (String)session.getAttribute("name");
    LVL 11

    Accepted Solution

    Or if you want to use the more narrow scope, please try

    // in included page
    String temp = "Hello";
    pageContext.setAttribute("name", object);


    // in including page
    String str = (String)pageContext.getAttribute("name");

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
    There are many benefits to finding online courses that align with your personal or career goals. Read more about our reasons for continuing your education in technology.
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    728 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

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now