aspose file tools*
The moose likes JSP and the fly likes Pass XML datatype instead of Java data type Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Pass XML datatype instead of Java data type" Watch "Pass XML datatype instead of Java data type" New topic
Author

Pass XML datatype instead of Java data type

Dattatray Sutar
Ranch Hand

Joined: Jul 12, 2006
Posts: 46
Hi Ranchers!
I am trying to call a Class mothod from a JSP page.The method takes some parameters.I dont want to use Java data type parameter e.g. addfunction(int a,int b) where a and b are Java specific data type.Instead of this i want to pass XML data type and that class mothod will also accept the XML data type so that this will not remain Java specific mothod call.
So ini summary i want to know how to pass XML data type to a Java Mothod?
Thanks for your time.


with regards<br />Datta.<br /> <br />To the world you might be one person, but to one person you just might be the world !
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12674
    
    5
how to pass XML data type to a Java Mothod?


If you have an XML document parsed into a JAVA program you have a collection of Java objects which can be manipulated by standard Java techniques. For example, calling a method with a reference to a Node object - all perfectly normal Java.

See the JavaDocs for org.w3c.dom package for examples of the interfaces implemented by the Java objects making up a DOM (Document Object Model).

If you have further questions, try the XML forum.

Bill


Java Resources at www.wbrogden.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Pass XML datatype instead of Java data type
 
Similar Threads
wrapper classes
To pass file object to webservice
Help coding
Help with compareTo()
Can you pass complex type from pl sql to web service using utl_http