wood burning stoves 2.0*
The moose likes JSP and the fly likes Need to show list of products with the image and specification on the jsp page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "Need to show list of products with the image and specification on the jsp page" Watch "Need to show list of products with the image and specification on the jsp page" New topic
Author

Need to show list of products with the image and specification on the jsp page

Shikhar Vasisht
Greenhorn

Joined: Jul 24, 2011
Posts: 9
Hi,

I have a requirement of showing a list of products with the image and specification on the jsp page. I will use pagination to show 10 products per page.

My problem is that i dnt know how to display images. In the backend i am willing to upload image and specification in database table and at the run time i want them to be displayed on the jsp page.

I have attached one image file which will show how i want the image and specification of the products on the jsp page.

Please guide.

Thnaks !



[Thumbnail for image_example.png]

Jagadeeswara Yaramala
Ranch Hand

Joined: Jul 28, 2010
Posts: 46
My problem is that i dnt know how to display images


If image display on the jsp page is a problem, this link should help.

If pagination to display 10 items per page is the problem, then build pagination with the proper "href" tags giving query parameters. Also, you can explore more on pagination on this help link.

HTH
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61310
    
  66

Except, of course, that Java scriptlets should never be used on modern JSP pages.

The first thing to do, is to write the HTML and CSS (and possible any JavaScript) that makes the page looks like you want it to. Only then are you ready to tr=urn it into a JSP that provides the dynamic portions of the page via the JSTL and EL.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
GeeCON Prague 2014
 
subject: Need to show list of products with the image and specification on the jsp page