wood burning stoves 2.0*
The moose likes Servlets and the fly likes problem in jsp Add rotator? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "problem in jsp Add rotator?" Watch "problem in jsp Add rotator?" New topic
Author

problem in jsp Add rotator?

NIRANJAN RAILKAR
Greenhorn

Joined: Mar 26, 2001
Posts: 5
Hi
As there is Addrotator component in Asp is there any facility in jsp, if not what can be done?
Phil Hanna
Ranch Hand

Joined: Apr 05, 2001
Posts: 118
Maybe if you defined Addrotator people would have some idea what you mean.
------------------
Phil Hanna
Sun Certified Programmer for the Java 2 Platform
Author of :
JSP: The Complete Reference
Instant Java Servlets
Website: http://www.philhanna.com


Phil Hanna<BR>Sun Certified Programmer for the Java 2 Platform<BR>Author of :<BR><A HREF="http://www.amazon.com/exec/obidos/ASIN/0072127686/electricporkchop/107-3548162-1137317" TARGET=_blank rel="nofollow">JSP: The Complete Reference</A><BR><A HREF="http://www.amazon.com/exec/obidos/ASIN/0072124253/electricporkchop/107-3548162-1137317" TARGET=_blank rel="nofollow">Instant Java Servlets</A>
Jayson Falkner
Author
Ranch Hand

Joined: May 07, 2001
Posts: 57
Originally posted by NIRANJAN RAILKAR:
Hi
As there is Addrotator component in Asp is there any facility in jsp, if not what can be done?

No there is not default support for what is normally called an 'Ad rotator' in JSP. You can read what the JSP specifications support if you are curious.
To solve this problem you can always build the software yourself. If you can program it in Java you are set. Else check out JSP Insider and JSPin to search around for pre-built ones.
Jayson Falkner
V.P./CTO, Amberjack Software LLC
Jayson@jspinsider.com
www.jspinsider.com


Jayson Falkner<br />jayson@jspinsider.com<br />Author of <a href="http://www.jspbook.com" target="_blank" rel="nofollow">Servlets and JavaServer Pages; the J2EE Web Tier</a>
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
An Ad Rotator would make a great custom taglib, or you could just do it as a JavaBean with application scope.
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Originally posted by NIRANJAN RAILKAR:
Hi
As there is Addrotator component in Asp is there any facility in jsp, if not what can be done?

I had to face the similar problem a few weeks back. What I did was create a String array (myPictures[])that contains a list of jpg files I wanted to display, say 20 of them, then write a random generator that returns a int value (i) between 0 and 19, then myPictures[i] is the one to display.
Hope this helps.
Kin
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: problem in jsp Add rotator?
 
Similar Threads
WA #1.....word association
Struts: No getter method for property name problem
creating a pop up calendar within a form
what is defalut value of Custom tag body-content
pop up page