• Post Reply Bookmark Topic Watch Topic
  • New Topic

compile & run  RSS feed

 
marco ries
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am a noob in using jsp, i want to ask if i want to create 2 jsp file and 1 java file (to process the input from the jsp file, can i use normal notepad (do i need the web.xml to link all those files?)? if i am using eclipse, how can i set the web-inf folder and what should i put in there?

Thank you all in advance for helping.

Best regards,

Marco
[ May 19, 2007: Message edited by: Bear Bibeault ]
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSP and Java files are regulaar text files, so yes, you can use notepad. An IDE like Eclipse is not required.

You will need a web.xml file for each web app. At a minimum it will list the servlet you're using and the URL it's mapped to (I'm assuming that you're talking about a servlet where you say "Java file"). The web.xml file goes into the WEB-INF directory (capitalization is important).

Whether or not you use Eclipse makes no difference in that regard. Since you're a beginner, I'd advise not to use an IDE. They have their own learning curve, and at the beginning tend to complicate things instead of making them easier.
 
marco ries
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Mr. Dittmer,

Thank you for the reply, i just want to ask some more, do i have to create the WEB-INF folder my self or i have to do some setting in the eclipse? And if you don't mind, I want to ask some sample of the web.xml file, because I don't know anything about it. I am really a noob in using this. I need this things for complishing my thesis work.
Thank you in advance.

Regards,

Marco
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have no idea what Eclipse does, so I can't help in that regard.

I'd suggest to install a servlet container that's independent of any IDE. Tomcat is an ever popular choice, and its version 5.5 is rock solid. It also comes with a number of example web apps, servlets and JSP files preinstalled that should get you started quickly. Its documentation has an extensive section on how web apps are structured under #3: First webapp.
 
Praveen Reddy
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
there is no need for you to create WEB-INF folder separately it will be automatically created for you when you when you select Web Project.
I hope the following link help you Click Here
 
marco ries
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you all for the reply, I have already installed tomcat. What else do i need to have those pages linked/connected? and if i am using NLP (natural language processing) in the java file, do i need to install extra library for that?

Thank you

marco
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!