File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes facing problem with tags Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "facing problem with tags" Watch "facing problem with tags" New topic

facing problem with tags

Shyam Sunder

Joined: Dec 23, 2006
Posts: 24
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}
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
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?

Consultant, Sima Solutions
subject: facing problem with tags