priby mathew

Greenhorn
+ Follow
since Jan 28, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by priby mathew

Greetings to all..

Is there any of maximum number of parameters that can be passed through an HTTP request?

That is in my java code if I try to use request.getParameterNames() and if there are around 200 parameters from the HTML form, will it throw any error??

Or Is there any maximum number of controls that can be used in an HTML form?

Any help appreciated

Thanks in advance
priby
9 years ago
I am using the following packages in my code:

org.apache.commons.httpclient.HostConfiguration;
org.apache.commons.httpclient.HttpClient;
org.apache.commons.httpclient.NameValuePair;
org.apache.commons.httpclient.methods.PostMethod;
Thanks for your reply.

Actually there was some problem with the image file.

With fop 0.20.5 version and with a different image file Now I am able to get the background image with the following code snippet:

Greetings to all,

I am having component that sends data to another component using PostMethod of HttpClient . I want to send the type of encoding used in one component to the other component.
Is there any way to achieve this?

Any help appreciated.

Thanks in advance

priby
Actually my client application uses fop 0.20.5 and there are around hundreds of XSL FO files.

If I move to a higher version of fop, I doubt whether it would affect the already existing XSL FOs which are running on fop 0.20.5
Or is there any way to put background image for a table-cell (when using fop 0.20.5)???
[ September 25, 2008: Message edited by: priby mathew ]
Greetings to all.

I am using FOP 0.20.5 and I am trying to add a background image with the following code:



But I am not able to get the background image. I see only the text.

Any help appreciated.

Thanks in advance
priby
[ September 25, 2008: Message edited by: priby mathew ]
Greetings to all,

I have an application that converts XSL to PDF using FOP. This application works fine in JDK 1.4 and Tomcat5.0.

But when I moved this application into JDK1.5 and Tomcat 5.5 errors were thrown.

Initially,the error was related to serializer.jar. I heard that JDK 1.5 has inbuilt version of xalan, which requires serializer.jar. So I downloaded the serializer.jar and I had put it in lib folder of my application.
Upon doing this, the error related to serializer.jar dissappeared. But a new error occured while transformation.That is few xslt and exslt functions were not working properly.

I guess these errors are due to the inbuilt xalan and xerces version in JDK1.5.

Can anyone tell me how to make JDK use the jar(xalan and xerces) files of my application rather than the inbuilt versions. I believe the version of jar files in my application is lower than the version present in JDK 1.5

I even tried putting the jar files in JDK\lib\endorsed folder. But no success.


Any help appreciated.

Thanks in advance
priby
Thanks Amit for your reply

I checked the page that you suggested but they say to set the required encoding as

ServletRequest.setCharacterEncoding(String enc)

which I had already done in my code.

Moreover I am not fetching the Japanese data from a JSP page. Another application is sending the Japanese data to my application.

Thanks
priby
9 years ago
In the above code, the for loop statement is as follows:



Thanks
priby
9 years ago
Greetings to all,

I am trying to get the Japanese characters from HttpServletRequest. But I get it as question marks. The following is the code snippet that I use:




In the above code When I display the encoding of the incoming httpServletRequest it is showing as null. So I have set it to UTF-8 encoding.

But when I write it a file, i am getting japanese characters as ???.

ANy help appreciated.

Thanks in advance
Priby
9 years ago
Hi all,

I am trying to parse a big xml using SAXparser. But the problem whats happening is that the content gets truncated at random.

And the problem is happening at the characters method of SAXPArser.
Below is the code that I used in my characters() method:



When I log the the value of 'sTagValue' in the above code,I could see that value is getting truncated at random.

Any help appreciated.

Thanks in advance
Priby
Hi Christopher,
I tried as you suggested and it s working now...

Thank you..


Regards,
Priby
10 years ago
I am using POST for the form
10 years ago
Hi Christophe,

As you suggested I added the following lines in my JSP:



In the servlet I'm using the following code for fetching the value (which has japanese characters) from JSP and writing it to html file:


When I open the testing.html in IE browser, I see only '?' for Jaapanese characters... I even changed the encoding of IE to UTF-8..

Thanks
priby
10 years ago