E>   I deliver String[] into a JSP from a servlet,but JSP can't fully display 
String[],it only partly display String[].
E> //Servlet
E> String[] ee=new String[3]{"Hello world","Bike","Computer World"};
E> request.setAttribute("jsp",ee);
E> getServletConfig().getServletContext().getRequestDispatcher
E>            ("/jsp/menu.jsp").forward(request,response);
E> //JSP
E> <html>
E> <title>User Menu</title>
E> <body>
E>    <%
E>    String message[];
E>    message=(String[])request.getAttribute("jsp");
E>    for(int j=0;j<message.length;j++)
E>    {
E>    %>
E>      <br>
E>      <input type="Submit" name=<%=message[j]%>  value=<%=message[j]%> >

try this code ;-)

        <input type="Submit" name="<%=message[j]%>" value="<%=message[j]%>" >



E>    <%
E>    }
E>    %>
E> </body>
E> </html>

--
Best regards,
 Yuriy

___________________________________________________________________________
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