• Post Reply Bookmark Topic Watch Topic
  • New Topic

JAX-RS, Consuming an aggregated Object ?  RSS feed

Posts: 11
  • Mark post as helpful
  • send pies
  • 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
Forget Steve. Look at this tiny ad:
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!