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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:17:17+00:00 2026-06-17T09:17:17+00:00

I am developing a java RESTful web application. In one web page in particular

  • 0

I am developing a java RESTful web application. In one web page in particular I have, among the other components, a drop-down list:

  <select name="source" id="source">
    <option uri="http://localhost:9091/project/test/source/database" name="database"   count="1">database</option>
    <option uri="http://localhost:9091/project/test1/source/report2" name="report2"   count="1">report2</option>
  </select>

I would like to obtain, after the post request, the uri of the option selected by the user.
To get all the parameters to the POST method I wrote this:

@POST
@Consumes(APPLICATION_FORM_URLENCODED)
public Response mapDBSource(@FormParam("project") URI projectId,
          @FormParam("source") URI sourceId, 
          @FormParam("dest_title") String destTitle,
          @FormParam("dest_graph_uri") URI targetGraph) throws WebApplicationException {
    Response response = null;

but the content of the URI Object SourceId is not the value of the uri, but just the name of the source. What is wrong with my code? How could I get the uri without showing it?
Thanks for your help.

  • 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-17T09:17:18+00:00Added an answer on June 17, 2026 at 9:17 am

    Shouldn’t you use

     <option value="..."
    

    instead of

     <option uri="..."
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing java EE database application(JSF) where I fill drop down menus from database.
I am developing a java web application in which I have configured session-timeout to
I am currently developing a Java web application that exposes a web service interface.
I am developing a Java web application in Netbeans IDE 7.1.1 . The IDE
I'm developing a Java Web Application that runs a series of financial calculations for
I'm developing Java MIDI application. And I have stuck with debugging of exception, which
I'm developing Java application using NetBeans. I have 5 JTextFields and 2 JTextArea in
I have experience developing java web applications with Spring, but not so much with
I am developing a Java application where I am consuming a web service. The
I am using netbeans for developing java dextop application,I have created a JFilechooser which

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.