Pradeep Daniel

Greenhorn
+ Follow
since Oct 11, 2006
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 Pradeep Daniel

In fact I checked for it. It does sets the System property. As you have suggested I'l try to figure out if anything is missed out or different from the previous environment.
13 years ago
Doesn't that param (java -Dfile.encoding=cp1251) will set it to the system property ?

Even the Locale of the machine is set to ru_RU.cp1251.
13 years ago
Actually the application is already running fine in Websphere, we are in the process of migrating it to tomcat 6. In websphere we use to pass the
-Dclinet.encoding.override=cp1251 as JVM parameter to accept the input data in Russain character in any screen where we supply input (ex. Search screen)

Now in tomcat I am passing -Dfile.encoding=cp1251 but it say Invalid Data when we supply a Russian name (in Russian character) as an input also when the page comes back with the error message " Invalid data in name filed" the Russian characters that we enter turns to ???.

Please let me know whether the format in which I am supplying the JVM param is correct
13 years ago
I am using Tomcat 6
13 years ago
Hi,
I am passing the encoding parameter "-Dfile.encoding=CP1251" to the Tomcat start up by setting it to the JAVA_OPTS to support Russian character set in my application.

JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=CP1251"

On doing a grep to the tomcat process I see that the encoding is displayed

db2inst 31827 1 99 16:37 pts/0 00:00:05 /opt/jdk1.6.0_07/jre//bin/java -Dfile.encoding=CP1251

But on supplying Russian character to the input fields the application says its in-valid.

Please let me know whether I am setting the right value or something else needs to be set?
13 years ago
Thanks a Ton for your response.

I downloaded the jwsdp-1.1 (webservice development pack) which comes with JAXB 1.0 packed.
14 years ago
By Compiling the XSD i mean, genetaring the java files using the XSD.

> xjc sample.xsd


Is it possible to perform this generation of java files using JDK alone ?
14 years ago
My aplication uses jaxp 1.0 JAR file, I have change right now for which I need to change the XSD and Compile the Java source files, but I dont have the proper JAXP 1.0 environment in my machine. I tried with 1.3 version but it asks for JDK 1.5 but my applicatoin is running in 1.4.

I am not able to get the old version on JAXP any where. please suggest me how compile the XSD to generate the Java files which is compatible with version 1.4.2.
14 years ago
Hi,
I am using Fedora core 2 linux with Oracle 10g and tomcat 4 and Java 1.4. I am reading values from DB and creating an XML. The database contains a Currency column in which ther is Euro Symbol(�). After constructing the XML i am ale to see the exact euro symbol in XMl. But if i read it and display in the browser i am getting a ? symbol. But if a generate the same XMl from windows environment with the DB in the same linux machine. I an getting a Junk character in XMl but its getting displayed properly in the JSP page. Please provide me a solution
15 years ago
Hi,
I am using a fedora core 2 linux in which i have my oracle 10g database and tomcat 4.0 installed. In my application i am reading values from database and creating an XML using JDOM. This XML contains the currency tag for which the value is Euro Symbol(�) when i try to read the XML and format the currency fields in the JSP the Euro symbol is not getting displayed instead i get a ? symbol But it works if i use the application in Windows environment (i.e I have my tomcat in Windows). I all teh cases my browser is IE 6.0 and above.
15 years ago
JSP
I need to run a servlet code every time tomcat startup. Is it possible? Please let me know the procedure to achieve it and the configuration needed for it (ie, if any entry in the server.xml of tomcat is needed)
15 years ago