InfoCenter Home >
4: Developing applications >
4.2: Building Web applications >
4.2.4: Accessing data >
4.2.4.4: Providing ways for clients to invoke applications >
4.2.4.4.1: Providing Web clients access to JSP files >
4.2.4.4.1.1: Invoking servlets and JSP files by URLs

4.2.4.4.1.1: Invoking servlets and JSP files by URLs

Users can invoke a servlet or JSP file by its URL, using a browser to open:

http://your.server.name/application_Web_path/servlet_or_JSP_Web_path

Users must be provided with the URL to use in order to invoke the servlet. See the Related information to learn how to determine the URL.

Warning regarding servlet URIs Appending /$/foo to the URL allows you to access the servlet URL, but the URL is then misunderstood by the runtime environment. This type of URL may create a security exposure. The best practice for securing servlets is to follow the Java security specifications documented in the Securing applications section.

Note that in order for servlets to be invoked by their class names, the administrator must have manually enabled the option while configuring the Web application to which the servlet belongs.

Go to previous article: Providing Web clients a way to invoke JSP files Go to next article: Invoking servlets and JSP files within HTML forms

 

 
Go to previous article: Providing Web clients a way to invoke JSP files Go to next article: Invoking servlets and JSP files within HTML forms