Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Dynamic Web Project
Dynamic Web Project [message #1798593] Tue, 20 November 2018 17:58 Go to next message
Sadied 1940 is currently offline Sadied 1940Friend
Messages: 1
Registered: November 2018
Junior Member
Hi
im developing a dynamic web project in eclipse. i have some java classes
that access a database and they get the database url,database driver and
server from an inf file. Ive written a simple class that tests this and it
works fine, it retrieves the data from the inf file, accesses the database
and returns the data. The problem come when i try and fit this in with
some servlets and run it on apachi through eclipse. I have a html login
page, when user presses submit it sends data to a servlet which then calls
the database access methods in the java classes and depending on if the
input matches the database forward user to a successful/unsuccessful login
page. Now this works fine when i manually enter the url,driver etc into
the code but when i try it using the inf file i get errors. Do i need to
place the inf file in a particular directory e.g. WEB-INF so that it can
be accessed when it is run on the server?
Thanks
Re: Dynamic Web Project [message #1798594 is a reply to message #1798593] Tue, 20 November 2018 18:36 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

It helps to include any error messages you might be seeing. Otherwise, there's nothing to work off of for a solution.

_
Nitin Dahyabhai
Eclipse Web Tools Platform

[Updated on: Wed, 21 November 2018 09:12]

Report message to a moderator

Previous Topic:HTTP Status 404 - / The requested resource is not available
Next Topic:Sass/SCSS editor support (feature request)
Goto Forum:
  


Current Time: Fri Apr 26 13:06:23 GMT 2024

Powered by FUDForum. Page generated in 0.03070 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top