| Home | JSP | EJB | JDBC | Java Servlets | WAP | Free JSP Hosting | Spring Framework | Web Services | BioInformatics | Java Server Faces | Jboss 3.0 tutorial | Hibernate 3.0 | XML | ||||
|
||||
|
|
||||
| Tutorial Categories: Ajax
| Articles
| JSP
| Bioinformatics
| Database
| Free
Books |
Hibernate
| J2EE
| J2ME
| Java
| JavaScript
| JDBC
| JMS
| Linux
| MS
Technology |
PHP
| RMI
| Web-Services
| Servlets
| Struts
| UML
|
|
||||||||||||||||||||||||||||||
|
Home | JSP | EJB | JDBC | Java Servlets | WAP | Free JSP Hosting | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs |
||||||||||||||||||||||||||||||
Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.
Copyright © 2007. All rights reserved.
Current Comments
100 comments so far (post your own) View All Comments Latest 10 Comments:superb tutorial ........ i am loving it
thank you
Posted by DIlip kumar on Tuesday, 05.13.08 @ 16:50pm | #59718
can any one pls send me a web application using struts.
Posted by Arun on Monday, 03.31.08 @ 11:59am | #54854
I will review it further and let you know my comments. Thanks for your efforts.
Posted by Srinivas Marripudi on Wednesday, 02.13.08 @ 14:13pm | #48134
I wrote Errors in ApplicationResource.properties
But i am unable to print those Errors using
< html:errors /> in JSP
How can i print errors using ApplicationResource.properties
Posted by Ravi Goud on Monday, 12.24.07 @ 15:43pm | #43577
this tutorial is very nice.
Posted by abhishek on Wednesday, 12.5.07 @ 11:22am | #41335
hi all,
this one is good example. what we all think about struts 2 version
Posted by sumit on Sunday, 11.11.07 @ 23:46pm | #36917
Hi
Its very good example,but you should give some more descritive
Posted by jayanta on Monday, 10.8.07 @ 19:24pm | #32506
http://www.roseindia.net/images/struts2.gif is very irritating. It's too straining for the eyes.
Kindly remove it.
Thanks,
kanakangi
Posted by kanakangi on Wednesday, 10.3.07 @ 12:02pm | #31291
here is the struts-config.xml code
<struts-config>
<form-beans>
<form-bean name="ref name of form bean demoform" type="demopack.DemoForm"/>
<form-beans>
<action-mappings>
<action path="/demo" name="demoform" type="demopack.DemoAction">
<forward name="success" path="/result.jsp"/>
</action-mappings>
</struts-config>
Posted by santosh kumar on Wednesday, 09.26.07 @ 10:32am | #29632
This document is very handy and very helpful for Struts novice programmers like me. I am using Eclipse 3.2.1 , Struts 1.3.5 and Tomcat 5.5. It has been great to understand your tutorials but it will more helpful and jutifying if details on configuring your workspace can also be made available. Thanks again, keep up the good work!
Posted by Srinivas Marripudi on Thursday, 09.20.07 @ 15:31pm | #28191
Please changes the image http://www.roseindia.net/images/struts2.gif. Its an irritative image. Please change that if possible
Posted by Mammu on Monday, 09.10.07 @ 11:05am | #26559
In the third psrs for this page:-
<code>The ActionServlet (commad) passes the parameterized class to Action Form using the execute() method.<code>
it passes to 'Action' class by calling its 'execute()' method not 'ActionForm'class
Posted by nam on Thursday, 09.6.07 @ 12:04pm | #25195
please send me important things of struts
Posted by siba on Monday, 09.3.07 @ 15:08pm | #24880
I have a doubt "is action class thread safe" and y we get errors like cant retrive action mapping for particular action
Posted by Srikar G on Wednesday, 08.8.07 @ 11:34am | #22917
Hi,
I really like too much your tutorial, is really complete.
And I will appreciate you could help me with a doubt.
How do you set a request scope attribute in the action class that the forwarded jsp receives without any problem.
I'm doing this:
return ActionForward("/success.jsp", true);
and I doesn't work, the only way is when I set to false the redirect flag, but in this case, user gets the strut at the end, not the page and I need to be the simple page.
Thank you very much
Posted by Frank on Friday, 07.20.07 @ 10:23am | #21608
hi,
wts the behavior of execute(). To where the control goes if we call super.execute() in our action class.
90
Posted by rakesh on Thursday, 07.19.07 @ 21:22pm | #21602
I use this site regularly.
It publish the subject very well understandable.
Keep it up .
Posted by Anwar on Wednesday, 07.18.07 @ 10:30am | #21485
hello sir,
Its a lovely maaterial for the beginner but please can you in brief let me know the complete process and provide few more examples.
Thank you
Posted by Shilpa.N.k on Wednesday, 07.11.07 @ 16:39pm | #21087
i am new at struts. please provide a copy of the file struts-config.xml. some more explanation is required on how to deploy the application.
Posted by sumit on Wednesday, 07.4.07 @ 15:13pm | #20720
hello sir
iam a beginner in struts . what i want to know is there a seperate action class for every html form in the application?
because there is only one central action class in a strurts application , how does the control from different html forms go to the same action class, and how does the action class know from which html form the request parameters were generated and how to process the data.
Posted by poorns chandra on Tuesday, 06.12.07 @ 16:35pm | #18996
Thanks Very much for Providing such a nice Material.Really it is Very Good for Freshers like us.Kindly If Possible Please explain in Detail in Handling DataBase Problems Neatly.
Once againThank you very Much.
Posted by S.Siva Nagi Reddy on Thursday, 06.7.07 @ 10:25am | #18469
Hi,
I am in new for struts.
can u describe the all action class in struts.
Posted by senthil on Saturday, 06.2.07 @ 16:12pm | #18021
in compilation error is coming that cannot find the symbol of ActionForm
Posted by rashmiMehta on Wednesday, 05.16.07 @ 16:08pm | #16135
Hi
i want to know about types of actions in sturts.
What is the functionality of each struts action.
Posted by kiran kumar.E on Monday, 05.14.07 @ 20:33pm | #15877
hi i want know code of action classs
Posted by ychenna reddy on Saturday, 05.12.07 @ 17:40pm | #15743
its really good and easy tutorial for beginners to learn struts
Thanks a lot.
Posted by madhu on Thursday, 05.10.07 @ 23:17pm | #15602
this gave me an amazing feeling and control
Posted by Mudit on Wednesday, 05.9.07 @ 13:17pm | #15493
HI Ranjitha,
Please suggest the examples, we will try develop and add the examples suggested by you.
Thanks
Posted by Deepak Kumar on Thursday, 05.3.07 @ 22:50pm | #15232
its really good for the readers who r beginners to struts if some more examples are given then it will be more useful
thank you
Posted by Ranjitha on Thursday, 05.3.07 @ 17:22pm | #15219
i want struts all program cover with each topic
Posted by satish on Tuesday, 05.1.07 @ 15:46pm | #15127
Good Tutorial, Thanks
Posted by Suman on Friday, 04.20.07 @ 13:04pm | #14614
Hi this is sathish..I have got impressed with this tutorial..it is good way to learn structs... but the thing is here there are no much examples..so please give me some examples to master the struts..
Posted by sathish on Monday, 04.16.07 @ 15:40pm | #14328
Another cool thing about Action classes is that you can create a "super" action do to processing for every request. Or better yet, extend Struts RequestProcessor.
Posted by JavaDonkey on Monday, 04.16.07 @ 02:55am | #14275
A really good tutorial. Thanks for putting it for us.
Posted by Amit on Sunday, 04.15.07 @ 07:04am | #14200
Yes !!!!
This is the way to describe Struts....
Nothing is difficult only one must choose right
way. Information Till this page is very easy and
NICE...
Posted by sachin Misra LNCT on Thursday, 04.12.07 @ 13:54pm | #13949
Information given on this portal is nice than other portal ever seen.
Thanks a lot i am getting all concept easly.
Posted by adi on Thursday, 04.12.07 @ 11:55am | #13937
I wamt some of struts example programs for known about struts.
kindly send me those programs.
Posted by thota ravindrareddy on Thursday, 04.12.07 @ 10:50am | #13933
Hi,
This site is very useful for beginers.
My problem is, I am not able to validate the password(having Special characters) entered by user.
I am using Struts and form is created in tag.
I tried to put CDATA around submit button as well putting filter in Action file to convert the Special characters like "&" in "&".
But it did not help me, plz suggest something on it.
Thanks in advance..
Posted by Sheenu Bansal on Tuesday, 04.10.07 @ 13:39pm | #13707
what libraries i need to execute this example
and how can i add it (using eclipse)
Posted by mahmoud on Monday, 04.2.07 @ 15:01pm | #13190
This Page is Very Useful for me ,but i want developed one complete program and also strurcture . what are codes and files need for me to develop and run an structs program
Posted by R.sivaperumal on Friday, 03.30.07 @ 13:11pm | #12980
I have a question for you.I have a jsp page containing an html link.After clicking this link it should call the action class skipping the form class as i don't have to submit any data.This action class should populate the data in the next jsp page .Please help
Posted by Umadas on Friday, 03.30.07 @ 09:57am | #12966
This is very useful. However I'm having a slight problem in my testing, hope someone is interested enough to solve or pass on the enlightment.
I have written a test code. Wrote the java class, correct paths, correct action-mapping, and it works fine on my localhost! However, when I deploy it to my online web-server, it says page not found when calling countries.do. ?
Have I missed something? I have Tomcat 5.5.17 on localhost and 5.5.20 on Online server. Any input from anyone would be MUCH APPRECIATED. I have been stuck on this problem for a week. Thank.
Posted by Antar on Wednesday, 03.28.07 @ 13:30pm | #12835
The site is pretty good and decent but there are a lot of spelling mistakes on almost all the pages. Some more quality control should go in.
Posted by Dinesh Rathi on Wednesday, 03.28.07 @ 08:18am | #12823
hai
In this site chapter vise explanation is very good but examples are very very low and also examples are
very critical,u can must understand user want more examples so plz send me some fundamental programs on struts with jsp and also put in this site also.
"I want one thing without beans can i write struts programs".
Posted by Amala on Friday, 03.23.07 @ 17:25pm | #12567
Hi guys....
a decent site to learn struts...
thanks a lot...
ravi
Posted by ravi on Friday, 03.23.07 @ 11:45am | #12541
hi,
This is realy good for struts biginners.
Posted by Srinivasan on Thursday, 03.22.07 @ 10:13am | #12463
hi
i am beginear of struts pls send me the detail about struts and warfile structure of struts & also send sample web.xml,strutsconfic.xml file and send me how to work struts
by
prabakar
Posted by prabakar on Monday, 03.19.07 @ 17:42pm | #12186
Hi , very good explanation about Struts.
Thankyou very much for that.
I am working on a project which have 6 tabs in a form . can some one let me know the design for that using struts frame work.
Thx and Regards
Posted by sam on Tuesday, 03.13.07 @ 23:26pm | #11605
hi,
this is vijay i am searching job
i am not understanding how cen i improve in struts based applications
Posted by vijay on Monday, 03.12.07 @ 17:43pm | #11488
Found good site ......That will really help to understand the underlying functionality ....
One doubt....how Action class is part of model as it is just wrapper over the Buisness logic . This could be the part of Controller as ActionServlet use Action class as an interface to Buisness Logic.............
Posted by dnyanesh on Saturday, 03.3.07 @ 19:23pm | #10473
Hi,
Im new to struts.can you tell me how to create a simple struts application.please give me an example code for this
Posted by vinoth on Friday, 03.2.07 @ 11:32am | #10182
I am new to struts.by using which book i can study easily.
Posted by goldwin on Saturday, 02.24.07 @ 21:58pm | #9480
Its very excellent site for those who are new to Struts.
Posted by Ashwini Harshe on Friday, 02.23.07 @ 12:40pm | #8964
Very nice tutorial for beginners...
Thanks
IIT Kharagpur
Posted by Umesh on Monday, 02.19.07 @ 10:32am | #8359
its nice and use ful thaks
Posted by rajkumar on Monday, 02.19.07 @ 09:27am | #8353
it is good thanks to rose india
Posted by jayanta banerjee on Saturday, 02.17.07 @ 14:32pm | #8161
very useful for beginners...
Posted by Arunkarthikeyan on Thursday, 02.15.07 @ 09:43am | #7939
i foind it great in every respect.It is very useful for developers..
Posted by alok kumar gaur on Wednesday, 02.14.07 @ 11:53am | #7863
What is Action class?
Posted by Ravinder on Tuesday, 02.13.07 @ 16:37pm | #7744
i enjoyed the code .
Posted by mukund on Tuesday, 02.13.07 @ 12:59pm | #7717
it's very helpful...
Posted by kamaraj on Tuesday, 02.6.07 @ 17:57pm | #6423
it's very useful for beginneers........
Posted by kam on Tuesday, 02.6.07 @ 12:52pm | #6371
action class is a servlet or normal java class?
Posted by sathish on Saturday, 02.3.07 @ 11:22am | #5614
Hi,
This is good.
I got worthful information from this article.
Thank you
Posted by Naresh on Friday, 02.2.07 @ 17:58pm | #5470
Hi
I want to know about DynaAction form
and Messageresource.properties file and how to implement
Posted by Seetha on Thursday, 02.1.07 @ 17:42pm | #5225
Hi
This is Sailaja
I want to call an ejb from my struts Applicaion
how to write lookup where i should write
pls help
Posted by SailajaDevi on Thursday, 02.1.07 @ 17:38pm | #5224
It was helpful.
Posted by Abhishek Ghosh on Wednesday, 01.31.07 @ 18:45pm | #4946
Hi
I know nothing about struts. I can say that I am beginner to struts. I want to know hw to get started with struts(steps)
Posted by Girjesh Mishra on Monday, 01.29.07 @ 16:35pm | #4640
plz let me know how to use action class with ajax
thanx
Posted by mahesh kumar vyas on Wednesday, 01.24.07 @ 14:28pm | #4242
hi all,
i am new to struts and i want to know hw to get started with struts(steps).
thanks,
subhasish mohanty.
Posted by subhasish moahnty on Wednesday, 01.24.07 @ 00:22am | #4204
This is one of the best site for all tecknology oriented guy.I have got a valuabe information from here.
i need one application using struts framework i.e. i want to autogenerating the number automatically(eg: depends on action means inserting the data that many of times the sequence will be automatically generate the number sequencially) kindly im requesting
Posted by sandhya on Tuesday, 01.23.07 @ 04:06am | #4105
Hi!
Looks like a nice site..aint been here for long but I like it already. Really good site, and a pleasant surprise.
Posted by GRACE on Tuesday, 01.23.07 @ 00:46am | #4071
it is good to see all these queries regrading to struts
Posted by upendra on Thursday, 01.18.07 @ 14:34pm | #3755
This is one of the best site for all tecknology oriented guy.I have got a valuabe information from here.
Posted by Ram Awadhesh Pandit on Tuesday, 01.16.07 @ 14:12pm | #3614
i need one application using struts framework i.e. i want to autogenerating the number automatically(eg: depends on action means inserting the data that many of times the sequence will be automatically generate the number sequencially) kindly im requesting
regards
praveen
Posted by praveen on Tuesday, 01.9.07 @ 20:56pm | #3056
Struts tutorial from RoseIndia is wondefull and helped me al lot to learn sruts because i am new to struts.
Thanks RoseIndia
Posted by K on Monday, 01.8.07 @ 19:29pm | #2975
Hi
I have a prob regarding struts
My prob is I have a left navigation page which is defined in tiles-def.xml and the same page shows the list page which is forwarded from the action class.
how to check the page from the navigation to view the list.It is throwing an error that bean is not found to show the lists .am using logic:iterator to show the list page.
Posted by veena on Monday, 01.8.07 @ 13:15pm | #2933
Hi Nikhil,Gpatton,
Thank you very much for replying.
I m using tomcat5.9 andI could't find any servlet.jar in my /tomcat/common/lib directory.so for compiling the java files,i downloaded j2ee sdk/1.4 and declared the j2ee sdk/lib/j2ee.jar & /web-inf/lib/struts.jar in classpath.
and now the path to JAVA_HOME variable is the jdk directory inside j2ee sdk.
The application is running now.
Shilpa.
Posted by shilpa on Saturday, 01.6.07 @ 15:22pm | #2768
i have 4 to 5 search fileds in my jsp when i click on submit it should generate the report its fine...
when no searh is found it should go back to jsp and display no search found can u give me code wat to write in action class and jsp.....
Posted by roja on Friday, 01.5.07 @ 23:14pm | #2731
Hi Shilpa,
I had the same problem e.g.
package javax.servlet.http does not exist etc.
You need to add servlet.jar and the struts.jar to your classpath . The names of the jars vary but you'll find the servlet jar in tomcat /common/lib
and I found struts in /WEB-INF/lib/struts-core-1.3.5.jar
Hope this helps,
Geraldine
Posted by gpatton on Friday, 01.5.07 @ 22:58pm | #2729
Hi shilpa,
It is not possible to compile java programs that uses servlet classes with out seting the class path of server that you are using for servlet.
if you are using tomcat server,you can set classpath as shown
set classpath=.;C:\Program Files\tomcat\common\lib\servlet.jar
Thanks ,
Nikhil
Posted by Nikhil V G on Friday, 01.5.07 @ 12:20pm | #2673
hai shilpa ,
You should set the classpath of java servlet.jar .Otherwise u cant use servlet classess in ur program.If you are using tomcat server
set the classpath as shown below
set classpath=.;C:\Program Files\tomcat\common\lib\servlet.jar
Posted by Nikhil V G on Friday, 01.5.07 @ 11:13am | #2669
Hi,
I have some doubts regarding the topic described in this section.
I have java standard edition (buid 1.5.0_08-b03).
I tried compiling TestAction.java by typing
c:\java example>javac TestAction.java
in the command prompt.
But i was getting errors as no package found:
javax.servlet.http.HttpServletRequest etc. etc.
please help me to overcome this issue.
Thanks
Shilpa
Posted by shilpa on Thursday, 01.4.07 @ 12:56pm | #2618
Hi,
I am new to struts.Please somebody tell me how to compile this code.
Posted by suma on Wednesday, 01.3.07 @ 18:31pm | #2557
Hi,
All the above mentioned comment of the these web pages so far are really true.
1)Action class Is part of Model,If You want You Can Insert the Bisuness logic...
2)Action Class Is Bridge In View and Model layer..
3)
Posted by Suryapraskh R. on Tuesday, 12.26.06 @ 09:35am | #2020
Thanks Ashish,
I have updated the page. let me know if there is any mistake.
Posted by Deepak Kumar on Thursday, 12.21.06 @ 17:36pm | #1400
"The Action Class is part of the Model and is a wrapper around the business logic." - Wrong.
"The purpose of Action Class is to translate the HttpServletRequest to the business logic." - Wrong. "In the Action Class all the database/business processing are done. It is advisable to perform all the database related stuffs in the Action Class." - Wrong. Pls correct info on this page.
Posted by ashish on Thursday, 12.21.06 @ 15:56pm | #1393
Very user friendly..
This site is of great help for beginners .
Posted by Akilandeswari R on Thursday, 12.21.06 @ 15:14pm | #1392
Hi All,
All the above mentioned comments so far in these web pages so far are really true.
Thanks,
Siras
Posted by Siras chandra on Wednesday, 12.20.06 @ 14:18pm | #1323
Great job on the part of Rose India .net
Posted by Manoj Dubey on Tuesday, 12.19.06 @ 12:45pm | #1224
i thing,
it is very goods
Posted by vanphan on Tuesday, 12.19.06 @ 07:37am | #1213
Its very good even for beginners as well as for expert.. I learn a lot.. may i request to send as a zip file all stutcts and its link with hybernate part .
Posted by sudhir on Friday, 12.15.06 @ 16:23pm | #1070
From this page Action Class is specified to be a part of Model, but in real sense the Action Class is a part of Controller because it controls the flow of the action from the controller to the execution of the logic. The connections to the database is done by the business objects class throught a helper class taking care of the DML.
Posted by Ravi Varma G V on Thursday, 12.14.06 @ 17:16pm | #1029
Good Site
Posted by Jyothi on Saturday, 12.9.06 @ 12:51pm | #686
Good to start,but try to be in more detail.
Posted by praneeth on Friday, 12.8.06 @ 03:49am | #611
well its a good start but please tell more about struts in detail with good examples
Posted by shakun on Friday, 12.1.06 @ 17:07pm | #332
well its a good start but please tell more about struts in detail
Posted by shakun on Friday, 12.1.06 @ 17:03pm | #329
Conflict..
From the introduction...
Controller: Controller is intermediary between Model and View. Controller is responsible for receiving the request from client. Once request is received from client it executes the appropriate business logic from the Model and then produce the output to the user using the View component. ActionServlet, Action, ActionForm and struts-config.xml are the part of Controller.
From this page..
What is Action Class?
The Action Class is part of the Model and is a wrapper around the business logic.
Posted by Rodney on Tuesday, 11.28.06 @ 15:02pm | #174
What does the parameter attribute for a particular action mapping in struts config file do?
Posted by mahesh on Tuesday, 11.28.06 @ 10:31am | #167
yes, it's very simple & useful,but i need more information!!
Posted by kavitha on Monday, 11.27.06 @ 09:54am | #124