View Single Post
  #1 (permalink)  
Old 07-04-2007, 06:28 AM
Marcus Marcus is offline
Member
 
Join Date: Jun 2007
Posts: 92
Marcus is on a distinguished road
Problem with '/' character in HTML and JSP
I'm using an outside application to create charts and graphs, inside of my JSP page.
This application takes parameters, creates a flash movie and passes back a html fragment that you can display on your page to load the flash movie.

My problem is, there is a '/' character in a path variable that needs to be removed from this fragment.
For example:
Code:
<OBJECT width=600 height=300 classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0"> <param name=movie value="/charts_cache/46801A53-CACEDA20.swf"> <param name=quality value=high> <EMBED src="/charts_cache/46801A53-CACEDA20.swf" width=600 height=300 quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"> </EMBED> </OBJECT>
This is the html fragment passed back to the application. In both of these places:

Code:
<param name=movie value="/charts_cache/46801A53-CACEDA20.swf">
and
Code:
<EMBED src="/charts_cache/46801A53-CACEDA20.swf"
I need to remove the '/' before "charts_cache" for this to display properly in my application.

Does anyone have any ideas for plucking out that one character?

Thanks

Marcus
Reply With Quote
Sponsored Links