In my doGet method of my servlet I have created a List of messages. The code
follows:

   //Declare and Initialize String array with messages
   private String values[] = { "Message1", "Message2",
                               "Message3","Message4", "Message5" };

  private List list; //Declares a List reference called list

   // initialize List and set value at first location [Index 0]
   public UsingAsList()
   {
      list = Arrays.asList( values );  // Static method to get a fixed-size
List
      list.set( 0, "Message1" );  // change a value
   }

Question:  How do I display each message on a different page using a index
parameter passed to the servlet?

My servelet name is MessageServlet and my URL to my Tomcat 4.0 Web Server
is:
http://localhost:8080/myservlets/MessageServlet





Melvin
[EMAIL PROTECTED]

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to