14-Jan-06 (Created: 14-Jan-06) | More in 'Howto'

Better syntax for display pages (or ihds) in newer releases of aspire

Syntax for specifying data for a web page in one of the oldest in Aspire. As a result it is a bit awkward. Although I haven't completely fixed it due to backward compatibility concerns I have corrected it a bit. The following is an example.

Syntax for aspire tag urls

Notice how the data portion is explicitly specified as a "dataRequestName" attribute on the URL name. Same syntax applies to JSP as well.

Following is the newer syntax for aspire tag urls.


###################################
# ManageUsersURL
###################################
ManageUsersURL=aspire:\\reports\\users\\manage-users.html
ManageUsersURL.masterPageRequestName=GetMasterPage
ManageUsersURL.dataRequestName=MUDR

request.MUDR.classname=com.ai.htmlgen.DBHashTableFormHandler1

request.MUDR.ActiveUsers.class_request.classname=com.ai.htmlgen.GenericTableHandler6
request.MUDR.ActiveUsers.query_request.classname=com.ai.parts.ReusablePart
request.MUDR.ActiveUsers.query_request.reuseRequestName=BL.GetActiveUsers

request.MUDR.InActiveUsers.class_request.classname=com.ai.htmlgen.GenericTableHandler6
request.MUDR.InActiveUsers.query_request.classname=com.ai.parts.ReusablePart
request.MUDR.InActiveUsers.query_request.reuseRequestName=BL.GetInActiveUsers

Same page implemented in jsp


###################################
# ManageUsersURL
###################################
ManageUsersURL=/login/manage-users.jsp
ManageUsersURL.transformType=jsp
ManageUsersURL.transform.classname=com.ai.jsp.JSPTransform
ManageUsersURL.dataRequestName=MUDR

request.MUDR.classname=com.ai.htmlgen.DBHashTableFormHandler1

request.MUDR.ActiveUsers.class_request.classname=com.ai.htmlgen.GenericTableHandler6
request.MUDR.ActiveUsers.query_request.classname=com.ai.parts.ReusablePart
request.MUDR.ActiveUsers.query_request.reuseRequestName=BL.GetActiveUsers

request.MUDR.InActiveUsers.class_request.classname=com.ai.htmlgen.GenericTableHandler6
request.MUDR.InActiveUsers.query_request.classname=com.ai.parts.ReusablePart
request.MUDR.InActiveUsers.query_request.reuseRequestName=BL.GetInActiveUsers