This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Struts and the fly likes Unable to access ActionClass Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Unable to access ActionClass" Watch "Unable to access ActionClass" New topic
Author

Unable to access ActionClass

Supraja Yasoda
Greenhorn

Joined: Mar 18, 2005
Posts: 5
Hi,

This is my JSP.

<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

<HTML>
<HEAD>
<TITLE> Struts Application </TITLE>
</HEAD>
<BODY>
<html:form action="Lookup" >
<table width="81%" border="0" cellspacing="2" cellpadding="1">
<tr>
<td width="33%" align="left"><a href="CS-PartB.html" >Prev </a></td>
<td align="center" width="33%">
<a href="CS-PartC.html"><b>Save</b></a>
</td>
<td align="right" width="33%">

<a> </a>
</td>
</tr>
</table>
<br>
<%
System.out.println("Hi at Login.jsp");
%>
<table width="68%" border="1" cellspacing="2" cellpadding="1">
<tr>
<td>
<div align="left"><font face="Arial, Helvetica, sans-serif" size="3"><b>Part
C Focus Summary</b></font></div>
</td>
</tr>
<tr>
<td><font face="Arial, Helvetica, sans-serif" size="2">1. List the things
you would like us to improve on to make our products/Services betterfor
you. Rank them by priorities.</font></td>
</tr>
<table width="45%" border="0">
<tr>
<td><html:text property="comments" /></td><br>
<td align="center"><html:submit /></td>
</tr>
</html:form>
</BODY>
</HTML>

STRUTS-Config.xml

<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
Copyright 2004 The Apache Software Foundation

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd" >
<struts-config>
<!-- Form Bean Definitions -->
<form-beans>
<form-bean name="customersurveyform" type="com.st.csm.it.custsurvey.dao.CustomerSurveyForm"/>
</form-beans>
<form-beans>
<form-bean name="lookupactionbean" type="com.st.csm.it.custsurvey.dao.LookupActionBean"/>
</form-beans>
<!-- Action Mapping Definitions -->
<action-mappings>
<action path="/Lookup"
type="com.st.csm.it.custsurvey.dao.LookupActionBean"
name="customersurveyform"
input="/login.jsp">
<forward name="success" path="/mytest.jsp"/>
<forward name="failure" path="/index.jsp"/>
</action>
</action-mappings>
<!-- message resources -->
<message-resources parameter="com.st.csm.it.custsurvey.ApplicationResources" />
</struts-config>


Still I am unable to access ActionClass. Can any one suggest me.?
Thanks in advance
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

<action path="/Lookup"
type="com.st.csm.it.custsurvey.dao.LookupActionBean"
name="customersurveyform"
input="/login.jsp">

You should put an Action class here as the type. LookupActionBean cannot be an Action because an Action cannot be a bean.


A good workman is known by his tools.
 
Consider Paul's rocket mass heater.
 
subject: Unable to access ActionClass
 
Similar Threads
logic:forward problem
Internationalization login thru to...
HEEEELP!!!
Display results with next and previous buttons
Exception creating bean of class