This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Struts and the fly likes Packages in Struts 2 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 "Packages in Struts 2" Watch "Packages in Struts 2" New topic

Packages in Struts 2

Souvvik Basu
Ranch Hand

Joined: Apr 05, 2010
Posts: 96

I am currently reading 'Struts 2 in Action' to learn Struts....
I am stuck on packages.
I downloaded the source code from the site. But I could find no package named 'chapterThreeSecure', something they talk of in chapter 3 while teaching Packages.
Is package a logical concept in Struts 2??

Can anyone please help me?

OCJP 6.0
Joe Ess

Joined: Oct 29, 2001
Posts: 9191

Souvvik Basu wrote:
Is package a logical concept in Struts 2??

Packages are built into the Java language.
I don't have the book, so I don't know what examples you are looking at. I can confirm that there is no package chapterThreeSecure in the examples.

[How To Ask Questions On JavaRanch]
Souvvik Basu
Ranch Hand

Joined: Apr 05, 2010
Posts: 96

Thanks for your help Joe. Yes, there is no package in the downloaded source code called chapterThreeSecure. In that case, can you kindly explain this part of the chapter Three xml file?

I have the source code in front of me, and I can find no folder called chapterThreeSecure or chapterThreePublic

I have attached the folder structure's screenshot. Please let me know what you think of chapterThreeSecure or chapterThreePublic

[Thumbnail for FolderStructure.jpg]

I agree. Here's the link:
subject: Packages in Struts 2
It's not a secret anymore!