Win a copy of Java by Comparison (eBook) this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

facing problem with tags  RSS feed

Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This my Jsp.

<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>

response.setDateHeader ("Expires", -1);
<style type="text/css">
body {
margin-left: 40px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 40px;
background-color: #FFFFFF;
<link href="css/css.css" rel="stylesheet" type="text/css">
<style type="text/css">
body,td,th {
font-family: Tahoma,verdana, arial, sans-serif;
font-size: 10px;
<link href="css/gtsStyle.css" rel="stylesheet" type="text/css">

<html:form action="/aSDReport">
<%="inside jsp"%>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr align="left" valign="middle" style="position:relative; top:expression(this.offsetParent.scrollTop);" bgcolor="00309C">
<td width="2%"> </td>
<td width="98%" bgcolor="00309C" class="wht_bold_sm">StampDutyReport</td>

<td>Transaction Date </td>
<td>Type of transaction </td>
<td>Number / Nominal</td>
<td>Security Description </td>
<td>Price in Local Currency </td>
<td>Local Currency </td>
<td>Exchange Rate to Base Currency </td>
<td>Transaction Type</td>
<td>Name, Domizil</td>

<td colspan="3" align="center" valign="middle">Proceeds in CHF </td>
<%="inside after headers"%>

<logic:equal name="stampDutyReportForm" property="status" value="FAILURE">
<h4><font color=red>Records Not Available For This Client</h4>

<logic:equal name="stampDutyReportForm" property="status" value="SUCCESS">
<logic resent name="stampDutyReportForm" property="aStampDutyReport">
<logic:iterate id="data" name="stampDutyReportForm" property="aStampDutyReport">
<td align="left" valign="middle" bgcolor="#FFFFFF">
<bean:write name="data" property="aStampDutyReport" />
</logic resent>
<input type="Submit" Value="Export To PDF">

and iam getting the like this. What would be wrong.

javax.servlet.ServletException: Exception creating bean of class com.statestreet.sda.vo.StampDutyReportForm: {1}
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ninety-nine percent of the time this exception is caused by a simple spelling error. Are you absolutely sure that the type attribute in the <form-bean> stanza of your struts-config.xml file is spelled correctly and has the correct package name?

The next question I'd ask is: Did you remember to compile the class file and put it in WEB-INF/classes?

The third question I'd ask: Have you overridden or made non-public the default no arguments contstructor for the class?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!