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 4124578
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T23:45:31+00:00 2026-05-20T23:45:31+00:00

I have many parameters to pass to the server using JAX-RS. Is there a

  • 0

I have many parameters to pass to the server using JAX-RS.

Is there a way to pass or AarryList with the URL?

  • 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-20T23:45:32+00:00Added an answer on May 20, 2026 at 11:45 pm

    You have a few options here.

    Option 1: A query parameter with multiple values

    You can supply multiple simple values for a single query parameter. For example, your query string might look like:

    PUT /path/to/my/resource?param1=value1&param1=value2&param1=value3

    Here the request parameter param1 has three values, and the container will give you access to all three values as an array (See Query string structure).

    Option 2: Supply complex data in the PUT body

    If you need to submit complex data in a PUT request, this is typically done by supplying that content in the request body. Of course, this payload can be xml (and bound via JAXB).


    Remember the point of the URI is to identify a resource (RFC 3986, 3.4), and if this array of values is data that is needed to identify a resource then the URI is a good place for this. If on the other hand this array of data forms part of the new representation that is being submitted in this PUT request, then it belongs in the request body.

    Having said that, unless you really do just need an array of simple values, I’d recommend choosing the Option 2. I can’t think of a good reason to use URL-encoded XML in the URL, but I’d be interested to hear more about exactly what this data is.

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

Sidebar

Related Questions

I have following json data which I want to pass it to server using
How can I pass two querysting parameters in URL routing using ASP.NET 4.0? I
I have a class with a complex construction process with many parameters. Multiple clients
I have a toolkit that has many methods often taking Expression<Func<T,TProperty>> as parameters. Some
I'm using JSF/ICEFaces. I have a table that have many rows with values and
I'm building a search page that will have many different search parameters that the
i have to send parameters with get to a url. It's an sms gateway
I have a function with many input parameters, and I need a function that
I have a stored procedure in SQL Server 2005 which accepts few parameters of
I have a system with many parameter sets macroized (macros of the form #define

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.