Changeset 16209
- Timestamp:
- 14/07/08 14:42:39 (1 month ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/intermine/web/main/src/org/intermine/web/struts/TemplateAction.java
r16168 r16209 107 107 return mapping.findForward("template"); 108 108 } else { 109 request.setAttribute("link", link);110 request.setAttribute("highlightedLink", gen.getHighlightedLink(109 session.setAttribute("link", link); 110 session.setAttribute("highlightedLink", gen.getHighlightedLink( 111 111 new URLGenerator(request).getPermanentBaseURL(), configuredTmpl)); 112 112 String title = configuredTmpl.getTitle(); 113 113 title = title.replace("-->", " <img src=\"images/tmpl_arrow.png\" " 114 114 + "style=\"vertical-align:middle\"> "); 115 request.setAttribute("pageTitle", title);116 request.setAttribute("pageDescription", configuredTmpl.getDescription());115 session.setAttribute("pageTitle", title); 116 session.setAttribute("pageDescription", configuredTmpl.getDescription()); 117 117 return mapping.findForward("serviceLink"); 118 118 } trunk/intermine/webapp/main/resources/webapp/serviceLink.jsp
r16205 r16209 4 4 <%-- Page displaying link to webservice. --%> 5 5 6 <%@page import="java.net.URLEncoder"%>7 6 <style type="text/css"> 8 7 .highlighted { … … 32 31 33 32 <c:choose> 34 <c:when test="${ requestScope.pageTitle != null}">35 <c:set var="pageTitle" value="${ requestScope.pageTitle}"></c:set>33 <c:when test="${pageTitle != null}"> 34 <c:set var="pageTitle" value="${pageTitle}"></c:set> 36 35 </c:when> 37 36 <c:otherwise> … … 41 40 42 41 <h1>${pageTitle}</h1> 43 <div>${ requestScope.pageDescription}</div>42 <div>${pageDescription}</div> 44 43 45 44 <form action=""> … … 61 60 <textarea style="width:100%;height:100px;"><iframe width="700" height="500" frameborder="1" scrolling="yes" marginheight="0" marginwidth="0" src="${link}&format=html"></iframe></textarea> 62 61 63 <c:if test="${ requestScope.highlightedLink != null}">62 <c:if test="${highlightedLink != null}"> 64 63 <div style="margin-top:10px;"> 65 64 If you want to get results for different parameters, edit the highlighted constraints … … 67 66 </div> 68 67 <div id="highLinkId" style="display: none;"> 69 ${ requestScope.highlightedLink}68 ${highlightedLink} 70 69 </div> 71 70 </c:if>
