Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Struts Struts Warnings ...About FormBeanConfig & about Cancel Forward
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


umesh
Struts Warnings ...About FormBeanConfig & about Cancel Forward
0 Answer(s)      4 years and 3 months ago
Posted in : Struts


Hi Friends...
I am trying a very small code samples of Contact Application i have created the following jsp pages

1)Index.jsp containning the link which points to the AddressSave Form
2)Address.jsp Containning the Name,Email,Address labels & Textfields & 2 buttons save & cancels.
3)success.jsp Displays message that information saved successfully.

but whenever i run the project on Tomcat Web Server then it displays index page corrrectly but when click on hyperlink then it doesn't display anything...
& my Eclipse Editor's console shows the following warnings.
1)WARNING: No FormBeanConfig found under 'AddressForm'
2)WARNING: Unable to find 'cancel' forward.

the contents of struts-config.xml are:
<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
"http://struts.apache.org/dtds/struts-config_1_2.dtd">

<struts-config>
<data-sources>
</data-sources>
<!--Address Form bean Configuration -->
<form-beans>
<!--Address form-->
<form-bean name="Address" type="ContactInfo.com.AddressForm"/>
</form-beans>
<global-forwards>

</global-forwards>
<!-- Action mappping declaration -->
<action-mappings>
<!-- Address Form Page -->
<action path="/Address" forward="/pages/Address.jsp"/>
<!-- Success page -->
<action path="/Address" type="ContactInfo.com.AddressAction" name="AddressForm" scope="request" input="/pages/Address.jsp">
<forward name="save" path="/pages/success.jsp"/>
<forward name="reset" path="/pages/index.jsp"/>
</action>
</action-mappings>
<controller>
</controller>
</struts-config>

Address.jsp
<%@ taglib uri="/WEB-INF/struts-bean" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>

<html:html locale="true">
<head>
<title>Welcome to Contact Book</title>
<html:base/>
</head>
<body bgcolor="cyan">
<html:form action="/Address" method="post" page="/pages/Address.jsp">
<html:errors/>
<table>
<tr>
<td align="center" colspan="2"><font size="4">Enter Following Details</font>
</tr>
<tr>
<td align="left">Name
</td>
<td align="right">
<html:text property="name" size="30" maxlength="30"/>
</td>
</tr>
<tr>
<td align="left">Address
</td>
<td>
<html:text property="address" size="30" maxlength="30"/>
</td>
</tr>
<tr>
<td align="left">Email
</td>
<td>
<html:text property="email" size="30" maxlength="30"/>
</td>
</tr>
<tr>
<td align="left">
<html:submit>Save<html:link page="/Address.do?parameter=save"></html:link></html:submit>
</td>
<td align="left">
<html:cancel>Cancel<html:link page="/Address.do?parameter=reset"></html:link></html:cancel>
</td>
</tr>

</table>
</html:form>
</html:html>

index.jsp

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

<html>
<head>
<title>Welcome to contact Book</title>
</head>
<body bgcolor="white">
<table>
<html:link page="/Address.do">The Address Info Form</html:link>
<p><font size="5" family="verdana">Contact Information</font></p>
</table>
</html>

success.jsp
<%@ taglib uri="/WEB-INF/struts-bean" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>

<html>
<body>
<head>
<title>Status page of Contact Information</title>
</head>
<table>
<p><font size="5" style="bold">Information stored successfully</font></p>
</body>
</html>

The Action Form & action classes are correct but these warnings are generated...
So please tell me the solution...it's urgent...

Umesh..

Advertisement
View Answers

Related Tutorials/Questions & Answers:
Struts Warnings ...About FormBeanConfig & about Cancel Forward - Struts
Struts Warnings ...About FormBeanConfig & about Cancel Forward  Hi... the following warnings. 1)WARNING: No FormBeanConfig found under 'AddressForm' 2)WARNING: Unable to find 'cancel' forward. the contents of struts-config.xml
About struts
About struts  How will we configure the struts
Advertisements
about db - Struts
About DB in Struts  I have one problem about database. i am using netbeans serveri glassfish. so which is the data source struts config file should be? Please help me
About hibernate using struts
About hibernate using struts  what are the advantages are occured when using struts in hibernate? what are the inconvenient occur in hibernate using struts in hibernate? how they are overcome? if any another solutions
About Struts processPreprocess method - Struts
About Struts processPreprocess method  Hi java folks, Help me... will abort request processing. For more information on struts visit to : http://www.roseindia.net/struts/ Thanks
About desing patterns - Struts
About desing patterns  How many Design Patterns are there supported by Java? and what is an Application Controller? what is the difference between Front Controller & Application Contorller?  Hi Friend, Please visit
about webapps - Struts
about webapps  hi deepak, I have a query ,i.e., If we develop web-application By directory name MyStrutsProject,then we kept this folder in the web-apps of the tomcat,other than this folder in tomcat can we kept our
Java Example projects about STRUTS
Java Example projects about STRUTS  Hai... I completed MCA but i have no job in my hands. But i do some small projects about STRUTS. Please send me some example projects about STRUTS.   Please visit the following link
Forward - Struts
Forward  Hi how to get the return value of execute() in Action class. we will write return mapping.findForward("success"); how to get the value of forward. Is there any method to get the which forward is executing
Save,Discard and Cancel button - Struts
Save,Discard and Cancel button   How can I create a confirm message with Save,Discard and Cancel button instead of OK/Cancel buttons in java script inside a jsp
Browser Back/Forward - Struts
a web application using Struts 2. Now, i want to enable browser back/forward... about implementing it in my web application? Kindly help me on this. Awaiting... on Struts 2 visit to : http://www.roseindia.net/struts/struts2/index.shtml
About Struts 2.2.1 Login application
.style1 { margin-left: 80px; } About Struts2.2.1 login application...(Java Server Pages). All the JSP files written for struts uses the struts...;%@ taglib prefix="s" uri="/struts-tags" %> here struts-tags
forward error message in struts
forward error message in struts  how to forward the error message got in struts from one jsp to other jsp?   Hello Friend, Use <%@ page errorPage="errorPage.jsp" %> in the first page that generates the exception
I want detail information about switchaction? - Struts
I want detail information about switch action?  What is switch action in Java? I want detail information about SwitchAction
Struts Forward Action Example
.. Here in this example you will learn more about Struts Forward Action... Struts Forward Action Example  ... about Struts ForwardAction (org.apache.struts.actions.ForwardAction
Struts ForwardAction vs Forward tag in jsp - Struts
Struts ForwardAction vs Forward tag in jsp  difference between struts ForwardAction class and Forward tag in jsp
warnings in php
warnings in php  how to suppress warnings in php
Facing Problem with submit and cancel button in same page - Struts
Facing Problem with submit and cancel button in same page  Hi, can u please help me out.I have placed submit and cancel button in the jsp page... friend, Read for more information. http://www.roseindia.net/struts
about connectivity
about connectivity  hello i am basavaraj,will any one tell me how to use hibernate in struts.   Please visit the following link: Struts Hibernate Integration
how to add save,discard,& cancel button in a message box - Struts
how to add save,discard,& cancel button in a message box  how to add save,discard,& cancel button in a message box
About Java
About Java  Hi, Can anyone tell me the About Java programming language? How a c programmer can learn Java development techniques? Thanks   Hi, Read about java at http://www.roseindia.net/java. Thanks
about java
about java  how to get the value from the user like c, c++ program pls explain with example for me
About jsp
About jsp  Read Excel data using JSP and update MySQL databse
About the project
About the project       Shopping cart application is an open source project written in Java ,Struts and Hibernate. This  helps  people that want to develop
about jquery
about jquery  i want to put already made dropdown menu code which is in internet into my website.but how to put
About Main
About Main  can u create the object of one interface ? But i can able to create the abstract class through anonimous inner class.similarly can i
About Main
About Main  can u create the object of one interface ? But i can able to create the abstract class through anonimous inner class.similarly can i
ABOUT Jtable
ABOUT Jtable  My Project is Exsice Management in java swing Desktop Application. I M Use Netbeans & Mysql . How can retrive Data in Jtable from Mysql Database in Net Beans
about java1
about java1  Sir, i want to know how we develop 3d button ,lable,textfield etc. in java . sir plz give one program as well Thank you
About Java2
About Java2  sir i want to a develop one text editor but the problem is that i m not able to save our file as text formet or any formet Sir plz guide me
About Project
About Project  Hello friends i want to make a project on face reconization this is my first projct so please help me that how i start my projct please tell me some working with image codeing. thanks
 

 

 

DMCA.com