struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wataru Kou <kou...@gmail.com>
Subject Re: urls and iterations
Date Tue, 05 Oct 2010 08:35:26 GMT
hi Piotrek

s:a is expanding ftl.
for example. link use String ?
It quickens a little.

   <s:url var="show_url" action="showThread" escapeAmp="false" >
    <s:param name="threadId" value="%{id}" />
    </s:url>
<table border="1" class="threads" >
 <s:iterator value="tableValues" >
  <tr>
   <td><s:property value="id" /></td>
   <td><a href='<s:property value="%{show_url}" />?threadId=<s:property
value="%{id}" />' >show</a></td>
  </tr>
 </s:iterator>


if you're able to use JavaScript .
post id.
JavaScript function form submit.
ex : <a onclick="onclickAction(%{id})" >

Thanks.
kou

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message