Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7582659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:29:22+00:00 2026-05-30T18:29:22+00:00

How can I pass the parameter value in the result type=stream action? <action name=print

  • 0

How can I pass the parameter value in the result type=”stream” action?

       <action name="print" class="mypty.EntryAction" method="print">
            <result name="pdf-stream-result" type="stream">
                <param name="inputName">fileStream</param>
                <param name="contentType">application/pdf</param>
                <param name="contentDisposition">filename=${generatedPDFFileName}</param>
                <param name="entryId">entryId=${entryId}</param>
           </result>
                <result name="input">/entry.jsp</result>
            </action>

        <action name="editEntry" class="mypty.EntryAction" method="editEntry">
            <result>/Entry.jsp</result>
        </action>

I am trying to call the action via javascript from Entry.jsp page.

function print1()
    {
        var w = 1024;
        var h = 800;
        var left = (screen.width/2)-(w/2);
        var top = (screen.height/2)-(h/2);
        var url="print.action";
        var uploadWindow = window.open (url, 'PrintPopUp', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=0, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);
        uploadWindow.focus();
    }

If I call this action like below, I can get the entryId from the print action. No need to pass the value.

function print()
    {
        //print function
        document.chooseDates.action = 'print.action';
        document.chooseDates.submit();
    }

I want to pass the value of entryId to the print action. I can see the value of entryId in the previous action. This print action is called when clicking on the button. But when print action is called, the entryID value becomes 0. Both action classes have getters and setters for entryId. Is there anyway to pass those value?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T18:29:23+00:00Added an answer on May 30, 2026 at 6:29 pm

    Once the action execution is done all objects in the valuestack will be nullified, if you want to access data from provious action you can use following

    1. Using chain interceptor
    2. Use session
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

if i have a protected method, can i pass in a parameter where the
Simple task like make AJAX request , pass one parameter and return result, can
I know that if you pass a Class type as a parameter for a
I see that with SQL Server 2005 you can pass a parameter as numeric
When I submit a form in HTML, I can pass a parameter multiple times,
How can I pass the Parameter to a function. for example public void GridViewColumns(params
I know that I can pass a string as the second parameter to the
name_iexact keyword is a parameter we can pass to filter function in django.model. Can
How can I pass parameters to the OnSuccess function of the AjaxOptions class in
How can I pass parameters in an OLE DB Source to call a table-valued

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.