• Post Reply Bookmark Topic Watch Topic
  • New Topic

accessing .dcr files from jsp pages  RSS feed

 
deepak borole
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can we access .dcr i.e. director files from jsp pages. what i have done is that i have published the director code in html along with which it makes a .dcr file. so is there any way by which i can access it through jsp or servlet.
 
Manuel Moons
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe you should elaborate on you question! It is not really clear what you want to do!

I don't know anything about Director so I do not know what those files do but if you want to read them (and extract some data from them) in your servlet or jsp you can do that using plain File IO.

If you would like to refer to them in your resulting page (HTML,WAP, xml, ...) you can place the referring code in your jsp or servlet just like you would refer them in an HTML page. The only thing you will have to take care of is that those files are accessible to the browser. So you will have to put them in your webcontainer (just like you would a HTML page, image, CSS file, ...)
 
Vlado Zajac
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
dcr is Macromedia Shockwave or director? If yes, it is usually separate file (or more files?) included in html using object tag and displayed in browser (like images or applets).

You can place the object tag in jsp page same way as into html (except that some parameters may be generated by jsp code if needed).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!