• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts html:link forwarding

 
Greenhorn
Posts: 26
MyEclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello I am using struts 1.2. I have a small doubt but it is critical (i feel). The following code is results.jsp file. It show the results of accno, name, balance fetched from the database. So when i click on any accno it should go to another page displaying more details of that particular accno. (say like address, branch, etc). So how to send the accno to the action class which does the job of getting the further details.


<%@ taglib prefix="html" uri="/WEB-INF/struts-html.tld"%>
<%@ taglib prefix="bean" uri="/WEB-INF/struts-bean.tld"%>
<%@ taglib prefix="logic" uri="/WEB-INF/struts-logic.tld"%>
<html>
<body>
<center>
<h1>Account Details</h1>
<table border=1>
<tr><th>ACCNO</th>
<th>NAME</th>
<th>BALANCE</th>
</tr>
<logic:iterate name="accounts" scope="request" id="account">

<tr>
<td><html:link page="/test">
<bean:write name="account" property="accno"/>
</html:link></td>
<td><bean:write name="account" property="name"/></td>
<td><bean:write name="account" property="balance"/></td>
</tr>
</logic:iterate>
</table>
</center>
</body>
</html>

Please help
 
Watchya got in that poodle gun? Anything for me? Or this tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic