Patent ID: 8073872

Claim:
An information processing apparatus comprising: a processor; and a memory unit connected to the processor, the memory unit storing an web application and a template file, wherein the web application comprises: a function, and a translator that causes the processor to replace a context token in the template file with a return value of the function in order to generate a response body, the context token containing an identifier, the function has a plurality of return values specified with the identifier; wherein the web application has a plurality of functions and the functions have respective return values in a common format, and the context token is replaced with any of the return values of the functions wherein the memory unit stores a database and template files, and the web application comprises: a GET process control unit that causes the processor to generate a response body based on one of the template files in terms of the translator, and a SET process control unit that causes the processor to change setting data in the database through one of the functions corresponding to a query string from a client and to send a control to the GET process control unit with designation of the template file selected according to the query string and the result of changing the setting data, wherein the template file contains the context token wherein the web application further comprises an image processing control unit that causes the processor to process contents of a file specified in a request massage from a client and to send a control to the GET process control unit with designation of the template file selected according to the query string and the result of processing the contents of the file, and the template file contains the context token.