|
Hi
/* where source is the xml
*/
Object source =
request.getAttribute("source")
XSLTInputSource xmlSource = null;
if( source instanceof Document){
xmlSource = new XSLTInputSource ((document)
source);
}else if(( source
instanceof File) || ( source instanceof
String)){
if( source instanceof File)
{
xmlSource = new XSLTInputSource (new FileReader((File)
source));
}else{
xmlSource = new XSLTInputSource (new
FileReader((String) source));
}
hope this will help
8-)
----- Original Message -----
Sent: Thursday, April 18, 2002 6:57
PM
Subject: Transform XMLDocument into a
String or XSLTInputSource.
Hi,
I
have a problem with xml. I have a XMLDocument i have modified and i have to
convert it to a XSLTInputSource.
Does
anyone know how to do it?
thanks in advance.
Generoso.
Hello,
I have a problem with servlets and session
objects and I don't know how I can solve it.
From a html page I call a servlet for
modifying the content of a session object. Immediately after, the html calls
other servlet that it returns the data it finds in the session
object.
the problem is that Sometimes the servlet
returns the values of the lastest session object. In this case, its like the
second servlet had used the previous version of the session
object.
I have solved the problem stopping the
execution during 1 sec. to allow to save the session object but I thing it's
wrong because I'm penalizing the execution.
Always I use the methods getAttribute() and setAttribute()
for using the object.
How can I to synchronize
this?
|