This week's book giveaways are in the AI and JavaScript forums.
We're giving away four copies each of GANs in Action and WebAssembly in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of GANs in ActionE this week in the AI forum
or WebAssembly in Action in the JavaScript forum!

Anuj Anand

Ranch Hand
+ Follow
since Nov 18, 2000
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 Anuj Anand

I am trying to profile an application which I have coded in VAJ. The profiler is jprobe .However I keep on getting this exception
Cannot instantiate class: com.ibm.ejs.ns.jndi.CNInitialContextFactory..
This happens when it goes to do a databse lookup.
I have put the following directory in the classpath "C:\Program Files\IBM\VisualAge for Java\ide\project_resources\IBM WebSphere Test Environment"
But nothing has changed..........Can somebody advise me what the problem is...
Again the application is being run through Websphere test Environment in Visual age for java.
I am trying to profile an application which I have coded in VAJ. The profiler is jprobe .However I keep on getting this exception
Cannot instantiate class: com.ibm.ejs.ns.jndi.CNInitialContextFactory..
This happens when it goes to do a databse lookup.
I have put the following directory in the classpath "C:\Program Files\IBM\VisualAge for Java\ide\project_resources\IBM WebSphere Test Environment"
But nothing has changed..........Can somebody advise me what the problem is...
Again the application is being run through Websphere test Environment in Visual age for java.
I am trying to profile an application which I have coded in VAJ. The profiler is jprobe .However I keep on getting this exception
Cannot instantiate class: com.ibm.ejs.ns.jndi.CNInitialContextFactory..
This happens when it goes to do a databse lookup.
I have put the following directory in the classpath "C:\Program Files\IBM\VisualAge for Java\ide\project_resources\IBM WebSphere Test Environment"
But nothing has changed..........Can somebody advise me what the problem is...
Again the application is being run through Websphere test Environment in Visual age for java.
17 years ago
That could be the reason because files which are over a certain size get displayed fine through the internet explorer (like over 10 KB) but small size files need a refresh to be clicked from IE browser...Any other coding advises...THe aim is to display a simple PDF file through the click of a button on a HTML page.
17 years ago
I am trying to open a PDF file through a servlet without showing the download box. (A box which asks whether to open or to save it). The problem is the code executes fine in Netscape but in IE it gives a problem .With IE 5.5 the request is submitted but "refresh" needs to be clicked manually to bring up theb PDF file. This servlet is invoked on the click of a button.
However in Netscape it is working absolutely fine.
Can somebody tell me why it is not working for IE please??

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.net.*;
public class PDFServlet extends HttpServlet {
public void doGet(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException {
res.setContentType("application/PDF");
String header_info = req.getHeader("USER-AGENT");
if (header_info.indexOf("MSIE") != -1)
res.setHeader("Content-disposition", "inline; filename=wte.pdf");
else
res.setHeader("Content-disposition", "inline; filename=\\wte.pdf\\");
//String fileURL = "h:\\temp\\wte.pdf";
String hreffile = SessionManager.SessionHash.uom_get_data("VALUE", "hreffile");
String fileURL = "J:\\J2EE\\Cnapro\\Agentcenter\\inetprint\\" + req.getParameter("HREFFILE");
try {
File file = new File(fileURL);
byte[] byteContents = new byte[(int) file.length()];
FileInputStream in = new FileInputStream(fileURL);
// Read the file.
int retcd = in.read(byteContents);
ServletOutputStream out = res.getOutputStream();
BufferedOutputStream bos = null;
bos = new BufferedOutputStream(out);
bos.write(byteContents, 0, retcd);
} catch (Exception e) {
e.printStackTrace();
}
}
}
17 years ago
Does anybody know how to extract data from PDF forms..(The PDF form document has been constructed and the user has filled data in it)..Can anybody tell me how to extract the data
17 years ago
Does anybody know how to extract data from PDF forms..(The PDF form document has been constructed and the user has filled data in it)..Can anybody tell me how to extract the data
17 years ago
Does anybody know of some good logging packages which are used with IBM Websphere...By logging packages I mean packages which are good for Logging errors, Specific messages etc...
Does anybody know of some good logging packages which are used with IBM Websphere...By logging packages I mean packages which are good for Logging errors, Specific messages etc...
17 years ago
1) How to confugure a datasource in WebSphere studio
2) How to run an application in websphere Studio
17 years ago
Just a small question!
Is 3000 euros good money to live in Munich ,germany
17 years ago
How many of you dont have an ego problem here if you're wife earns more than you do...
17 years ago
How much money is good money?
17 years ago
What is everybody's new year's plan and resolution !!! Mine is not to be tempted any more by spaghetti
18 years ago
Is there any way in java where we can get time stamps of saved files in a directory through java
18 years ago