File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes New to struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "New to struts" Watch "New to struts" New topic

New to struts

Honey Pandala

Joined: Oct 05, 2009
Posts: 2
Hi All,

I want to know the steps to deploy and run the simple application in tomcat 5.5 server, struts.

If anybody help me in this I am very much greatful to them.

I am unable to run the application.........

I have created folder structure like


index.jsp is the welcome page for me.

please tell me the url for this

if I run this application like


it is showing error like "description The requested resource (/Example/index.jsp) is not available".

Please suggest me on this.......

Swastik Dey

Joined: Jan 08, 2009
Posts: 1578

Your application folder name written is Example1, however in the mentioned url its example.

Honey Pandala

Joined: Oct 05, 2009
Posts: 2

As you said I modified in url still it is giving error as "requested resource is unavaible"

please help me in this.

thanks in advance
samir singha

Joined: Mar 17, 2008
Posts: 23
Where did you kept your index.jsp file? it should be inside the Examle1 folder and not inside the WEB-INF or its subfolder. The url localhost:8080/Example1/index.jsp will work if every other codes you have written correctly.
Ankit Garg

Joined: Aug 03, 2008
Posts: 9462

How is this problem related to struts?? I don't see any struts libraries or configuration files. You seem to be struggling with basics of web application. Please read a few tutorials or a book. You might be doing a lot of things wrong which might be hard to track. I don't see a web.xml in your directory structure, where did you put it?? Your directory structure is not very clear and hard to understand which files are in which folder...

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: New to struts
It's not a secret anymore!