Get a server running locally to run a Struts app

  • #1
DaveC426913
Gold Member
19,153
2,663
I need to get a server running locally so I can run my 'Hello World' Java Web app.

http://benmira.free.fr/en/j2ee/struts1.htm" [Broken] I'm using. Unless I misunderstand, all I really need to do is copy all the code into flat files with the appropriate filenames - and then compile it with Ant.

But how do I run it? At some point I'll need to call http : //localhost:8080/hello/HelloWorld


To compile I'm going to need access to servlet.jar. A search of my drive shows nothing except associated with the Eclipse editor, yet I've got java rle and java sdk installed. I'm obviously missing some component.
 
Last edited by a moderator:

Answers and Replies

  • #2
161
0
Well if nothing else you should be able to produce a war file. War is like a jar but suited for deploying on a web server. You put the war in the auto-deploy directory of the server, and when the Tomact or whatever Java server you have running it will deploy the web app from the war. Then you can access it. I would advise you to first make a simple JSP(Java Server Pages) appliaction and then go with Struts or some other web framework.
 

Related Threads on Get a server running locally to run a Struts app

  • Last Post
Replies
6
Views
5K
  • Last Post
Replies
1
Views
580
  • Last Post
Replies
3
Views
17K
  • Last Post
Replies
0
Views
3K
  • Last Post
Replies
4
Views
2K
  • Last Post
Replies
3
Views
1K
  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
7
Views
2K
  • Last Post
Replies
11
Views
2K
  • Last Post
Replies
23
Views
374
Top