wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 1447
    
    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: 9291
    
  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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: New to struts
 
Similar Threads
Can I connect to Vc++ from my struts2 application.
Setup application running in Jboss 4.0.0 to WAS 6.0
Can we run jboss other than 8080 port
exception in my application with tomcat 5.0
Struts 2 and JDBC