Server-Side Development Section Index | Page 185
Are there any ISPs that will host my servlets?
The Adrenaline Group maintains
a list of over 50 ISP's who host Java Servlets (http://www.adrenalinegroup.com/jwsisp.html) . Another list is at http://www.servlets.com.
Those that our gurus (...more
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 informa...more
How do I access a database from my servlet or JSP?
[See also How can I pool my database connections so I don't ...]
Since JDK 1.1, Java comes with a package called JDBC (Java Database
Connectivity). JDBC allows you to write SQL queries as Java St...more
How do I create an image (GIF, JPEG, etc.) on the fly from a servlet?
To create an image or do image processing from Java, there are several
packages and classes available. See the Purple Servlet References for a list.
Once you have an image file in your servlet...more
How do I set my CLASSPATH for servlets?
That depends.
For developing servlets, just make sure that the JAR file containing javax.servlet.* is in your CLASSPATH, and use your normal development tools (javac and so forth).
For JSDK: J...more
How do I upload a file to my servlet or JSP?
On the client side, the client's browser must support form-based
upload. Most modern browsers do, but there's no guarantee. For
example,
<FORM ENCTYPE='multipart/form-data'
method='POST' ...more
What is the difference between URL encoding, URL rewriting, HTML escaping, and entity encoding?
URL Encoding is a process of transforming user input to a CGI form so
it is fit for travel across the network -- basically, stripping
spaces and punctuation and replacing with escape characters. ...more