This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 12759
    
    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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Pass XML datatype instead of Java data type
 
Similar Threads
To pass file object to webservice
Help with compareTo()
wrapper classes
Help coding
Can you pass complex type from pl sql to web service using utl_http