Home Tutorialhelp Comment Hi, I am facing a problem in retrieving a jsp usin

 
 

Comment

Prasad
Hi, I am facing a problem in retrieving a jsp usin,
March 26, 2007 at 8:41 PM

Hi, I am facing a problem in retrieving a jsp using struts framework. I am getting the error "Form bean not specified on mapping for action: "/SetNewPassword". struts config is as below:

=======================================
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
"http://struts.apache.org/dtds/struts-config_1_3.dtd">
<struts-config>
<form-beans>
<!-- BaseAction form bean (abstract) -->

<form-bean name="LogonForm" type="org.apache.struts.action.DynaActionForm">
<form-property name="username" type="java.lang.String" />
<form-property name="password" type="java.lang.String" />
</form-bean>
<form-bean name="ChangePasswordForm" type="org.apache.struts.action.DynaActionForm">
<form-property name="username" type="java.lang.String" />
<form-property name="password" type="java.lang.String" />
<form-property name="newpassword" type="java.lang.String" />
<form-property name="confirmnewpassword"
type="java.lang.String" />
</form-bean>
</form-beans>

<global-forwards>
<forward name="Logoff" path="/Logoff.do" />
<forward name="Logon" path="/Logon.do" />
<forward name="Failure" path="/Error.do" />
</global-forwards>


<action-mappings>
<action path="/toModule"
type="org.apache.struts.actions.SwitchAction" />

<!-- Display any other page (Logon, MainMenu) - Wildcards must come first! -->
<action path="/*" forward="/{1}.jsp"></action>

<action path="/SetNewPassword" type="com.jayaraj.login.action.ChangePasswordAction" name="ChangePasswordForm"
scope="request" validate="false" input="/ChangePassword.jsp">
<forward name="Success" path="/Logon.do" />
</action>

<!-- Process a user logon -->
<action path="/SubmitLogon"
type="com.jayaraj.login.action.LogonAction" name="LogonForm"
scope="request" cancellable="true" validate="false"
input="/Logon.do">
<exception key="expired.password"
type="com.jayaraj.exceptions.ExpiredPasswordException"
path="/ChangePassword.do" />
<forward name="Success" path="/HomePage.do" />
</action>


</action-mappings>

<message-resources
parameter="org.apache.struts.apps.mailreader.resources.ApplicationResources" />

<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames"
value="/org/apache/struts/validator/validator-rules.xml,/WEB-INF/validation/validation.xml" />
</plug-in>

</struts-config>
==============================================

I have defined 2 form beans and 2 action mappings. The "/SubmitLogon" action works fine, but "/SetNewPassword" is giving "Form bean not specified on mapping for action". Could any one help me resolve this problem.


View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Struts Questions

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 but i am unable to know how to write the form and action classes   Hi 

Struts Questions

i am getting the problem when i am downloading the pdf file from oracle 10g database - Struts
i am getting the problem when i am downloading the pdf file from oracle 10g database  if i created the pdf file from pdf machine,it is storing into datbase and download the pdf file from database. but when i created the pdf file 

Framework Questions

facing problem plz help me out - Framework
Facing problem plz help me out  hi i am new to servlet i deployed... the web.xml file too parallel to the classes folder now i am facing this problem.plz tell me what to do... error:The requested resource (Servlet servlet 

Struts Questions

DynaActionForm
DynaActionForm   Q. What is DynaActionForm ? and How you can retrive the value which is set in the JSP Page in case of DynaActionForm 

Ajax Questions

Facing - Ajax
Facing   Hello All, i m using ajax in my application i m fetching... then how can i fetch data from xml response child nodes.  Hi, If ur data... the problem. once check u r xml response format. xml response should be like 

JSP Servlet Questions

Facing Problem to insert Multiple Array values in database - JSP-Servlet
Facing Problem to insert Multiple Array values in database  Hai... facing the problem while inserting the data in database. iam using the MsAccess... Manoj   Hi friend, You Have Problem in Data Table and check 

Struts Questions

Hi - Struts
Hi  Hi Friends, I am new in Struts please help me starting of struts and accept my request also..please send its very urgent.... I ahve... server please tell me.   Hi friend, For solving the problem 

Struts Questions

DynaActionform in JAVA - Struts
DynaActionform in JAVA  how to use dynaActionFrom?why we use it?give me a demo if possible?  Hi Friend, Please visit the following link: http://www.roseindia.net/struts/DynaActionForm.shtml Hope 

Struts Questions

struts- login problem - Struts
struts- login problem  Hi all, I am a java developer, I am facing problems with the login application. The application's login page contains fields like username, password and a login button. With this functionality only 

XML Questions

Problem facing in SAX Parsing - XML
Problem facing in SAX Parsing  I have facing the issue in SAX Parsing like i have got the xml and the xml structure is like below... records. if that CountryCode is not present then i need to skip the total Customer 

Struts Questions

hi... - Struts
hi...  Hi Friends, I am installed tomcat5.5 and open... also its very urgent  Hi Soniya, I am sending you a link. I hope that, your problem will be solved. Please visit for more information 

JSP Tutorials

Struts DynaActionForm
DynaActionForm. We will recreate our address form with Struts DynaActionForm... DynaActionForm Entry in struts-config.xml First we will add the necessary entry... 1Struts DynaActionForm    

Struts Questions

Hi i am new to J2ee Technology and struts - Struts
Hi i am new to J2ee Technology and struts  what exatly will happen when we hit the Login button? Once we enter in to the application, what will happen. How the UserID and Password validations will done. Can any one help 

Java Beginners

facing problem while retrive value from Post textarea
facing problem while retrive value from Post textarea  Hi this is subha. I face a small problem while retriving value of the textbox in the java script.I use struts framework and this is my code for post textarea. <tr> 

Java Beginners

Hi ..I am Sakthi.. - Java Beginners
Hi ..I am Sakthi..  can u tell me Some of the packages n Sub...;Hi friend, package javacode; import javax.swing.*; import... = makeTextPanel("Java, JavaScript,JSP"); tabbedPane.addTab("Two", icon, panel2 

Struts Questions

retrieving info from DB using struts?
retrieving info from DB using struts?  Hi. I was looking info about retrieving info from a database using struts. I need a .java that I suppose connects to a database and show the info on a jsp. Somebody could help me 

Framework Questions

Problem in integration struts+ spring - Framework
Problem in integration struts+ spring  Problem in integration struts+ spring hi, i am facing problem in integration struts+ spring. I am also using...-INF/struts 

Struts Questions

Hi
Hi  Hi All, I am new to roseindia. I want to learn struts. I do not know anything in struts. What exactly is struts and where do we use it. Please help me. Thanks in advance. Regards, Deepak 

Struts Questions

Hi.. - Struts
Hi..   Hi Friends, I am new in hibernate please tell me.....if i am using hibernet with struts any database pkg is required or not.....without... me  Hi Soniya, I am sending you a link. I hope that, this link 

XML Questions

hi
online multiple choice examination  hi i am developing online multiple choice examination for that i want to store questions,four options,correct answer in a xml file using jsp or java?can any one help me?   Please 

JSP Servlet Questions

Hi
Hi  The thing is I tried this by seeing this code itself.But I;m facing a problem with the code.Please help me in solving me the issue. HTTP Status 500 - type Exception report message description The server encountered 

JSP Servlet Questions

retrieving from db - JSP-Servlet
retrieving from db  hello' I am trying to write my first application connecting to the database. I have found some code but i am getting the following errors wen i am running the prg. the error is as follows. I can't figure 

Development process Questions

hi
hi   i want to develop a online bit by bit examination process as part of my project in this i am stuck at how to store multiple choice questions options and correct option for the question.this is the first project i am doing 

Struts Questions

Hi... - Struts
Hi...  Hi, If i am using hibernet with struts then require... of this installation  Hi friend, Hibernate is Object-Oriented mapping tool... more information,tutorials and examples on Struts with Hibernate visit 

Struts Questions

Hi - Struts
very urgent....   Hi friend, I am sending you a link...Hi  Hi friends, must for struts in mysql or not necessary...://www.roseindia.net/struts/ Thanks.  Hi Soniya, We can use oracle too in struts 

Struts Questions

Hi.. - Struts
Hi..  Hi, I am new in struts please help me what data write in this file ans necessary also... struts-tiles.tld,struts-beans.tld,struts........its very urgent  Hi Soniya, I am sending you a link. This link 

JSP Servlet Questions

problem in programming - JSP-Servlet
problem in programming  Hi! I am new with jsp. I am facing a problem in programming to calculate the time interval between login time and logout time of user 

JSP Interview Questions

jsp reload current page problem
jsp reload current page problem  Hi, i am facing problem while reloading the JSP page 

JSP Interview Questions

jsp reload current page problem
jsp reload current page problem  Hi, i am facing problem while reloading the JSP page 

JSP Servlet Questions

I am getting Undefined in Text Box Very Urgent - JSP-Servlet
I am getting Undefined in Text Box Very Urgent  Respected Sir/Madam, I am R.Ragavendran.. Thanks for your superb reply. I got the coding. But I find a simple problem which i hava tried my level best to solve. A pop up window 

Struts Questions

Hi... - Struts
Hi...  Hello Friends, installation is successfully I am instaling jdk1.5 and not setting the classpth in enviroment variable please write the classpath and send classpath command   Hi, you set path = C 

Struts Questions

problem:struts code - Struts
problem:struts code  Hi, Am using struts1.2.I wrote a form... the action class,in action class i gave forward to same form,the problem is if i forward to same page the form displayed with previous fields.if i press refresh 

Struts Questions

Hi - Struts
Hi  Hi Friends, I want to installed tomcat5.0 version please help me i already visit ur site then i can't understood that why i installed please give some idea for installed tomcat version 5 i have already tomcat 4.1 

XML Questions

Problem facing in SAX Parsing - XML
Problem facing in SAX Parsing  I have facing the issue in SAX Parsing like i have got the xml and the xml structure is like below... then i need to skip the total Customer tag. so we were using the sax parcing 

JSP Servlet Questions

struts <logic:iterate problem - JSP-Servlet
struts   how can i limit no.of rows to be displayed using an tag  Hi friend,  ...; ------------------------------------------ I am sending you a link. This link will help you please 

RMI Questions

:( I am not getting Problem (RMI)
I am not getting Problem (RMI)  When i am excuting RMI EXAMPLE 3,2 I am getting error daying nested exception and Connect Exception   

JSP Servlet Questions

struts <logic:iterate problem - JSP-Servlet
struts   hi. i have 10 records in my hash table and i have to display only 4 rows at a time and i need to provide pagination logic here like...... please help me out... i am getting all the records in hashtable 

Java Beginners

getting problem in storing & retrieving value in database
getting problem in storing & retrieving value in database  Hello everyone i am doing a project where my back end is ms access & i want to store value like 5353250214 so if i store it as long int in access it wont take it & 

JSP Servlet Questions

retrieving of value from excel file - JSP-Servlet
retrieving of value from excel file  Dear sir, Thanks for sending a code now i am getting a particular column value i.e EmailId column for snding a massmails,now i have to get a particular column values i.e Name(A),EL(B 

JSP Servlet Questions

check radio button on retrieving the value from database.
check radio button on retrieving the value from database.  HI i am new to jsp.In my applcation i having a problem. I am retrieving user payment from... checked.If user has done payment through cash then when i am retrieving user 

Struts Questions

i am Getting Some errors in Struts - Struts
i am Getting Some errors in Struts   I am Learning Struts Basics,I am Trying examples do in this Site Examples.i am getting lot of errors.Please Help me 

Struts Questions

jsp to struts 2 action conversion problem - Struts
jsp to struts 2 action conversion problem  i have one jsp page that includes 3 other jsp pages(using RequestDispactcher).how to convert that jsp page to a struts2 action?among that one jsp page is wrritten using jpivot,wct tags 

JDBC Questions

Retrieving cells in MySQL - JDBC
Retrieving cells in MySQL  Hi, Am creating an online exam application using JSP & MySql.The exam is of objective nature with four choices each and 100 questions. Can you please help me to insert the chosen choice into cells 

Struts Questions

Code Problem - Struts
Code Problem  Sir, am using struts for my application.i want to uses... to function.ex.when i login into page,i will welcome with corresponding user homepage with userid.now in that home page,there is menu,when i click that menu option,i am 

Struts Questions

send the mail with attachment problem - Struts
send the mail with attachment problem  Hi friends, i am using the below code now .Here filename has given directly so i don't want that way. i need to select the attached document from the jsp page(browser:");How to get the file 

Struts Questions

Struts - Struts
Struts  Hi i am senthil, i am not good in javascripts. i have a problem in my program, if antbody knows help me. it is a JSP program that i used in a struts aplication. these are the conditions 1. when u entered 

Struts Questions

struts - Struts
struts  am retrieving data from the mysql database so the form bean will be null for that action.... if i give it in struts config it is asking me to have a form bean.... how to solve this problem 

Struts Questions

iterator display problem - Struts
iterator display problem   in action class i store database data in arrraylist but after success how can i display those data in jsp page using iterator tag can i use id atribute or valuethat i not understand  Hi 

Java Beginners

Hi
Hi  I want import txt fayl java.please say me...   Hi, Please clarify your problem! Thanks 

Struts Questions

My Eclipse deployed problem. - Struts
My Eclipse deployed problem.  Dear All, I am facing a problem. When First time I am deploying a web project in eclipse in jboss its fine but, when I am changing the project name by pressing 'f2' and then deploying 

JDBC Questions

hi
hi   I have connected mysql with jsp in linux and i have used JDBC connectivity but when i run the program, its not working the program is displaying 

JSP Servlet Questions

hi
hi   on clicking on button on 1st jsp page i want to display following options like friends,family,doctor etc.on next jsp page and also i want link to those options through which i can save the data from 1st jsp in different 

JSP Servlet Questions

hi
hi   on clicking on button on 1st jsp page i want to display following options like friends,family,doctor etc.on next jsp page and also i want link to those options through which i can save the data from 1st jsp in different 

Struts Questions

struts jar file problem
struts jar file problem  hi.. I'm using struts-core-1.3.9.jar. it works well if am using ma application with internet but it shows me an error while initializing ActionServlet when i disconnected to Internet The error stack trace 

Struts Questions

jsp usebean problem - Struts
popupwindow jsp below code run.. ...here iam getting the problem..in the below... bean class... first of all i didn't put jsp:usebean..it didn't access the dto(bean...jsp usebean problem   --Select 

Java Beginners

Hi
Hi   I need some help I've got my java code and am having difficulty to spot what errors there are is someone able to help import java.util.Scanner; public class Post { public static void main(String[] args) { Scanner sc 

Development process Questions

hi
storing data in xml file using jsp  hi i am storing data in xml file using jsp.in this when i enter data into xml file i am getting xml declaration for each specified data?can any one help me to prevent this?   < 

Java Beginners

Hi
Hi   I have got this code but am not totally understanding what the errors. Could someone Please help. Thanks in advance! import java.util.Random; import java.util.Scanner; private static int nextInt() { public class 

JSP Servlet Questions

hi..
hi..   I want upload the image using jsp. When i browse the file then pass that file to another jsp it was going on perfect. But when i read...); for(int i=0;i<arr.length-1;i++) { newstr=newstr 

JSP Servlet Questions

hi..
hi..   I want upload the image using jsp. When i browse the file then pass that file to another jsp it was going on perfect. But when i read...); for(int i=0;i<arr.length-1;i++) { newstr=newstr 

JSP Servlet Questions

hi..
hi..   I want upload the image using jsp. When i browse the file then pass that file to another jsp it was going on perfect. But when i read...); for(int i=0;i<arr.length-1;i++) { newstr=newstr 

JSP Servlet Questions

hi..
hi..   I want upload the image using jsp. When i browse the file then pass that file to another jsp it was going on perfect. But when i read...); for(int i=0;i<arr.length-1;i++) { newstr=newstr 

JSP Servlet Questions

hi..
hi..   I want upload the image using jsp. When i browse the file then pass that file to another jsp it was going on perfect. But when i read...); for(int i=0;i<arr.length-1;i++) { newstr=newstr 

JSP Servlet Questions

hi..
hi..   I want upload the image using jsp. When i browse the file then pass that file to another jsp it was going on perfect. But when i read...); for(int i=0;i<arr.length-1;i++) { newstr=newstr 

JSP Servlet Questions

hi..
hi..   I want upload the image using jsp. When i browse the file then pass that file to another jsp it was going on perfect. But when i read...); for(int i=0;i<arr.length-1;i++) { newstr=newstr 

XML Questions

retrieving xml document from database
retrieving xml document from database  Hi Guys, I want to retrieve the xml document stored in the database on to a jsp page using jdbc/odbc connnection.Please help me in implementing this feature. Thank You Madhu 

Struts Questions

struts
technologies like servlets, jsp,and struts. i am doing one struts application where i...struts   hi Before asking question, i would like to thank you... into the database could you please give me one example on this where i i have 

Struts Questions

Struts2 Helloworld problem -Please help - Struts
Struts2 Helloworld problem -Please help  Hi I am a beginner... problem I unable to execute the program successfully. Please find my example in detail below and provide me a pointer in identifying the problem. I am 

Struts Questions

struts validation problem - Struts
struts validation problem  i used client side validation in struts 2 .but message will display only on the top of the component.i want to display... parameter for the message tag or any other alternative solution?  Hi 

JSP Servlet Questions

Retrieving newly inserted records and displaying in jsp forever
Retrieving newly inserted records and displaying in jsp forever  Sir... of every record which is displayed on the jsp (not in database) and immediately i have... record which is displayed in the jsp. I have to delete that record from the jsp 

Java Beginners

Hi... - Java Beginners
you have used like html,JSP,Servlet,Struts,JSF etc.. and explain the problem...Hi...  Hello Friend I want to some code please write and me... is successfully then i face problem in adding two value please write the code 

Struts Questions

struts problem ... need help urgently.. please reply ASAP
struts problem ... need help urgently.. please reply ASAP  Hi Every1, I want to make an application using struts 1.2. I am a beginner on struts. Dont know much about struts. In application I have to make jsp to get some 

Struts Questions

hashmap with struts and jsp - Struts
hashmap with struts and jsp  i am trying to use hash map in struts.I am inserting on class object as value and string as key.This object is of class type like UserMaster{username,userId.....}.My problem is that its working fine 

Struts Questions

validation problem in struts - Struts
validation problem in struts  hi friends... m working on one project using struts framework. so i made a user login form for user authentication. nd i write d code for sql connection and user athunetication in d action class 

Struts Questions

Struts - Jboss - I-Report - Struts
Struts - Jboss - I-Report  Hi i am a beginner in Java programming and in my application i wanted to generate a report (based on database) using Struts, Jboss , I Report 

JSP Servlet Questions

jsp problem - JSP-Servlet
jsp problem  hi, i am working on a project of developing a shopping cart for online book store.can it be done using jsp?if yes, can u please help me doing so?  Hi Friend, Please visit the following link: http 

Struts Questions

JSP - Struts
JSP  Hi, Can you please tell me how to load the values in selectbox which are stored in arraylist using struts-taglibs Note:I am neither using... for ur response...but I want it in struts 1.X 

Struts Questions

Hi - Struts
Hi  Hi Friends, Thanks to ur nice responce I have sub package in the .java file please let me know how it comnpile in window xp please give the command to compile 

Struts Examples

Struts DynaActionForm
 

JSP Servlet Questions

please help me solve this problem when i am create database connection using servlecontext
please help me solve this problem when i am create database connection using servlecontext  hi... I have create a database connection using servletcontext . in this code when i login first time it will exceute sucessfully 

Struts Questions

Hi... - Struts
Hi...  Hello, I want to chat facility in roseindia java expert please tell me the process and when available experts please tell me  Firstly you open the browser and type the following url in the address bar 

JSP Servlet Questions

Simple problem to solve - JSP-Servlet
. But in that I am facing a very very minute problem. The alert boxes are displayed...Simple problem to solve  Respected Sir/Madam, I am... must display in the home page itself after clicking submit button. I am sending 

Java Beginners

Hi.... - Java Beginners
. For example : Java/JSP/JSF/Struts 1/Struts 2 etc.... Thanks...Hi....   Hi Friends, Thanks for reply can send me sample of code using ur idea... First part i have completed but i want to how to go 

Java Beginners

Hi.... - Java Beginners
Hi....  Hi Friends when i compile jsp file then got the error "code to large for try statement" I am inserted 177 data please give me solution and let me know what is the error its very urgent  Hi Ragini 

Struts Questions

Regarding tiles and struts - Struts
Regarding tiles and struts  Hi, i have a struts application which uses tiles my problem is when i am redirecting/forwarding from a jsp page(which is a tiles page) i am not able to redirect properly it was showing response  

Hibernate Questions

I am having problem with configuring Hibernate sessionfactory. Please Help
I am having problem with configuring Hibernate sessionfactory. Please Help  Sir, I am having problem with configuring Hibernate sessionfactory.. I was using the old version of Hibernate before now I am using Hibernate 4 

Java Beginners

hi.... - Java Beginners
hi....  Hi friends i am using ur sending code but problem is not solve my code is to much large i am this code please check it and solve its very urgent   Hi ragini, First time put the hard code after 

JavaScript Questions

autocomplete(): Spring mvc with jquery: I am not getting correct value in the text filed. Please help me
autocomplete(): Spring mvc with jquery: I am not getting correct value in the text filed. Please help me   Hi have develop the jsp to populate related birds whenever we give input in the text field. But i am getting the wrong 

JSP Servlet Questions

Problem dispalying Country, City, State in JSP using Ajax in Struts Framework - JSP-Servlet
Problem dispalying Country, City, State in JSP using Ajax in Struts Framework  Hi, In my JSP page, I have used one div that adds some rows... I am using dv to add rows dynamically. If I try working without using div 

Struts Questions

problem with cookie - Struts
problem with cookie  struts cookies response - Hii, I am a beginner in struts..Well, I try to add username and group(or whatever) to a cookie but not able to access the cookie value in the next page after submitting the form 

Struts Questions

Still have the same problem--First Example of Struts2 - Struts
Still have the same problem--First Example of Struts2  Hi I tried the example in the link. But still I am getting the same problem like as I...; Hi friend, Please give details about the problem in details 

Struts Questions

I have a doubt regarding action - Struts
I have a doubt regarding action   hi, I have doubt regarding struts,I got response through jsp and once again it redirecting to action..., Please check Action Mapping in the struts-config.xml. If you have any problem 

JSP Servlet Questions

retrieving of value from excel file - JSP-Servlet
retrieving of value from excel file  Dear sir, Thanks for sending a code now i am getting a particular column values i.e EmailId column for sending a massmails,now i have to send a mail that contains a (Name(A),EL(B),CL(C),Bonus 

JSP Servlet Questions

retrieving of value from excel file - JSP-Servlet
retrieving of value from excel file  Dear sir, Thanks for sending a code now i am getting a particular column values i.e EmailId column for sending a massmails,now i have to send a mail that contains a (Name(A),EL(B),CL(C),Bonus 

XML Questions

Retrieving attribute value from XML
Retrieving attribute value from XML  I have an XML as below to parse...(eticketid) ); Can someone help me out as to where am going wrong.   I...; ..... But am not able to fetch the value of LoadTicketId attribute. My code 

Struts Questions

struts
struts  <p>hi here is my code in struts i want to validate my form fields but it couldn't work can you fix what mistakes i have done</p>... ActionForward execute(ActionMapping am,ActionForm af,HttpServletRequest req 

Struts Questions

Doubt in struts - Struts
Doubt in struts  I am new to Struts, Can anybody say how to retrieve data from database and display it in jsp. Some said to use beans but i dont... with code?  Hi friend, Please visit the link to solve the problem 

Struts Questions

Struts,JSP - Struts
Struts,JSP  I'm facing problem while using logic:iterate to render the data in the jsp from the Array list. javax.servlet.ServletException: Cannot find...("uname",employees); In the jsp 

JSP Servlet Questions

retrieving of data from one jsp to another jsp - JSP-Servlet
retrieving of data from one jsp to another jsp  using jsp i m displaying a table ,in table i m displaying a radio button then values like id,name etc... that is used for different jsp please help me sir... thanks in advance   Hi 

Java Beginners

import geoserver maps in J2ME usin IDE netbeans
import geoserver maps in J2ME usin IDE netbeans  i want to see my geoserver maps in J2ME midelt using netbeans.if any one can help me in this regard. Thanks 

Advertisements Advertisements
 

 

 

DMCA.com