Hi All !!
 
I am using OPS Xforms.The xform instance is submitted to a jsp.I am trying to retrieve the same xform instance in the jsp using Dom4j.
My jsp contains the following code segment :
 

<[EMAIL PROTECTED] import="org.dom4j.io.SAXReader"%>

<[EMAIL PROTECTED] import="org.dom4j.Document"%>

<[EMAIL PROTECTED] import="java.io.*"%>

<%InputStream in = request.getInputStream();

int k;

int aBuffSize = 1123123;

String StringFromWS="";

byte buff[] = new byte[aBuffSize];

OutputStream xOutputStream = new ByteArrayOutputStream(aBuffSize);

while ( (k=in.read(buff) ) != -1)

xOutputStream.write(buff,0,k);

StringFromWS = StringFromWS + xOutputStream.toString();

out.println("INPUT STREAM CONTENT"+StringFromWS);  

%>

SAXReader xmlReader=new SAXReader();

Document document=xmlReader.read(request.getInputStream());

when i try to see what the InputStream holds using out.println, i notice that it is not proper xml ( although , it contains the values which i entered in textfields ).

out.print on (request.getInputStream) gives the following on jsp:

INPUT STREAM CONTENT%24portlet%24p1.=&%24portlet%24p1.%24node%5E0s9WqPrV24I%3D=99999999999999999999999&%24portlet%24p1.%24node%5EHVFtrBn2ms4%3D=GARIMA+SINGH&%24portlet%24a1.%24action%5E=Submit&%24portlet%24p1.%24instance=0ZzMD9YYnN3r8g3AmDd%2BCtfarq3X2FUD%2BNE7GPlgd%2BJ9yuarhw0dEE9y2wU701B1KIWvf0wVwmZx%0D%0AQ5jYbB%2Bw8V0ggwrqucu2DE4Xp4p%2BB8Ci0LpDmnS6LF7CKE6NISrlrI0M%2FVcyiKewWAkFg5eIa2Dg%0D%0A9xgtrQcmRAQSFrVrwo8EZlU4ew8%2BT9sFsFph25D5MmP1VPBVuUqlq%2BOvyWqDo9Wk7FgenIJEEzXG%0D%0AV3KkOg6n9EARBZYka6KkZHL41qY%2BE5TmftoHGv6FyuhRsfqjoXsWBqwIicP3NfYbZcTLTWI%3D&%24portlet%24p1.%24key=LTOVlxYclwULvY4ov2LveWw761ek4WYr&%24instance=7JcdLCa02wbO2qnhtqrjAe1CAaIskGOtTMXrgcbV2YCM39AfIi7BdXG4fe9D2pse1CEHTaPFgxE8%0D%0AGm2IDjQC5ieuSa6PT4Q0h4c6o69Fzzh3tmjBU9rhOf3cf8FlGl2H9XzlkpuHzcE%2Fx9QBWYk3P%2FvT%0D%0A34KwHgljppkIo9Gxw8Ou9L1WFcu9b5Yti%2FyV17QHZeC15642pptb2UBtY7ufQwqtkoFXo%2B1eG2Sh%0D%0ASiZgcm5TEcE8%2BrHCyQHwFDac9DZ4yeEA5wU0pLCZNlB92uTOn1gmY8zDkYOi0gM5OCHafMM%3D&%24key=sVGGqfusdKWuZ31VrpD%2BsMracKQEdBB%2B

(P.S : 99999999999999999999999 and GARIMA SINGH were the values which i entered in textfields )

 

Can anyone suggest me the possible solution ?

Thanks in advance !!

Regards,

Garima

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
dom4j-user mailing list
dom4j-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to