Ritu Pande

Greenhorn
+ Follow
since Jun 05, 2005
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 Ritu Pande

yes, that api is having method for creating the pdf doc. dynamically.

but i am not able to create checkbox. rest is working fine.

thanks & regards,
ritesh
15 years ago
hi all,

i m creating an application which creates pdf file dynamically. i want to create or display checkbox dynamically. I m using FDFDoc 5.0 for creating pdf files.

pls help me out....


Thanks & regards,
ritu
15 years ago
hi all,

is it possible to have more than one struts-config.xml in a single web application.

If yes then how the web application will work.


regards,
ritu
15 years ago
hi,

is there any method which returns me the source url.

like using getRequestUrl returns me the requested url . in same way i wud like to know from which page the request is coming.

thnx in adv.

regards,
ritu
15 years ago
Hi All,

how to use apache lucene search tool with sun one application server 8.1



thanks in advance,

ritu
15 years ago
dear pradip,

thnx a lot for the reply. but its not working.

reg,
ritu
16 years ago
Dear All,

I m trying to download the xml file from the server. I m able to get the download dialog box and able to download the file on the client browser, the file contains the print statement given in the jsp file. Its not displaying the original content of xml file. Below is the jsp code. I m not getting where its going wrong.

<%@ page import="java.io.*,java.io.FileInputStream,java.io.InputStream,java.io.File,java.io.FileInputStream,java.net.URL"%>
<%
String fileName = "forma.xml";
String actualFileName = directory + fileName;
out.println("ACTUAL FILE NAME : " + actualFileName +"<BR>");
InputStream inputStream = null;
try {
response.setContentType("application/Octet-Stream");
response.setHeader("Content-Disposition","attachment;filename=" + fileName );
int sizeRead = 256;
byte[] buf = new byte[1024];
File file = new File(actualFileName).getAbsoluteFile();
out.println("FILE : "+file +"<BR>");
URL url = file.toURL();
inputStream = (BufferedInputStream)url.openConnection().getContent();
out.println("INPUT STREAM ......." + inputStream +"<BR>");
while( (sizeRead = inputStream.read(buf)) != -1 ){
out.println(sizeRead);

}
/*FileInputStream fileinputstream = new FileInputStream(file);
byte abyte1[];
int i = (int)file.length();
byte abyte0[] = new byte;
for(int j = 0; j < i; j += fileinputstream.read(abyte0, j, i - j));
abyte1 = abyte0;
out.println("value of abyte1 :"+abyte1); */
} catch(Exception ex) {
out.println("Exception " + ex.getMessage() +"<BR>");
} finally{
try{
//inputStream.close();
}catch(Exception e){
out.println("Exception in finally" + e.getMessage() +"<BR>");
}
}
%>

Thnx in adv.

Regards,
ritu
16 years ago
Hello,

I am having some problem. Java program creates string with new lines in it and save this in txt file. While reading the txt file in notepade I am not able to break the string in new lines ( I tried \n ).

Any ideas ?

Thanks in advance

Ritu
16 years ago
Dear All,

What is the solution for following exception. Pls help me out.

Exception in thread "main" java.lang.SecurityException: class "org.mozilla.jss.C
ryptoManager$UserCertConflictException"'s signer information does not match sign
er information of other classes in the same package
at java.lang.ClassLoader.checkCerts(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at Pruebas.main(Pruebas.java:18)

Thnx in adv.
regd,
ritu
16 years ago
Dear All,

1.How to create SignedData (which can conating message,signature,cert)
using privatekeys from smartcards ? How to use PKCS11Wrapper for this
purpose..(I could get signature bytes using wrapper)

2. How to manage if the smart card is containing more than one
certificate/keys. I mean how to verify whichkey correspond to which
certificate?

Thanks in advance

Regards,
Ritu
16 years ago
Dear All,
I am using Weblogic 6.1 with Service Pack 2 it was working fine.
I tried to upgrade it by installing Service Pack 7, but it was giving some exception when I tried to deploy the ejbs on server.
Now I revert back to service pack 2 by uninstalling the service pack 7, but when I tried to start the server it is giving following error.
How to solve this problem? It's very urgent. Pls help me out.

The WebLogic Server did not start up properly.
Exception raised:
weblogic.management.configuration.ConfigurationException: Unknown attribute StagedTargets for MyWebApp, type Application
at weblogic.management.internal.xml.ConfigurationParser$ConfigurationHan
dler.parseMBeanAttributes(ConfigurationParser.java:308)
at weblogic.management.internal.xml.ConfigurationParser$ConfigurationHan
dler.startElement(ConfigurationParser.java:188)
at weblogic.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:
1340)
at weblogic.apache.xerces.validators.common.XMLValidator.callStartElemen
t(XMLValidator.java:1183)
at weblogic.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDo
cumentScanner.java:1876)
at weblogic.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher
.dispatch(XMLDocumentScanner.java:1252)
at weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocu
mentScanner.java:381)
at weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:967)
at weblogic.management.internal.xml.ConfigurationParser.parse(Configurat
ionParser.java:105)
at weblogic.management.internal.xml.XmlFileRepository.loadDomain(XmlFile
Repository.java:261)
at weblogic.management.internal.xml.XmlFileRepository.loadDomain(XmlFile
Repository.java:223)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:636)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
.java:621)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:359)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy1.loadDomain(Unknown Source)
at weblogic.management.AdminServer.configureFromRepository(AdminServer.j
ava:188)
at weblogic.management.AdminServer.configure(AdminServer.java:173)
at weblogic.management.Admin.initialize(Admin.java:239)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:362)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:202)
at weblogic.Server.main(Server.java:35)
Reason: Fatal initialization exception

Thanks in advance

regards,
ritu
16 years ago
Hi,

I am creating an application which runs on weblogic6.1 under HP-Unix operating system. This application make query to the database and stores the result in excel sheet on application server itself. Then I am trying to ftp the excel sheet to the IIS server5.0 which runs on Windows 2000 server by executing shell scripts at the time of application server startup at the same time the application is creating file.

The problem I am facing when I try to ftp the excel sheet on the IIS Server. Its because of the firewall there between the IIS server and application server. Firewall is configured in such a way that its not allowing any other protocol other than http.

Is there any solution or any other alternative.

Thanks in advance.

ritu
16 years ago
hi paul,

thanks a lot for the reply. its working


warm regards,
ritu
16 years ago
hi,

is it possible to call the unix shell script from the java program. i m looking for example of such kind program.

thnx in advance

regd,
Ritu
16 years ago
hi,

i m creating an application which queries the database and store the result in excel sheet on application server which runs under unix
operating system. i m providing link to download the excel sheet in jsp page. it is working, but the problem is that whenever it is
downloading the excel sheet it is in ascii mode because of which i m not getting file in excel sheet. is there any other way where i
can set download mode.

thnx in advance

regd
ritu
16 years ago
JSP