QueryCAT Logo
Search 5,000,000+ questions and answers.

Frequently Asked Questions

How do I set up a servlet chain for a specific mime type in a Web application in OC4J?

Assuming you have a servlet named ChainServlet that you want to establish as a chainer for mime type text/html you have to edit the orion-web.xml for your Web application to have the following entry: <servlet-chaining mime-type="text/html" servlet-name="ChainServlet" /> This can be performed by specifying a virtual-directory which maps a physical directory outside of your web application to a virtual path.

How do I automatically load a Web application during OC4J startup?

You have to set the load-on-startup attibute to "true" in your http-web-site.xml for the <web-app> tag e.g. lt;web-app application="default" name="lab02War" root="lab02" load-on-startup="true"/> In the deployment descriptor for your Web application i.e. web.xml you can specify the priority of the servlets to be loaded e.g.

What's the official MIME type for reStructuredText data?

Docutils FAQ (Frequently Asked Questions)
While there is no registered MIME type for reStructuredText, the "official unofficial" standard MIME type is "text/x-rst". This was invented for the build system for PEPs (Python Enhancement Proposals), and it's used by the python.org web site build system.

What is a Mime Type?

SecuritySpace
Every document on the web has a Mime Type that tells the browser what it needs to do to properly display it. For example, HTML pages have a Mime type of text/html, while GIF images have a Mime Type of image/gif.

How do I set up my server to broadcast the jnlp mime type?

Java Web Start - Frequently Asked Questions (FAQ)
Each web server has a specific way in which to add MIME types. For example, for the Apache web server you must add the following line to the .mime.types configuration file:

How do I manually set the mime type for an attached file?

jGuru: JavaMail FAQ Home Page
You'll need to subclass FileDataSource and override its getContentType() method to return your desired type. You can add support for more extensions programmatically or by adding a META-INF/mime.types configuration file to your application. For example, to... The JavaMail libraries are a standard part of J2EE and thus every application server. Be sure you DO NOT have a second copy in your CLASSPATH, as it will..

Can I set the MIME type with a <meta/> tag?

No. A user agent needs to know the content type before it starts parsing the response body. When it encounters an element like this, it's already too late: HTML Code: <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8"/> The MIME type must be sent as a Content-Type HTTP header. The character encoding should be specified in the XML declaration (see above).

Web Start returns a Bad MIME Type error. What's wrong?

Unofficial Java Web Start/JNLP FAQ
This is a very common problem and most likely caused by Web Start's failed attempt to automatically detect your proxy settings. The "Bad MIME Type" error displayed by Web Start is somewhat confusing as it should really be a "Resource Not Found" error. Your proxy will send back an error page either in HTML or plain text instead of the requested JNLP descriptor if it fails to get the JNLP descriptor requested by Web Start.

How do I set MIME Types for my domain?

Planhost.com Windows 2003 Web Hosting ASP ASP.NET and FrontP...
Mime Types represent file types as presented to your web browser. When you access a document over the Internet, the HTML document, images, style sheets, and any objects all have an associated MIME type. Web servers insert the MIME information into the HTTP headers on each transmission. Web clients, such as a browser, use this information to determine how to handle the data. For example, a MIME type of image/gif, informs the user agent to handle the data as an image.

What is the MIME type of a VRML file?

comp.lang.vrml FAQ
The MIME type of a VRML file is "model/vrml", although some servers may deliver it as the older MIME type "x-world/x-vrml". The spec requires VRML browsers to support both MIME types. If you administer a web server, you should use the official type, not the older "x-" type.

What type of chain is used on the VentMaster?

Tempest Technology Corporation
The VentMaster features the exclusive Raptor Carbide chain. It is a .404 (also available in .375) pitch; .063-gauge chain built to Tempest’s specifications and it is designed to cut through many materials encountered during fire and rescue operations. It features a dual, open raker design, which provides extra protection for the carbide cutter and allows the chain to self-clean and ventilate.

How can my applet or application communicate with my servlet?

It's pretty straightforward. You can use the java.net.URLConnection and java.net.URL classes to open a standard HTTP connection to the web server. The server then passes this information to the servlet in the normal way. Basically, the applet pretends to be a web browser, and the servlet doesn't know the difference. As far as the servlet is concerned, the applet is just another HTTP client.

Why do we need an Application/Web3S+xml MIME type, why not just use application/xml?

The purpose of MIME types is to identify what processor is needed to properly understand a particular piece of content. In the case of Web3S our use of XML does have some additional semantics around things such as the ID element and the ignore rule as well as a number of restrictions such as no use of DTDs. So under ideal circumstances one wants a dedicated Web3S processor to handle the content, not a generic XML processor.

How do I create multiple file-extension/mime-type associations with a JNLP application?

Java Web Start - Frequently Asked Questions (FAQ)
When creating multiple file-extension/mime-type associations with your JNLP application, it's recommended that you use multiple association tags. Also, both the file-extension and mime-type must be specified for each association tag. For example: <association extensions="aaa" mime-type="x-application/aaa"/> <association extensions="bbb" mime-type="x-application/bbb"/> Back to top

How do I select a meter specific for my application?

Flow meter, mass flow controller, mass flow meter, flowmeter...
First, you need to ensure that the flow is clean and dry in order to use the Sierra 800 series flow meters. If you have a 1/16" to ½” line that has a pressure between 15 to 100 PSIG then all you have to do is get an estimate of the flow you expect you want to monitor. Some folks time how long it takes to fill a plastic bag of a known volume and then calculate the flow rate.

How can I find something specific on your web site?

National Archives Frequently Asked Questions
We have tried to organize the web site to make our most often accessed offerings easily findable via browsing. You can also look in the Subject Index. In addition, we have made many improvements to our search engine to make it an effective and efficient means of locating information. Search the site. If you have any problems with our web site, please contact us so that we can make any necessary improvements.

How do I set the session time out for a Web application?

Servlet sessions (and JSP sessions too since they're the same thing) have a timeout period controlled by a node in web.xml, in the following format: <session-config> <session-timeout>60</session-timeout> </session-config> This represents the number of minutes since the session was last used, so each page that affects or accesses the session will reset this timer.

How do you set up S/MIME?

All FAQs for Notes/Domino 6.x
There is a good article on Developerworks that describes the setup process and tradeoffs: "Lessons in secure messaging using Domino 6".
More Questions >>

© Copyright 2007-2012 QueryCAT
About • Webmasters • Contact