Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!

Paul Erion

Greenhorn
+ Follow
since Jul 11, 2003
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 Paul Erion

I'm using JBoss/Tomcat and JSP to serve up Flash (swf) files, but I'm running into a little difficulty. The Flash file plays fine when the browser is running on the same machine as the server; but, is a no-show when I access the web page from a different machine -- though the rest of the page (such as it is) is displayed. Oh, and the Flash files are generated dynamically; in other words, there's not just one flash file that I can squirrel away.

Following is the HTML that gets generated by the JSP (it's been pared down for testing purposes):

I've tried a couple of different values for the file specification (for example, "file:///C:/FlashFiles/test.swf"; and "C:/FlashFiles/test.swf"), but this hasn't had any effect. Is this a security issue? Any thoughts on what could be going on?

Thanks,

Paul

p.s., I'm using Windows XP Pro/JBoss 3.2.3/Tomcat 4.1.29

[ February 17, 2005: Message edited by: Paul Erion ]
[ February 17, 2005: Message edited by: Paul Erion ]
I'm using JBoss/Tomcat and JSP to serve up Flash (swf) files, but I'm running into a little difficulty. The Flash file plays fine when the browser is running on the same machine as the server; but, is a no-show when I access the web page from a different machine -- though the rest of the page (such as it is) is displayed. Oh, and the Flash files are generated dynamically; in other words, there's not just one flash file that I can squirrel away.

Following is the HTML that gets generated by the JSP (it's been pared down for testing purposes):

I've tried a couple of different values for the file specification (for example, "file:///C:/FlashFiles/test.swf"; and "C:/FlashFiles/test.swf"), but this hasn't had any effect. Is this a security issue? Any thoughts on what could be going on?

Thanks,

Paul

p.s., I'm using Windows XP Pro/JBoss 3.2.3/Tomcat 4.1.29

[ February 17, 2005: Message edited by: Paul Erion ]
[ February 17, 2005: Message edited by: Paul Erion ]
15 years ago

Originally posted by Budi Kurniawan:


I think what Paul wanted to know was whether a protocol (HTTP or HTTPS) can listen on multiple ports. The answer is yes.

Thanks for the response! And in figuring out what I trying to ask -- I didn't mean to be difficult ... it just always seems to work out that way.

Paul

p.s., I apologize for my signature ... I typically precede my first name with a colon (it's a Lisp thing) and didn't realize it would end up being interpreted as a emoticon.
[ September 16, 2004: Message edited by: Paul Erion ]
16 years ago
Is it possible for a single instance of Tomcat to listen on multiple ports?

Thanks,

aul
16 years ago
I recently installed Tomcat to check it out (previously I was using Jetty) and I've run into a little problem. The requests are coming in using the POST method and the request body is encoded in "UTF-16LE" form, but the query string is "IS0-8859-1". I use HttpServletRequest.getReader() to read the body and then ServletRequest.getParameterMap() to access the parameters. With Jetty I never had a problem, but with Tomcat the query string is read as being "UTF-16LE" encoded, which creates a problem (since it isn't). Is Tomcat exhibiting correct behaviour and Jetty wasn't? Does anyone have any idea on the right way to work around this? Is ServletRequest's get/setCharacterEncoding the right thing to do?
Any thoughts or suggestions, would be greatly appreciated.
Thanks,
Paul
17 years ago