Results 1 to 7 of 7
  1. #1
    rich0517 is offline Member
    Join Date
    Apr 2012
    Posts
    4
    Rep Power
    0

    Default Forms that send xml to sharepoint or email

    Hi,
    I'm trying to find which tools to correctly use to create a form that then will send a file through email or directly to a sharepoint site in some other way.

    Right now I've created the form with netbeans, and i'm thinking the next step is to somehow convert the form data to xml and then send via email or some other method.

    If someone could give me a high level overview of what to look at it(jdom? SAX? am I on the right track?) would be appreciated.

    Thank You!

  2. #2
    Diargg is offline Senior Member
    Join Date
    Feb 2012
    Posts
    117
    Rep Power
    0

    Default Re: Forms that send xml to sharepoint or email

    This book (ch. 3) could be of use to you. Writing XML, assuming you're also the one reading it, isn't hard at all - just text.

    Text fields/panels often have a var.getText() method - that might help you out.

  3. #3
    rich0517 is offline Member
    Join Date
    Apr 2012
    Posts
    4
    Rep Power
    0

    Default Re: Forms that send xml to sharepoint or email

    This looks fantastic, I'm reading through it now. Thank You! :D

  4. #4
    Diargg is offline Senior Member
    Join Date
    Feb 2012
    Posts
    117
    Rep Power
    0

    Default Re: Forms that send xml to sharepoint or email

    Of course! One thing that might make life easier is that Java doesn't understand what " " " means, which is why you have to do " \" ". But, it's fine with " ' " . XML is ok with both " and ' for attributes.

    I learned my XML from the book I sent your way. If you'll be decoding your xml, I'd look into JDOM - it's much more intuitive than DOM, in my opinion.

  5. #5
    rich0517 is offline Member
    Join Date
    Apr 2012
    Posts
    4
    Rep Power
    0

    Default Re: Forms that send xml to sharepoint or email

    thanks, am i going down the right path in general? My plans are to:
    1. create a form in NetBeans
    2. convert form data to XML
    3. send XML to sharepoint. Based on the book you recommended, I think i'm going to be able to put code in the netBeans form to make the data XML(although i'm not sure if this is the correct way to go). If you happen to know an easier route, please let me know. Is JDOM primarily used to take xml and convert to other file types?

  6. #6
    Diargg is offline Senior Member
    Join Date
    Feb 2012
    Posts
    117
    Rep Power
    0

    Default Re: Forms that send xml to sharepoint or email

    JDOM reads xml files into a Document (Collection of Elements), which you can then look through for your information. I'm not familiar with SAX unfortunately - it's in the book though.

    It's very easy to create XML data - just make sure it's well-formed. Personally, I don't use NetBeans for actual coding, just GUI design, but that's a personal choice. You'll want to do something whenever the user is done with the form (think buttons) that looks at all the fields and does something with the data there.

  7. #7
    rich0517 is offline Member
    Join Date
    Apr 2012
    Posts
    4
    Rep Power
    0

    Default Re: Forms that send xml to sharepoint or email

    Thanks, i'm using netbeans for the form design only and most everything else is done in eclipse. Thanks for all your assistance!

Similar Threads

  1. Replies: 10
    Last Post: 06-06-2010, 06:49 PM
  2. how to send an email
    By Hussain Ali in forum Advanced Java
    Replies: 9
    Last Post: 03-19-2010, 07:44 AM
  3. how to send an email
    By painamrata in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 02-22-2009, 04:28 PM
  4. send email using JMS
    By Heather in forum Advanced Java
    Replies: 9
    Last Post: 01-07-2009, 03:04 PM
  5. send email using apache commons email
    By jnamendi in forum JavaServer Faces (JSF)
    Replies: 0
    Last Post: 10-14-2008, 05:55 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •