Hey! I understood the question.
>actually, i can't think of any advantage this procedure might have: why >don't you want your webserver to serve the requested jar file??? I thought I recommended that, but maybe it wasn't clear the way I wrote it. Thanks for clarifying it Michael. :>) Sans adieu, Danny Rubis Michael Weller wrote: > hi, > i think he didn't want to know how to print out the html code for the page > that contains an applet. he wanted to know how a servlet could output the > jar file containing the applet's classes. > you would need the content type to "application/java-archive". how to read > in a binary file & hot to put it from a servlet should be clear to you after > checking the archives for this topic, and/or reading the streaming & > newtworking section in the java tutorial. > actually, i can't think of any advantage this procedure might have: why > don't you want your webserver to serve the requested jar file??? > > hope this helps! > > -mw > > > Hey! > > > > It's not as complicated as you think. It's one of the first examples > > in a good servlet book. > > > > Is there any reason why you can not dynamically build a web page > > that contains an applet tag. > > > > Sans adieu, > > Danny > > > > > > > > Michael Reutter wrote: > > > > > Hi! > > > > > > my static page now loads an applet. > > > > > > what I want is, that the applet's-jar file isn't physical a jar file, > but a servlet's output. > > > I have several jar-files in a directory not in the web-path and the > servlet should randomly give back one of these applets! > > > > > > my questions: > > > what method to overwrite in HttpServlet > > > is Content-type: text/plan ok for a jar-file > > > and how to read the file and write it to the response object > > > > > > thanks > > > michi > > > > > > > > > > > ___________________________________________________________________________ > > To unsubscribe, send email to [EMAIL PROTECTED] and include in the > body > > of the message "signoff SERVLET-INTEREST". > > > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > > Resources: http://java.sun.com/products/servlet/external-resources.html > > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > > > > ___________________________________________________________________________ > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff SERVLET-INTEREST". > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > Resources: http://java.sun.com/products/servlet/external-resources.html > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
