• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help needed for servlet javascript interaction in Eclipse juno

 
Joe McTigue
Ranch Hand
Posts: 64
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm rather new to front end work and i am in the middle of developing a personal servlet database driven website using the following:
1.) Eclipse Juno "java EE IDE"
2.) Tomcat server
3.) MySql
4.) Java version 6

First off, the last time I worked with web pages (front end) they didn't have things like JQuery or Ajax.
So, I'm a little lost as to where I am supose to place my server side javascript files to be used in my servlets.
Any suggestions would be awesomely appreciated.

Regards,
Joe
 
Paul Clapham
Sheriff
Pie
Posts: 20164
24
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to put them in a place where they can be downloaded from your server. So the usual thing to do is to put them in the same place you're putting your HTML files and your images and your CSS files. If you want to put them in a special subdirectory named something like "js", that's all right too.

If you're asking where to put them in your Eclipse project so that they end up in the right place when you export your web application, that's a question about Eclipse and not about web applications. If that's the case then let us know and a moderator will move the post to the IDEs forum.
 
Joe McTigue
Ranch Hand
Posts: 64
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Paul, I appreciate your post.
You're right, I really need to find out where to put them within my Eclipse IDE.
I'll need this question moved to the IDE forum.
Thanks again.
 
Joe McTigue
Ranch Hand
Posts: 64
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can't seem to find the IDE Forum...
Moderator, can you help?

-Joe
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I assume that you created a Dynamic Web Project in Eclipse. If you did, then there is a WebContent directory. Your .js files go in there. (That's also where your JSP, HTML and CSS files should be, so the advice Paul gave applies.)
 
Joe McTigue
Ranch Hand
Posts: 64
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the tip, much appreciated.
You can close this question at this time. :-)
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic