Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

JAX-RS, Consuming an aggregated Object ?

Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I hope that you could come with some suggestions on this topic.
I will first describe what works ( part-A ) and then what I would like to add ( part-B).
I have an HTML-FORM, fetching a couple of attributes and then parsing those in my RESTful-service like below ( in this example I am using the RESTeasy-implemenation ).


The FileUploadForm-class 'mirrors' my HTML-form.
The HTML-form has the attributes :fileName,owner and access

I would like to have zero or more 'tags' on the HTML-form, giving the user the opportunity to tag ( class that is key/value ) the file in various ways.
So there would be 2 new fields for every tag and the user should be able to click a plus-symbol to be able to add more.
Pretty much equivalent to when adding properties for the Connection-Pool in Glassfish.

The question is on best practice :
How should I harvest my tags from the HTML-form ?
Should I just create one new attribute in the FileUploadForm of type 'String' and put all of the tags there : as in {[key,value],[key,value], etc etc } and save it as a 'clob' in the database , and how should I package them on the HTML-Form ( naming of the attributes when creating 'row' by 'row ( key/value ) by ( key/value ).
I really would like to use curl to test my model to begin with and then getting into the nitty grits of the HTML-form

best regards, inki
    Bookmark Topic Watch Topic
  • New Topic