Home Tutorialhelp Allcomments Struts Strutsactionforms

 
 

Comments

 
User Comments for the tutorial:

The ActionForm Class



Total comments: 130      View Tutorial    Discuss: The ActionForm Class
Advertisement
Comments

thanks for giving this help it very help ful for
thanks for giving this help it very help ful for us. thankyou very much  

Hi there! Nice tutorial, so far. Still there wi
Hi there! Nice tutorial, so far. Still there will be some errors with Struts 1.2.9: When you press "Cancel" button, you will have an ugly org.apache.struts.action.InvalidCancelException. To overcome this, simply put <set-property property="canc 

It doesn't work. :( I tried deploying it in Netbea
It doesn't work. :( I tried deploying it in Netbeans on Tomcat server. I followed all the steps and wile running in browser an error 500 occured  

Hi, While we want to change addres form variables
Hi, While we want to change addres form variables address as telephone the error messages are not seen. Is the struts.jar file specific for this example? What must I do validate my own forms. And I want use <html:errors/> 

Hi; Really nice tutorial,i will be great if you w
Hi; Really nice tutorial,i will be great if you will post some more examples related to struts with the stepwise implementation of the application just from the scratch. Thanks bye  

A very good tutorial keep it up
A very good tutorial keep it up 

good and understandable....
good and understandable.... 

Yah its very good material Thanks Ram
Yah its very good material Thanks Ram 

Great but the error messages are not being display
Great but the error messages are not being displayed.  

this is very useful getting the good concept
this is very useful getting the good concept 

This is a good tutorial on struts ..can u give som
This is a good tutorial on struts ..can u give some more real example on this tutorial  

Here is real example of struts [url=http://www.ro
Here is real example of struts [url=http://www.roseindia.net/struts/hibernate-spring/index.shtml]Login and User Registration Application[/url] Thanks 

Pl. Suggest the examples you would like to see on
Pl. Suggest the examples you would like to see on the roseindia.net Thank 

Hi, Really good tutorial on struts. Really crys
Hi, Really good tutorial on struts. Really crystal clear & easily understandable. Can give some more real world examples. 

Very very good tutorial
Very very good tutorial 

This material is good for me.But i want to write t
This material is good for me.But i want to write the code for validations in the Action Class..Can U send any example. 

Tutorial is vey useful. But Can u give more examp
Tutorial is vey useful. But Can u give more example it will be more understandable and easier. Thanks 

It's really great help. Thanx a lot. Friends u ca
It's really great help. Thanx a lot. Friends u can also give information about such a nice web sites here. 

Where's the full text for index.jsp? I wasn't able
Where's the full text for index.jsp? I wasn't able to successfully run the app. :(  

It is really very good tutorial for beginner. i ap
It is really very good tutorial for beginner. i appreciate the author to discuss the thing in detail still u can add more example.  

Thats a very good tutorial and very help full,
Thats a very good tutorial and very help full, thanks to Writer Rehan Rana 

thanks to Writer
thanks to Writer 

indeed a very usefull tutorial ! still a lot has
indeed a very usefull tutorial ! still a lot has chaged now ..such as using "errors.add("name",new ActionMessage("errors.required","Name"));" will give the validators error message in the form. 

hey. this site is great especially for those new t
hey. this site is great especially for those new to the world of struts 

How could i assign the particular value obtained
How could i assign the particular value obtained thru formBean and keep the value as the selected option from the list of options.  

Hi its great But it will be very nice if you pl
Hi its great But it will be very nice if you please make it printable. thanks 

Its really great and very very helpful article. t
Its really great and very very helpful article. thanks. 

This article is nicely writen and easy to understa
This article is nicely writen and easy to understand.. One little suggestion from my side ..I think there will come this <form-beans></form-beans> tag wraping to <form-bean name="AddressForm" type="roseindia.net.AddressForm"/> shown in the exam 

This site is really very helpful for the beginners
This site is really very helpful for the beginners to cope up very well.This type of Sample Code examples helps the new comers & the experienced guys well .Thanks a lottttttt. 

hi am just a beginner in strus. I tried the above
hi am just a beginner in strus. I tried the above example and found that instead of ActionMessage we should use ActionError inside if block of validate method (iam not sure.. but the second one worked for me) 

The tutorial is nice but is not complete. I waste
The tutorial is nice but is not complete. I wasted at least 4/5 hours to figure out what needs to be done in case of error. The Message properties file needs to be modified for the errors to be displayed. The following three lines needs to be add 

it is very informative site for java beginers
it is very informative site for java beginers 

hey dis site is very gud for learners hope to get
hey dis site is very gud for learners hope to get more info abt validations.... Thanx Indu 

This site is really very helpful for the beginners
This site is really very helpful for the beginners to cope up very well.This type of Sample Code examples helps the new comers & the experienced guys well .Thanks a lottttttt. 

How to start with struts? I have instaled Rationa
How to start with struts? I have instaled Rational software development platform(RSA) with all components, and I have problem how to start and create simple struts project which project do I have open? example FILE->NEW->what now? Thanks for h 

Thanks you for your information.well done
Thanks you for your information.well done 

hi, I m learning the working of STRUTS from this
hi, I m learning the working of STRUTS from this tutorial and getting it very easy to achive my goal in my project from it.. thanX... Vivek Wadekar  

Hi, I am learning struts from your tutorials. It
Hi, I am learning struts from your tutorials. It is very simple and easy to understand. When I started designing shoping cart, with struts I am finding it difficult. How should I go about one complete application (with data source) using struts. 

This is very gud tutorial specially for beginners
This is very gud tutorial specially for beginners and it helps us a lot to implement things quite easily.  

Hi All, This is good site.i have got lot of hel
Hi All, This is good site.i have got lot of help from this site.Thanks to all  

This tutorial is really very good and usefull for
This tutorial is really very good and usefull for all new learners and and experienced guys also.It is very much useful for all learning guys.  

For Eg. I have 3 Action Forms for Update,Save,dele
For Eg. I have 3 Action Forms for Update,Save,delete. when i click the update button how it should be identified for that particular form goes to and viceversa..? Can anyone please help me in this?its very urgent 

Hi Is there any particular intention in makin
Hi Is there any particular intention in making ActionForm an abstract class?Action Form doesnt specify any abstract methods 

good day! i am a new user for struts and have one
good day! i am a new user for struts and have one question about actionform: at veiw has data like following: id name address tel birthdate salary 01 ddd ffff ff ffff ffff 02 fff  

It helped me a lot. Thanks
It helped me a lot. Thanks 

it is good message we are create Action uml
it is good message we are create Action uml diagrams 

"roseindia.net" is helped me a lot .i am very than
"roseindia.net" is helped me a lot .i am very thank full. could you please send me how to run struts application on weblogic server 

NICE TO BEGIN.. and recollect the fundas
NICE TO BEGIN.. and recollect the fundas 

can anyone tell me how to updated multiple records
can anyone tell me how to updated multiple records in Struts Form bean 

The work done by you people is greate, simple and
The work done by you people is greate, simple and better but, show the directory structure so that it will be clear how to develop this struts application. 

good day! i don't have any comment but i have a q
good day! i don't have any comment but i have a question.. can you provide me a code that generates a time randomly using struts?.. hows this..? like for example i clicked on a button then it appears the randomized time.. the time should not be b 

its a very good site for java people
its a very good site for java people 

But, there is missing examplea are missing for whe
But, there is missing examplea are missing for where each file located, it would be great if you give folder structure sample development. 

ITs very good for learners
ITs very good for learners  

Cannot find message resources under key org.apache
Cannot find message resources under key org.apache.struts.action.MESSAGE This is the error message displayed for me, but the validation is not done, if any of the textbox is left empty, just the error message is thrown, In index.jsp page you asked t 

Really Very Good Site for any Java People
Really Very Good Site for any Java People 

How is Action Class part of Model, if you are foll
How is Action Class part of Model, if you are following MVC. I always thought Action Class are part of Controller.  

hello <html:cancel>Cancel</html:cancel> t
hello <html:cancel>Cancel</html:cancel> this button should cancel the form, but result of cancel action is success.jsp can you help me? 

whether action class belongs to model or controlle
whether action class belongs to model or controller 

How to write CheckBox fields in formbean of struts
Hi, This is explination very useful to me ,but one daught how to write checkbox fields in action Form of struts frame work, Thanks and regards vijay 

Cancel
Oscar, first add this to struts-config.xml <forward name="cancel" path="/index.jsp"/> then add this line to AddressAction.java if (isCancelled(request)) return mapping.findForward("cancel"); else return mapping.findForward("success") 

The ActionForm Class
very good to clarify who have an idea or concept on this struts 

Excellent article
Well done! I have searched all over the internet for tutorials regarding apache struts. This is by far one of the best that I've found yet. Most of the other code I've looked at wouldn't even work for me. Thanks for giving your time and exp 

ActionForm
I have made this example with jsp and build successed but no even error happen when i submit for "Name, Emailadrress, Address" is null. So which do i make wrong?Thank you so much. 

Errors are being displayed as i send a request
Hi, When I send a request as Address.do the jsp is getting validated and hence errors are being displayed on the page. But I want the page without errors.These errors should generate when I fill the form and after clicking save button only 

Very good !
very good tutorial for one n all !!! 

if any errors occures in the validate method of fo
if any errors occures in the validate method of form bean, who will forward those errors to view 

Where is the properties file?
Where is the properties file? 

Folder structure
The structure in which the folders are arranged is to be specified. The order in which the classes or files to be written should be specified. Description should be in the form of steps. Thanks, Ajay. 

struts
why *.do is written in web.xml why not *.jsp or *.something other......... 

about property files
you have to place your property files in classes folder . 

Messages in the Code
Here is how you configure the messages e.g. welcome.title in the tutorial Edit struts-config.xml and add this line &lt;message-resources parameter="resources/application"/&gt; create a directory called resources under the the struts-config. 

some help regarding taglib
can i use a simple jsp page containing no custom tags &b yet use the action errors for validation? also will simply defining the action errors validate method & setting validate=true do the needful for doing validations?? wanna thank u for such 

Good site for struts
Truly helpful site for the beginners. But please ...please remove that srtuts2.gif image. It's a torture. Too irritating. 

error when any of (name,address,email) not filled
HTTP Status 500 - -------------------------------------------------------------------------------- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request.  

Doubt in validate()
1.Validation using validate() is server or client side validation? 2.how do we implement validate() when we use DynaActionForm? 

invalidcancelException from Ashis Bhar
Hi, I am Ashis Bhar (e-mailId:ashisbhar1@rediffmail.com). While I have little time to finish for the entire Web Java course of Sun Microsystem, I was trying out the netbeans tutrial struts simple sample application.  

want more examples
hi material is very fine but sufficient examples are not there... it will be good if u provide more examples. if not it will be more confusing 

prob
while running action form getting this error. Please Help me HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache 

Hi i worked out the example i got error like this.
In the sample program, you used the <bean:message>,<message-resources>... but u didnt how to create that key and property file... if u give some example it'll be more useful for us..... The server encountered an internal error () that prev 

I want to clarification about ActionMessage
while i using ActionMessage in validate method i am getting this problem org.apache.jasper.JasperException: org.apache.struts.action.ActionMessage at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:207) at org.apa 

Simple struts application
hai this is kalpana.i mensioned error below ,i got error like this ,can u help me to rectify this error. javax.servlet.ServletException: No getter method for property uname of bean org.apache.struts.taglib.html.BEAN org. 

Nice
nice tutorial 

A query faced
Can we have any other methods in Action Class apart from execute method 

Class Cast Exception
Hello, The Class Cast exceptions that several posters have mentioned is due to using both ActionMessage and ActionErrors classes in the example. Particularly, in the validate() method, errors.add("", new ActionMessage("")); This tries to add 

I LOVe java
you provide Exelent course material for us. Thanks ! 

RE:
hi, change the location of tags in JSP. if you change this : <%@ taglib uri="/tags/struts-bean" prefix="bean" %> To: <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %> it should work. 

feedback
<html:html locale="true">and <title><bean:message key="welcome.title"/></title> these tag explanation is not there in this page atleast give link of this for explanation ...it ll be better...... 

thanks
thanks for the tutorials 

Good Work
I am a Struts programmer at Net-temps,USA and this site is so helpful that i cant describe more. This site is really really wonderful Thanks.Keep up the good work 

doubt in struts development
please explain how to work struts project in eclipse3.0 IDE,tell me the step-by-step procedure of adding struts plugins to eclipseIDE 

mistake in d code
its must be ActionError insted of ActionMessage ex: errors.add("name",new ActionError("error.name.required")); and the message must be defined in the MessageResources.properties file... ex: error.name.required= Name Required(Error Message) 

what is the difference between page and pagecontex
what is the difference between page and pagecontext in jsp  

problem runnig in above exmple
when i was execute above example its correct for address.jsp when i was click in the save button it is not goes to success.jsp and server showing error for unable to read to ther 'success'.in last line pls tell me the answer  

Quereies
I am interested to participant in this site 

linking a struts form to a page
we need help!!! We are trying to link a login.jsp page to an internal page but we don't know how to go about writing the script to link the two pages together. Basically, there is a "login page" and once the user enters his ID and Password and it  

Creating Folder in Eclips for jsf with struts
hi, I just want to know how to create folder in eclipse and is there any way to learn complete details of pdf files with examples 

ActionForm
How to use reset(), defined in above ActionForm class?What are the attributes that i have to mention in struts-config xml file, to use this reset() method? 

Need help
i am trying to build this in net beans6.0. the save ans cancel are not working and validation as well need some help. if some body have the working code pls tell me.. HTTP Status 404 - Servlet action is not available type Status report me 

Tags
Hi, All thou the tutorial is good but the new version of struts have different tags uri. Can you specify in which directory the tags need to be placed? Regards, -sam 

Java Ashis Bhar
Thank you for the suggestion. Presently I have passed SCJP Sun Java Programmer Global Certification Exam with 85% and interested in a Job in the Software Development. Please suggest me where and how to look for java jobs because most of the companies 

Using an image in the place of cancel button
Hi, Suppose i use an image like <html:image src="./images/email/cancelbutton.jpg"/> in the place of the <html:cancel>, the validate method is still being called. How can I bypass the validate method in this case? 

jsf example with ffolder strutcture in jboss
hi i want simple example for jsf in jboss with eclips so please give me replay soon. 

Please provide application's download option
The best thing about your site is that everything is provided in a very simple manner. I just wish that you give us the entire application to download (or its war file) when the explanation of the code is over; including the jars and the whole pac 

help
hello sir i am using Tomcat i deploy my application into tomcat/web-apps.my application is justforward success page.i wrote http://localhost:8000/app/login.do but the action class cant forward any page. what is the problem.i use the code in rose in 

Reset method
You no need to configure any settings to use the reset() method in ActionForm class. Its(reset()) responsibility is to set the default values to the property values when the ActionForm is populated on the server side.  

want to use action file with input="/pages.jsp"
<action path="/Address" in the following example you have been using input="/pages/Address.jsp" instead ot that can i use input="/pages.do" type="roseindia.net.AddressAction" name="AddressForm" scope="request" valida 

Good work
I am a Struts programmer at Chennai and this site is so helpful that i cant describe more. This site is really really wonderful Thanks.Keep up the good work  

Action class and Database conection
It would be more helpful if coding for database connectivity provided in the same chapter as most of the people who use this tutorial familier with JSP and DB connectivity. Its a wonderful tutorial to master Struts. 

Omissions
name, scope, validate & input attributes of action tag are not explained... 

hi
Hi, I am a Struts programmer at Adept Solutions,Bangalore and this site is so helpful that i cant describe more.Its a guide to every learner's of Struts.. This site is really really wonderful Thanks lot.Keep up the go 

java
easy to understand 

error
can you check this "The address is retrieved from and later stored in the property named" http://www.roseindia.net/struts/strutsActionForms.shtml i think one word is missed thinks 

need to understand
hello thinks for the tutorials. here you say :"Now we will create the Action class which is the model part of the application" and in the http://www.roseindia.net/struts/understandingstruts_action_class.shtml" you sau :"Action class acts as wrappe 

strutr
it is very nice 

Congratulations
I suppose that this site is the most interesting I have ever seen about Struts...well done!!! 

getting InitialContext object
hello, what are the properties i need to provide while getting the InitialContext object for JNDI. 

html:cancel doesnt work
i put <html:reset>Cancel</html:reset> an it works now 

Problem
hi this is not working and even confusing  

STRUTS
what is a strut structure? 

Key missing information
Hi, For those who are looking to use the validate() method properly, dont forget that you have to add the error message to the applicationresources.properties file. in this case it would be something like: error.name.required=<li>Name Field 

struts+hebernate sous netbeans
saut je voudrai un exmple simple pour l utilisation struts et hebrnate sumeltanementt sous netbeans 

Struts
great for anyone new to struts 

stuts
good for new learner...great 

Thanks
Thanks a lot for telling how to fix the cancel error. 

nice
nice good work 

Awesome
this site provides all kind of study material with superb examples that is really awesome,i liked it very much 

how to retrieve
Sir i have developed one action class an am printing some values in action class my problem is i have to get that printed values in to my jsp textbox please help me 

about formbeans
we have seen examples of formbean classes.they are excelent. 

struts applications
ok every thing fine its a wonderfull tutorial 

Related Tutorial and Articles
Hibernate Questions

Hibernate giving exception - struts - MySQL - Hibernate
Hibernate giving exception - struts - MySQL  Hi all, My name..., and using Struts frame work with hibernate and MySQL database. I am getting exection...("*************************************"); } its giving error and execution 

JSP Servlet Questions

Help Very Very Urgent - JSP-Servlet
Help Very Very Urgent  Respected Sir/Madam, I am sorry..Actually... requirements.. Please please Its Very very very very very urgent... Thanks.../jsp/ Thanks.   function trim(stringToTrim 

Struts Questions

help - Struts
help, thans! information: struts.xml HelloWorld.jsp... : http://www.roseindia.net/struts/struts2/ Thanks   .../struts/struts2/struts-2-hello-world-files.shtml Thanks 

Java Beginners

Please help need quick!!! Thanks
(); ^ 6 errors any help would be appreciated guys. Thanks so...Please help need quick!!! Thanks  hey i keep getting stupid compile errors and don't understand why. i'm supposed to use abstract to test a boat race 

Java Beginners

Regular Expression Help Help HELP!!!!
Regular Expression Help Help HELP!!!!  HI all I am very new to java... appreciated Thanks in advance!!!!! Please Help!! harish... could help me to give a solution of how to retrieve the name and email add 

Development process Questions

thanks - Development process
. please help me. thanks in advance...thanks  thanks for sending code for connecting jsp with mysql. I have completed j2se(servlet,jsp and struts). I didn't get job then i have learnt 

JSP Servlet Questions

Programming help Very Urgent - JSP-Servlet
Programming help Very Urgent  Respected Sir/Madam, Actually my code... Please please its very urgent.. Thanks/Regards, R.Ragavendran..  .... Thanks 

Java Beginners

Help!
Help!  thanks for ur code, I'd like to ask a question: after press "c" or "C", timer starts and after every delay ms, it'll print "This line... once.   oh, I see my problem. Thanks 

WebSevices Questions

help
to the user) please tell me how could i design that. Please help me asap Thanks a lot 

HTML Questions

very important - Kindly help
very important - Kindly help   I am creating web page for form registration to my department ..I have to Reprint the Application Form (i.e Download the PDf File from the Database ) , when the user gives the Application number 

Advertisements Advertisements
 

 

 

DMCA.com