Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

facing problem with tags

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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" %>


<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)
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
I promise I will be the best, most loyal friend ever! All for this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic