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

  • Home
  • SEARCH
  • 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 8934209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:43:52+00:00 2026-06-15T09:43:52+00:00

In PHP Page, to print array, I use print_r(); In jsp, to print string,

  • 0

In PHP Page, to print array, I use print_r();
In jsp, to print string, out.print() is used.
for example :

<?php print_r($_POST); ?>

was is equal in jsp???
How can I print array values in jsp?

  • 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-06-15T09:43:55+00:00Added an answer on June 15, 2026 at 9:43 am

    you can try

    ObjectMapper mapper = new ObjectMapper();
     System.out.println( mapper.defaultPrettyPrintingWriter().writeValueAsString(myList) );
    

    myList is your array varible .

    or for post data try

    Map<String, String[]> parameters = request.getParameterMap();
    for(String parameter : parameters.keySet()) {
        if(parameter.toLowerCase().startsWith("your object name in html")) {
            String[] values = parameters.get(parameter);
            //your code here
        }
    }
    

    and import java.util.Map

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new to PHP. When I use echo to print an array element,
I have a php page with 3 different forms. I create 3 separate print
I have a <?php print $search_box; ?> in my page.tpl.php page. On pages that
I am using a hidden iframe to print page contents generated by php, this
I have this PHP page where the user can select and un-select items. The
I am trying to create a non-expiring page token that I can use on
I made a script to post comments on a page. I have used PHP
I am sending this variable to other page, to make a validation. However print_r($_POST);
So I gather I can render a specific element of the $page['content'] array like
Can you tell me what I do wrong. I use PHP. Try to upload

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.