Help coderanch get a
new server
by contributing to the fundraiser

Jim Wang

Ranch Hand
+ Follow
since Oct 04, 2001
Merit badge: grant badges
For More
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 Jim Wang

I'm using Axis' wsdl2java to develop my web service package. After deployment, the service works fine. According to Axis' instruction, the url to access this service must be: http://[host]:[port]/[context]/services/[service-name]. In web.xml, /services/* is mapping to AxisServlet. Since the service class has been loaded into web container, can I make the mapping directly to service class instead of mapping to AxisServlet? I tried, but it gives me error when I call the service. The error is: [500]Internal server error. On the Tomcat console, the message is "Marking servlet <servlet-name> as unavailable."
17 years ago
Thanks Watsh Rajneesh
17 years ago
I developed a wsdl and using wsdl2java to generate classes. After I deploy this service on axis, I can get a live wsdl by click the link besides the portName when viewing the list of available services. Let's call the wsdl for generating classes as start-wsdl and the wsdl on list page as end-wsdl. My question is: if user can view the end-wsdl, is it necessary to publish another copy wsdl at some other place. If yes, which one should be published, start-wsdl and end-wsdl?
17 years ago
Hi, Jason:
I have an application, which needs to send feedback to client. Since I can figure out the email address of my clients, I think that would be good to send beedback by email, but I don't know how. Would you give a hint of how to do this?
Thanks.
Jim
22 years ago
In my case, I don't want browser open the download file, which is in PDF format. I found this piece code from this site and it works. You may try it.
String pdf = req.getParameter("pdfurl");
String filename = pdf.substring(pdf.lastIndexOf("/")+1);

//res.setContentType("application/x-filler");
res.setContentType("application/pdf");
res.setHeader("Content-Disposition","attachment;filename=" + filename );


try{
FileInputStream fileInput = new FileInputStream(pdf);
int numOfBytes = fileInput.available();
byte byteArray[] = new byte[numOfBytes];
int nextByte = fileInput.read(byteArray);
fileInput.close();

OutputStream outStream = res.getOutputStream();
outStream.write(byteArray);
outStream.close();
}
22 years ago
Thank Manish:
My project is working on intranet. ActiveX may be a solution. I'm just start working on ActiveXObject(). Hope it will save me.
thanks.
Jim
Hi
I got a .exe and it works on client side. Then I need to involve it by click on my page (no matter a button or anything else). Could someone give a hint how can I do it?
thanks
jim
Thanks Laudney,
I read some documents about socket and it same as you said. I got a question here, if I'm going to send a file to client by socket, is that mean I also need to put a application on client side to create the connection for download file?
Jim
Hi:
I'm not sure it's doable. I need to involve a .exe funtion on the client side by user click on the submit button. Can some one give me some ideas how to do that?
Jim
22 years ago
Tom:
May I have a copy of your FTP code too? My email is jim20653@hotmail.com .
Thanks.
Jim
Hi,
I'm using tomcat passing servlet page. There has a function let user download file from server. Since my client don't want to see the 'save as' window and don't want user change file name, I have to make this thing work as a background job. I think I may get this from socket. Since I never use socket before, I really need some help about the idea of how to do it.
Thanks.
Jim
Tom:
Thank you for your reply. I have Tomcat and Xalan install on my machine, which come with jaxp.jar and xerces.jar. Could you tell me what things I need care for setup these tools. If you have some example could show me how it works, that would be great.
thanks.
Jim
hi,guys:
I need few words about how to use XML to transfer data, what's the steps and which software is required. I learn XML to create web page for my project. The idea is I use java web server to query database then create XML format string, and then pass them with XSL. During this project, I'm trying the prowerful feature of XML. The truth is, later, I figure out Netscape do not like IE, which has embed XML parser, after that I have to transform XML into HTML on server side. This thing is too bad, also the configuration of making XML transform (Xalan) work almost kill me. Anyway, I still believe those powerful features of XML like said in 'XML Bible'...., just want to see them. My problem is I know how to create XML, but I don't know how to use it and which tools I need.
Thanks.
amit:
could you tell me how to make jsp work. everytime, after i install tomcat, i can use examples page test servlet but jsp page always get error.
thanks
22 years ago
amit:
could you tell me how to make jsp work. everytime, after i install tomcat, i can use examples page test servlet but jsp page always get error.
thanks
22 years ago