This is not possible if availability.jsp is being rendered after layout.jsp If you can not change the order then i'd suggest using javascript to update the title element in the dom.
Otherwise you should be looking to encapsulate the template and its values. That is the "title" element should be in a template called title.jsp (or head.jsp) and you use the specific title.jsp for each request. ( you don't need a separate definition for each different title.jsp ! )