Clarke Kent

Greenhorn
+ Follow
since Dec 19, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Clarke Kent

Im having problems hosting a JNLP file on Tomcat that i just downloaded from the tomcat.apache.org and installed. When I click on the jnlp link, The browser prompts me to Save or Open the jnlp file.. I don't want the browser to prompt me.. I've checked web.xml in ./conf directory and the JNLP mime type is properly set there..

I am wondering if I have to connect Tomcat to Apache first before this could work. What do you think? I already have an existing Apache webserver.

I have tested this JNLP problem on an embedded OC4J server, and the open process goes automatically, thats why i thought i'd only have to set some options with Tomcat.
19 years ago
I noticed when I hosted the jnlp file on an embedded OC4J, the browser automatically runs the jnlp file, But in Tomcat, it still prompts me to save/open.

I looked up the web.xml file of Tomcat. the mime type entry for JNLP is there. What could be wrong with Tomcat?
19 years ago
I noticed when I hosted the jnlp file on an embedded OC4J, the browser automatically runs the jnlp file, But in Tomcat, it still prompts me to save/open.

I looked up the web.xml file of Tomcat. the mime type entry for JNLP is there. What could be wrong with Tomcat?
19 years ago
How do you automatically download/open a JNLP file on an IE5 browser and some versions of IE6. The browser prompts me to Open Save or Cancel, and then after that prompts me to choose which program to run the JNLP file.

I already have javaws with j2se 1.5, and there is already an entry for the JNLP file opened by javaws in the Folder Option->File Types in Windows Control panel..
19 years ago
How can I get a value of a vbscript and assign it to a JSP expression



I need the value of vbvar inside a jsp expression.

<% if(VALUEOFVBVARHERE) %>
...
...
...

regards
19 years ago
JSP
Hi!

My servlet needs to save a file in the root directory of my application.

When I opened a file using the line:



This line is inside a servlet of my application. Tt doesnt get saved on the root directory of my application. Is this supposed to work?
Or do i have to explicitly get the web application root and append the filename to have the file saved on the root directory?
19 years ago
I think you should sign your application since you are accessing resources of the client machine.
19 years ago
I am testing a web application that hosts a JNLP file. In a Win2000 IE Client, when I click on the link that launchees the jnlp file, browser asks me to Open, Save, or Cancel. I chose open but then the OS asks me the executable to open the jnlp file. then I have to choose javaw.exe just to run the jnlp file.

In a WinXP IE machine, this is not a problem.

Should I set something on the browsers?

regards,

Clarke
19 years ago
check if you included the oracle jdbc jar files in your war file.
19 years ago
How do I specify the jnlp or jar to execute with a -D option?

Im deploying an application from a hosted jnlp on a server. Now when the application starts, it accesses an environment variable set on the client. Now, to access those environment variables, the applications needs to be executed with a -D option,



regards,

Clarke
19 years ago
yea, thats what I thought

But, is there a way to communicate with the proxy, to ask the proxy to get the name/address of the actual computer who made the request? an API or something?

regards,

clarke
19 years ago
Hi! I need to get the computer name of the machine who initiated a request.

The application is running on a company intranet.
I tried to use request.getRemoteHost(), but that function returns the actual name if im not using a proxy.. When I am using a proxy, the name of the proxy is returned and not the actual computer name.

regards,

Clarke
19 years ago
Hi!

I have an application server that is hosting an existing Servlet that runs on JServ and JDK 1.3..

Im trying to host my own servlet in the same Application Server. BUt instead, I need to use JDK 1.4, so im thinking to just install and use Tomcat instead of the existing Jserv, and that Tomcat will use JDK 1.4. Things might go wrong if I override JDK 1.3, so I need to have a separate JDK 1.4 and JDK 1.3 but still the existing servlet will still run perfectly and my own servlet will run also using JDK 1.4
19 years ago
Hi I have a servlet that accesses a MS SQL DB.. It accesses lots of data so it takes a lot of time to finish, about 15 minutes, which is normal.

Now under normal Servlet execution,if i run this servlet, the web browser will be left blank until the process ends. So is there a way or approach to notify the client as to whether this process is in process or has finished?
[ December 19, 2005: Message edited by: Bear Bibeault ]
19 years ago