File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Struts html:link forwarding Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts html:link forwarding" Watch "Struts html:link forwarding" New topic
Author

Struts html:link forwarding

uday kantt
Greenhorn

Joined: May 05, 2011
Posts: 26

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts html:link forwarding
 
Similar Threads
JSP Processing Error
Cannot find bean in any scope
How to identify a particular selected record in struts?
javax.servlet.ServletException:javax.servlet.jsp.JspException: Cannot find bean: "riga" in any scope
intresting problem : same page with few modification on some conditions