473,805 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Dynamic Photo Album using JSP

Hey all,

I'm not too sure if this is the right place to post my question - or if
I should go to a JSP group. Anyway here is my question.

I am looking at finding/ making an online dynamic photo album which
uses JSP. I've seen a lot of examples using PHP and a few online
albums using Javascript, however those albums using JavaScript are not
dynamic - the images are hard coded.

My scenario is this, we have about 6 different events with about 150
photos each. What I would like to happen is to be able to have a index
page which lists 10 photos each, and when you click on the photo to be
taken to a secondary page with a larger image. I would like to do this
without needing to create 150 dependant pages.

I understand that we will be looking at using server side technology.
As our pages already use JSP we don't want to add a second server side
language (PHP, Pearl etc...) to the equation.

So does anyone know of a script that may already do this?

If not, I am happy to start working my own script. However I am not to
familiar with JSP - though I used to do a fair bit of ASP using VB
Script. What I would like is to be pointed into a page that will show
me how to create an array with a list of filenames in a given directory
(using a Site relative path). From there I should be right, but I
can't seem to find any references to how this can be done using
Javascript or JSP.

If anyone can help me I would greatly appreciate it.

Regards
Linda

Jan 25 '06 #1
2 3201
Linda wrote:
I'm not too sure if this is the right place to post my question - or if
I should go to a JSP group. Anyway here is my question.


JavaScript and Java Server Pages have four things in common - The letters
"J", "A", "V" and "A". So this is the wrong place to ask.

--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jan 25 '06 #2
Linda wrote:
Hey all,

I'm not too sure if this is the right place to post my question - or if
I should go to a JSP group. Anyway here is my question.

I am looking at finding/ making an online dynamic photo album which
uses JSP. I've seen a lot of examples using PHP and a few online
albums using Javascript, however those albums using JavaScript are not
dynamic - the images are hard coded.

My scenario is this, we have about 6 different events with about 150
photos each. What I would like to happen is to be able to have a index
page which lists 10 photos each, and when you click on the photo to be
taken to a secondary page with a larger image. I would like to do this
without needing to create 150 dependant pages.

I understand that we will be looking at using server side technology.
As our pages already use JSP we don't want to add a second server side
language (PHP, Pearl etc...) to the equation.

So does anyone know of a script that may already do this?


JavaScript is not the best solution here, keep it all on the server.

[...]
--
Rob
Jan 25 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3010
by: Nick | last post by:
I am building a photo album webpage and am not sure exactly how I should organize the database. Here's where Im at so far... I have one table called 'images' which contains the columns 'albumID', 'url', 'title', and 'description'. Then another table called 'albums' which contains the column 'name'. The part where I am having the most trouble is the 'images.albumID' column. Some photos should be placed in mutliple albums, so should the...
4
1476
by: .: DeVa :. | last post by:
Need recomendation for script that would dynamicly create thumbnails from pictures in certain directory, and automaticly genreate link to original pictures... Tuts are also welcom... TNX. ------ www.podvodni-svijet.com
34
7660
by: Ian Rastall | last post by:
I'm doing a small project right now where I create a table from a database. This is the code, which Dreamweaver, for the most part, has written: *** <?php mysql_select_db($database_tdream, $tdream); $query_rstdream = "SELECT * FROM albums ORDER BY `year` ASC"; $rstdream = mysql_query($query_rstdream, $tdream) or die
3
2145
by: frizzle | last post by:
Hi there, I've posted the following question elsewhere, but got no response, and there seems to be no special htaccess-group, so i took the liberty to post it here. Hope y'all dont mind. I have a site with a photo album on it. Albums are stored in a MySQL db. I use a site with a standard layout, with
5
6584
by: Joseph Ellis | last post by:
Hello all. I have a family website that I have been maintaining for the past year and a half or so. It includes a photo album that has grown quite large. So far I've displayed the photo album using frames, with thumbnails on the left side of the screen and full-size images displayed on the right. But now I'm sick of frames and I'd like to use javascript to make the whole shebang cleaner and tighter. I'd like to use a table,...
5
4323
by: fraser | last post by:
Hi, I have a photo gallery with cat photos here http://mouserspage.cjb.net From the beginning, I have been making each page of thumbnails, with a separate page for each photo, entirely in plain html. Since the number of photos I have has increased greatly, it becomes a long and tedious process to go through all the pages to edit the links (to newly added pages) and add in the new pages etc...
1
1680
by: eldridge.brian | last post by:
I am very new to php, but eagerly picking it up. Thanks in advance for any assistance. I have a site I am working on that uses "PHP frames" - url is like http://www.xyz.com/home.php?page=photo inside home.php are several case statements that then tell the webserver which page to load. I have been trying to create small 7 picture photo album in file photo.php. I want to have the thumbs appear at the top, then the main image in the...
2
3176
by: David Griffiths | last post by:
Hi All Using VB 2005 I have been tasked with creating simple Photo Album page on our local intranet server that can display Thumbnails and then the full picture once the thumbnail is clicked in a new window, if the full picture is open I would like to be able to move forward or backwards through the pictures without returning to the thumbnails.
1
1312
by: w33d5 | last post by:
I'm looking for a little help in making an index file to read the subdirectories in the same folder and display the links in a table. i am loading photo galleries using google's picasa onto my host and since picasa exports the albums as folders (I am using a simpleviewer template) i would like to use a script to read the subdirectories in the \photos directory (where the index file would also be located) and display the folders in a clean...
0
9716
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10607
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10359
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10364
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10104
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9182
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6875
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5677
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3843
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.