THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- <sys:dependency>- The dependency element is to suggest the dependency of the application on the database pool. In our case we have jdbc/userds as a dependency module.
- <nam:resource-ref>- This element is used to map the JDBC connenction pool with a user defined name. In our case we have mapped jdbc%2Fuserds with jdbc/userds.
Deploy and Run
- Start the server within Eclipse.
- Right click on WebJDBC project and select run on server.
- Once done the application will be deployed on the server.
- Launch the application with the following link http://localhost:8080/WebJDBC/
- Fill up the form with the a image location and name. The same name will be used while populating the database with the image data. Select Submit once done.
- If your image is successfully inserted into the database you will get a Congratulation message.
- To retrieve an image from the database launch the following portlet http://localhost:8080/WebJDBC/ImageDownload.jsp. Select submit once done.
- This will display the image in the browser