wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "facing problem with tags" Watch "facing problem with tags" New topic
Author

facing problem with tags

Shyam Sunder
Greenhorn

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" %>


<html:html>
<head>
<%
response.setHeader("Cache-Control","no-store");
response.setHeader("Pragma","no-cache");
response.setDateHeader ("Expires", -1);
%>
<style type="text/css">
<!--
body {
margin-left: 40px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 40px;
background-color: #FFFFFF;
}
-->
</style>
<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;
}
-->
</style>
<link href="css/gtsStyle.css" rel="stylesheet" type="text/css">

</head>
<body>
<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>
</tr>

<tr>
<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>
</tr>
<%="inside after headers"%>

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

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



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

javax.servlet.ServletException: Exception creating bean of class com.statestreet.sda.vo.StampDutyReportForm: {1}
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
org.apache.jsp.screen.StampDutyReport_jsp._jspService(org.apache.jsp.screen.StampDutyReport_jsp:285)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
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?


Merrill
Consultant, Sima Solutions
 
 
subject: facing problem with tags
 
Similar Threads
Struts: Getting a blank page instead of the form
Listing and Action Form Validation
logic:forward problem
facing problem with struts tags
Usage of Struts tags