0
我剛剛創建了一個web腳本來獲得Alfresco Share的門票。如何將網頁腳本更改爲設置的響應格式而不是允許協商?
創建getticket.get.desc.xml
<webscript> <shortname>Get User Ticket</shortname> <description>Personalized greeting</description> <url>/getticket</url> <authentication>user</authentication> <negotiate accept="text/html">html</negotiate> <negotiate accept="application/json">json</negotiate> </webscript>
創建
getticket.get.html.ftl
(純文本)${session.getTicket()}
我試圖從Java頁面訪問它。該請求缺少Web腳本協商響應格式所需的一些參數。所以我需要將我的網頁腳本更改爲設置的響應格式,而不是允許協商。我怎樣才能做到這一點?