This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts 2 - eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 - eclipse" Watch "Struts 2 - eclipse" New topic

Struts 2 - eclipse

gnanesh viathur

Joined: May 13, 2008
Posts: 2
hi i am very new to struts2. As mentioned in the discussions( in this forum) i have imported struts2 blank . war. and installed wtp in ecllipse a project named x-work has been created in the eclipse. i am now not knowing how to proceed further like should build.xml is to be written where should the index page should be present where the java files and jsp pages are to be placed. in short i am not clear about the file structure to be used. can some one help me out with this issue by giving an example of how to proceed with struts2 in eclipse.


[ May 13, 2008: Message edited by: gnanesh viathur ]
[ May 13, 2008: Message edited by: gnanesh viathur ]
K Kiran Kumar
Ranch Hand

Joined: Jan 04, 2006
Posts: 109
Hi Gnanesh,

Please look into the following link:

You need to know the basic web app file structure. Check out the following link chapter2 for the file structure.

index.html can be anywhere but what is important is that you need to configure that in web.xml(Deployment descriptor) under welcome-file tag.

It is sorta covered in the JavaRanch Style Guide.
subject: Struts 2 - eclipse
Similar Threads
Struts2 + Hibernate + paging
Struts2 Validations problem
Struts2 nested iterators with listboxes
s:textfield struts2