title: Setting output of layout-render to a variable (stripes)
body: <p>I'm trying to reuse a variable that's been set in a jsp and used in a Stripes layout-render.</p>
  
  <p>Main page: /index.jsp</p>
  
  <p>Layout Render page: /jsp/widgets/signin/oAuthUrl.jsp</p>
  
  <p>My /jsp/widgets/signin/oAuthUrl.jsp has a c:set variable called ${oauth_url}. But when I call the layout-render page via <em>s:layout-render name="/jsp/widgets/signin/oAuthUrl.jsp"</em>, I would expect to be able to use any variables that are in there, as if I was including that script. But I can't use that ${oauth_url} in index.jsp.</p>
  
  <p>I've even tried doing this, which unsurprisingly doesn't work:</p>
  
  <pre><code>&lt;c:set var="oauth_url" value="&lt;s:layout-render name="/jsp/widgets/signin/oAuthUrl.jsp" 
  buttonType="signup"/&gt;"/&gt;
  &lt;s:link href="${oauth_url}"&gt;
  </code></pre>
  
  <p>How can I reuse a variable that's being set in /jsp/widgets/signin/oAuthUrl.jsp? Basically, how can I make it global to the index.jsp page so it can be used in other places?</p>
  
  <p>If I want to just use c:set values declared in /jsp/widgets/signin/oAuthUrl.jsp, should I import with a different tag instead of s:layout-render? I still want to pass it some attributes - like buttonType.</p>