• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

New to struts

 
Honey Pandala
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1603
5
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your application folder name written is Example1, however in the mentioned url its example.
 
Honey Pandala
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9519
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic