Win a copy of Spring in Action (5th edition) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

accessing .dcr files from jsp pages  RSS feed

 
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.
 
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, ...)
 
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!