I want to send the same object thru jsp any ideas how to do that ? converting form fields to xml string is way to go... but are there existing tools for that? I am looking here what people do usually?
Than what is suggested approach... how will you send an xml ?What techs would you use ? Now I can write whole code to convert form data into xml string but I want to use some existing framework to do this .So how would you approach this ?
Saurabh Pillai
Ranch Hand
Joined: Sep 12, 2008
Posts: 449
posted
0
Can you explain higher level functionality what you are trying to achieve? There may be some other way to do the same thing.
Jimmy Clark
Ranch Hand
Joined: Apr 16, 2008
Posts: 2187
posted
0
A simple and efficient approach would use File Transfer Protoccol (FTP) to send an XML-based file. An alternative would be to send the data as a message via messaging system.
You could even use code which looked a lot like what you wrote to upload the XML via HTTP POST, if that's the requirement. However the statement that JSP isn't the right place to put such code is still correct.
Jimmy Clark
Ranch Hand
Joined: Apr 16, 2008
Posts: 2187
posted
0
File size is an important aspect to consider. XML-based data files greater than 1 GB typically are best sent via FTP. A small XML document can be sent effectively via HTTP or JMS-based message.
Priyanka Chaurishia
Greenhorn
Joined: Oct 12, 2011
Posts: 9
posted
0
Thanks for inputs guys. I think metadata exchange on both layers () is the way to go . Still trying to figure out how to do this.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.