Edward,
The anwser to your first question is because you aren't putting the values
of your attributes inside double quotes.
This is what you have: <input type="Submit"
name=<%=message[j]%> value=<%=message[j]%> >
This is what you need to do: <input type="Submit"
name="<%=message[j]%>" value="<%=message[j]%>" >
As for your question about setting the button size, as far as I know, the
size attribute doesn't apply to the input tag when the type=button. One of
the only ways I can think of achieving matching sized buttons is to make
sure all of the values of the 'value' attributes are the same size and use
a monospace font for the text in the button. I would tend to by doing this,
the buttons would look worse than if they were different sizes. Because the
default font is variable-spaced and different browsers use different fonts
by default, I think having same sized buttons will be very difficult, if
not impossible.
Regards,
Richard
At 09:58 AM 6/6/2002 +0800, you wrote:
> 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
><% String message[]; message=(String[])request.getAttribute("jsp");
>for(int j=0;j
>value=<%=message[j]%> > <% } %>
>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
___________________________________________________________________________
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