• Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts html:link forwarding  RSS feed

uday kantt
Posts: 26
Java MyEclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • 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"%>
<h1>Account Details</h1>
<table border=1>
<logic:iterate name="accounts" scope="request" id="account">

<td><html:link page="/test">
<bean:write name="account" property="accno"/>
<td><bean:write name="account" property="name"/></td>
<td><bean:write name="account" property="balance"/></td>

Please help
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!