Server Item Types

Top  Previous  Next

To call the Server Item Types dialogue use "Project | Server Item Types" menu.

server_itemtypes

 

With  this dialogue you can add a new Server Item Type or update an existing one.

A type definition consists of three parameters:

1.Server Item Type Name
2.Server Item Type Caption
3.The Default value for the Location on the web server of the Server Items with this type. This value is the default for the project and it can be overridden in the Web Application Settings dialogue in case the location is different in the Host.

 

A Server Item Type denotes a certain type of file items that has a specific role and location on the web server.

For example; java class files are executables and should exist under "/WEB-INF/classes" directory on the server. Therefore a java class is a Server Item and needs a special treatment.

What is a Server Item and what is not?

Although all of the files used in a web site should be located on the web server, we do not call them all Server Item. For instance; Web pages, image files and java scripts are not Server Items. They are web files which means they are open to everyone to browse since they are there for.

Server Items are generally executables or data files which have predefined locations on the web server and they are not accessible directly by the users of the web site.

Why do we need Server Item Types?

The answer is "to deploy Server Items to their location in the web server".

Here is the scenario:

1.Define a Server Item Type by giving its name, caption and location in web server.
For example: java, Java Classes, /WEB-INF/classes
2.Create SIT folder "java" on the project explorer
3.Insert Server Items under this folder.
For example: "myclass1.class", "myclass2.class"

 

When we build the project, the Application Studio will deploy the myclass1.class and myclass2.class to the location "/WEB-INF/classes" on the web server