GeeCON Prague 2014*
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
Author

New to struts

Honey Pandala
Greenhorn

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

tomcat5.5
webapps
Example1
WEB-INF
classes
lib
helloworld.jsp
index.jsp

index.jsp is the welcome page for me.

please tell me the url for this

if I run this application like

http://localhost:8080/Example/index.jsp

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

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

Cheers,
Honey
Swastik Dey
Rancher

Joined: Jan 08, 2009
Posts: 1477
    
    6

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


Swastik
Honey Pandala
Greenhorn

Joined: Oct 05, 2009
Posts: 2
Hi,

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
Greenhorn

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
Sheriff

Joined: Aug 03, 2008
Posts: 9303
    
  17

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
 
GeeCON Prague 2014
 
subject: New to struts