I deliver String[] into a JSP from a servlet,but JSP can't fully display String[],it
only partly display String[].
//Servlet
String[] ee=new String[3]{"Hello world","Bike","Computer World"};
request.setAttribute("jsp",ee);
getServletConfig().getServletContext().getRequestDispatcher
("/jsp/menu.jsp").forward(request,response);
//JSP
<html>
<title>User Menu</title>
<body>
<%
String message[];
message=(String[])request.getAttribute("jsp");
for(int j=0;j<message.length;j++)
{
%>
<br>
<input type="Submit" name=<%=message[j]%> value=<%=message[j]%> >
<%
}
%>
</body>
</html>
When I deliver String[] into JSP,I got show:
Hello
Bike
World
Why it can't full String[]?
I have another question,I found three button have different size,I want to make them
with same size,for example size=20 and make three button in the center of screen.And
when click "Hello world" button,this page will redirect into another html page,for
example http://192.168.2.48/welcome.html How to realize it?
Thanks in advance!
Edward
___________________________________________________________________________
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