pavithra murthy

Ranch Hand
+ Follow
since Feb 06, 2009
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by pavithra murthy


User when he entered plan "platinum"on jsp page...first servlet and finally DAOImplementation class gets called. Now the someAmountMoney1 variable will have the total investment amount i receive after 3 years. This I want to display it on JSP.

Could anyone provide me suggestion on how the value of variable in method can be called in JSP and display value stored in variable to user?

i have a condition implemented in method :
public boolean getOutManageInvestment(String accountID, String password,
double someAmountMoney, String plan) throws MyWebBankException {

double interestrate;
if (plan.equalsIgnoreCase("PLATINUM"))
interestrate=0.70; double someAmountMoney1=0.0;
System.out.println("Amount you entered is"+someAmountMoney);
System.out.println("Amount you receive after period of 3 years you will receive"+someAmountMoney1);
Hi Friends,

I tried to run an ejb project... and followed the steps in the below blog

In the above link, it says you can export the project as .jar and deploy in autodeploy folder of Glassfish.
1) I started Glassfish and was not able to find autodeploy folder.
2) By putting in that folder, what actually happens...I mean what is the use of writing this application and exporting and putting into this folder....
After this, what do I need to do. Could you please help me with this?

Thank you
Hi all,

I was searching for a java code with have 1000 lines for a refactoring project.
The main goal for this is that I need to identify smells and should be refactored.

Please can anyone provide me your suggestions on how can progress on this?
hello friends
i have written a java code to digitally sign an email. the program compiles fine . But while running i am getting an error.
please could you help me out .
i have used jars

1. javamail-crypto-bouncycastle-smime_060622.jar
2. javamail-crypto_060622.jar
3. bcmail-jdk15-144.jar

14 years ago
hello friend,

i need to write a java code to digitally sign an email....which jar do i need to use,,please could anyone help me out.
digitally signing a complete email is it possible in java.
14 years ago
hello friend ,

i have written a java code for digitally signing and password protect a pdf document using itext.jar...
now what is happening is i am using export.cer and keystore.ks which i created using a keytool command in command prompt. so when i open the pdf the signature is invalid ...only when i manually click on the signature and verify it then it will get validated...also when i send the pdf to my friends computer the same thing is happening .Could anyone please help me out in solving this issue..
is this because i am using some non trusted certificate and keystore

Also if i have to get a trusted certificate from Versign or actually do they give me the private key similar to keystore.ks
the code is given below . please could anyone help me out !!!
14 years ago
actually i had written a java code to password protect and digital sign a pdf file . in this program i am using private key and export.cer (public key certificate) . now the problem with this code i am facing is the digital signature is valid in my system and if i mail it to my friend the signature signed by me is becoming invalid .

the above two was created using java keytool command in command prompt .

so i thought it is problem with the certificate since it was not trusted one . so i planned to take it from verisign and trying with the openssl command .
do i need to install something in my friends system so that the signature becomes valid .

please could you help me out
14 years ago

D:\>openssl genrsa -des3 1024>VeriSign.key

'openssl' is not recognized as an internal or external command,
operable program or batch file.
this is the error message i am getting
14 years ago

please could anyone tell me "what is openssl"
at office in command prompt i tried with this command in command prompt

openssl genrsa -des3 1024>VeriSign.key ( it is working there)

but when at home in command prompt i use the same command its failing .
please could anyone explain to me
14 years ago
hello friend ,

i have written a java code to digital sign and password protect pdf file . i have used keystore.ks and exports.cer
exports.cer is my public key certificate which i have created using command in command prompt

both created in cmd prompt using below commands

when i execute the java program the signed pdf when i open the Signature is valid . But when i send the same signed pdf to my collegue's system and when she opens it the signature is invalid .

Do i need to install anything in my collegues system also . Please could anyone help me out !!!

Please could anyone tell me on both client and server side only public key is used.No private key is needed .
14 years ago
hello friend ,

i modified the program and put the password in PDFReader . but that exception is not going ..bad user password...but however i am getting the protected signed pdf ....but am getting signature in only one pdf..
please could you help me out ..

please could anyone help me out ...i have written this code for digitally signing pdf. here
when i compile the code works fine but after running and entering a user id i get an exception

D:\password>java EncryptPDF
Please enter your username
pavithra: pvm4kor
shompa: sos5kor
shiva: snk3kor
Exception in thread "main" Bad user password
at com.lowagie.text.pdf.PdfReader.readDecryptedDocObj(Unknown Source)
at com.lowagie.text.pdf.PdfReader.readDocObj(Unknown Source)
at com.lowagie.text.pdf.PdfReader.readPdf(Unknown Source)
at com.lowagie.text.pdf.PdfReader.<init>(Unknown Source)
at com.lowagie.text.pdf.PdfReader.<init>(Unknown Source)
at EncryptPDF.main(

thanks in advance ...
you can make use of this command below . this requires itext.jar

14 years ago
hello friend ,

i have written a java code for protecting and digitally signing . but i am giving one pdf file as input and the protected pdf as output using jpdfsecure.jar in first try catch block the second try catch block digital signing of pdf using itext.jar .

but after protecting the pdf and that pretected pdf is input for digitally signing code

PdfReader reader = new PdfReader("ch01out.pdf");
int nomPage = reader.getNumberOfPages();
System.out.println("nomPage: "+nomPage);

at this time if the pdf contains 30 pages ,,,the number of pages coming is 10 pages .please could anyone help me out

14 years ago
hello friend ,

i have to write a java program or application such that for example
1. form16.pdf will be digitally signed , i have written the code for digitally signing a pdf.its working
2. i have also written java program to protect the above signed pdf input as the output of previous program (that is digitally signed pdf) .But problem here is signature is becoming invalid (and its saying document is being tampered.)

But the password is different for different employee / pdf in organisation(for that username corresponding password) . the password protected signed pdf should be sent as attachment over mail and that when the user clicks to open this pdf , It should prompt him with a password and this password should be validated against the table or storage place..and if wrong it should prompt a error message "password entered is wrong "

but i am not supposed to use any Database as such. Please could you provide me some inputs on this requirement
14 years ago