aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Help needed for servlet javascript interaction in Eclipse juno Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Help needed for servlet javascript interaction in Eclipse juno" Watch "Help needed for servlet javascript interaction in Eclipse juno" New topic
Author

Help needed for servlet javascript interaction in Eclipse juno

Joe McTigue
Ranch Hand

Joined: Mar 05, 2012
Posts: 52
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
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

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

Joined: Mar 05, 2012
Posts: 52
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

Joined: Mar 05, 2012
Posts: 52
I can't seem to find the IDE Forum...
Moderator, can you help?

-Joe
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

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.)


JBoss In Action
Joe McTigue
Ranch Hand

Joined: Mar 05, 2012
Posts: 52
Thanks for the tip, much appreciated.
You can close this question at this time. :-)
 
Consider Paul's rocket mass heater.
 
subject: Help needed for servlet javascript interaction in Eclipse juno