title: getting error when I try to change the response header using JSP
body: <p>I added this line to change the response header in JSP <code>&lt;c:set target="${pageContext.response}" property="Access-Control-Allow-Origin" value="*"/&gt;</code>.. I am getting error like this.. </p>
  
  <pre><code>    HTTP ERROR 500
  
  Problem accessing /. Reason:
  
      Invalid property in &amp;lt;set&amp;gt;:  "Access-Control-Allow-Origin"
  
  Caused by:
  
  javax.servlet.jsp.JspTagException: Invalid property in &amp;lt;set&amp;gt;:  "Access-Control-Allow-Origin"
      at org.apache.taglibs.standard.tag.common.core.SetSupport.doEndTag(SetSupport.java:202)
      at org.apache.jsp.WEB_002dINF.pages.search_jsp._jspx_meth_c_set_2(org.apache.jsp.WEB_002dINF.pages.search_jsp:397)
      at org.apache.jsp.WEB_002dINF.pages.search_jsp._jspService(org.apache.jsp.WEB_002dINF.pages.search_jsp:112)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
      at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
      at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
      at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
      at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327)
      at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
      at org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:213)
      at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:171)
      at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
      at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
      at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:381)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:67)
      at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:122)
      at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:110)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
      at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
      at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
      at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
      at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
      at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
      at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      at org.mortbay.jetty.Server.handle(Server.java:326)
      at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:536)
      at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:915)
      at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539)
      at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
      at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405)
      at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
      at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
  </code></pre>
  
  <p>And this is the below jsp code where I added that line.</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %&gt;
  &lt;%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %&gt;
  &lt;%@ taglib prefix="search" uri="/kit" %&gt;
  &lt;%@ taglib prefix="solr" uri="/kit/solr" %&gt;
  &lt;%@ taglib prefix="workflow" uri="/kit/workflow" %&gt;
  &lt;%@ taglib prefix="security" uri="/kit/security" %&gt;
  &lt;%@ taglib prefix="widget" tagdir="/WEB-INF/tags/widgets" %&gt;
  &lt;%@ taglib prefix="visualization" tagdir="/WEB-INF/tags/visualizations" %&gt;
  &lt;%@ taglib prefix="client" tagdir="/WEB-INF/tags/client" %&gt;
  &lt;%@ page contentType="text/html" pageEncoding="UTF-8" %&gt;
  &lt;%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %&gt;
  
  &lt;search:twigkit mode="PRODUCTION"&gt;
      &lt;solr:platform host="http://stg.xyz.com:8800/lucene/master/" 
          defaultQuery="*:*" defaultFacets="docType,imType,pLine,originator,technology"/&gt;
      &lt;search:query var="query" parameters="*" 
          fields="*" /&gt;
      &lt;search:response var="response" platform="${platform}" query="${query}"&gt;
          &lt;workflow:processor name="kit.linguistics.processors" title="title" summary="text" /&gt;   
      &lt;/search:response&gt;
  &lt;/search:twigkit&gt;
  
  &lt;c:set var="res" value="http://stg.xyz.com:8800/dps/"/&gt;
  &lt;c:set var="dpsURL" value="http://stg.xyz.com:8800/dps"/&gt;
  &lt;c:set target="${pageContext.response}" property="Access-Control-Allow-Origin" value="*"/&gt;
  
  &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"&gt;
  &lt;head&gt;
      &lt;title&gt;Search :: ${query.value.display}&lt;/title&gt;
      &lt;client:head/&gt;
      &lt;script src="${res}dpsjsclient/dps.min.js" type="text/javascript"&gt;&lt;/script&gt;
      &lt;link rel="stylesheet" href="${res}dpsjsclient/dps-main.css" type="text/css" /&gt;
  
  &lt;/head&gt;
  </code></pre>