Results 1 to 7 of 7
- 04-25-2012, 09:32 PM #1
Member
- Join Date
- Apr 2012
- Posts
- 4
- Rep Power
- 0
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!
- 04-25-2012, 10:28 PM #2
Senior Member
- Join Date
- Feb 2012
- Posts
- 117
- Rep Power
- 0
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.
- 04-25-2012, 11:29 PM #3
Member
- Join Date
- Apr 2012
- Posts
- 4
- Rep Power
- 0
Re: Forms that send xml to sharepoint or email
This looks fantastic, I'm reading through it now. Thank You! :D
- 04-25-2012, 11:40 PM #4
Senior Member
- Join Date
- Feb 2012
- Posts
- 117
- Rep Power
- 0
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.
- 04-26-2012, 12:12 AM #5
Member
- Join Date
- Apr 2012
- Posts
- 4
- Rep Power
- 0
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?
- 04-26-2012, 12:20 AM #6
Senior Member
- Join Date
- Feb 2012
- Posts
- 117
- Rep Power
- 0
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.
- 04-26-2012, 12:37 AM #7
Member
- Join Date
- Apr 2012
- Posts
- 4
- Rep Power
- 0
Similar Threads
-
simple send email APP, but when press send button appeared:
By lse123 in forum Advanced JavaReplies: 10Last Post: 06-06-2010, 07:49 PM -
how to send an email
By Hussain Ali in forum Advanced JavaReplies: 9Last Post: 03-19-2010, 08:44 AM -
how to send an email
By painamrata in forum JavaServer Pages (JSP) and JSTLReplies: 2Last Post: 02-22-2009, 05:28 PM -
send email using JMS
By Heather in forum Advanced JavaReplies: 9Last Post: 01-07-2009, 04:04 PM -
send email using apache commons email
By jnamendi in forum JavaServer Faces (JSF)Replies: 0Last Post: 10-14-2008, 06:55 PM
Bookmarks