File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Struts example Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts example" Watch "Struts example" New topic

Struts example

Mandy Smith
Ranch Hand

Joined: Jun 26, 2001
Posts: 62
I am pretty new to this struts stuff. I have to try out some struts example first to understand how it works. Can somebody provide me with some details regarding this. Details such as what to add in jsp file, file, config file entry, etc.,
Any link to try out some struts example would be great.
Appreciate your help.
Matthew Phillips
Ranch Hand

Joined: Mar 09, 2001
Posts: 2676
I recommend this article by our very own Thomas Paul.

Matthew Phillips
John Godwin

Joined: Aug 24, 2001
Posts: 3
Hello Mandy,
I read through the book "Professional JSP 2nd Edition", which provide lots of examples and good explanations on JSP.
Chapter 21 gives an example of using Struts and provides a shopping cart implementation. Download the example application from
The example does not implement a persistent layer, which I am interested in doing. If anyone can provide a Strut example which provides a persistent layer to mysql, I would very much appreciate it.
John Godwin
Axel Janssen
Ranch Hand

Joined: Jan 08, 2001
Posts: 2164
Currently you can download beta-chapters of a not yet published O'Reilly struts-book from
Don't know if the source code is yet accessible, but the chapters seems to be really good.
[ June 27, 2002: Message edited by: Axel Janssen ]
Jes Sie
Ranch Hand

Joined: Jul 24, 2001
Posts: 188
Lotsa examples here...

Thank you.<br /> <br />- Jess Sie<br /> <a href="" rel="nofollow"></a>
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17421

Should I add my own a gratutitous self-plug?
This is more a lightweight lead-in to show the high points (When I first got into Struts, all I could see was trees, and I wanted forest!).
What might be especially useful, however, is that the bare-bones Struts app described there is running at
AND it's annotated, so you can click on the links down at the bottom of each page to view the components that were involved in the creation and display of the page.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Struts example
It's not a secret anymore!