No, it does not work, I don't know why :
<%=request.getParameter("ipaddress")%> byitself works

but it does not work inside input as a value like here :
<input type="text" style="background-color: #ffcccc"  size="45"
name="ipaddress" value='<%=request.getParameter("ipaddress")%>'>Reenter IP
Address<br>

Thanks


>From: "Sachin S. Khanna" <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
>reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: simple question please
>Date: Mon, 4 Feb 2002 23:35:04 +0530
>
>Try putting quotes around like
>value="<%=request.getParameter("ipaddress")%>">
>Hope that helps.
>Have a nice day.
>With regards,
>Sachin S. Khanna
>http://www.emailanorder.com
>
>----- Original Message -----
>From: sufi malak <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Monday, February 04, 2002 9:53 PM
>Subject: simple question please
>
>
> > HI, I have a form, I want if this form is not processed, the fields
>missing
> > change the color ( this is done using style html), but I don't know why
>the
> > other fields entered have gone, here is the form :
> >
> > <form method="POST" action="add.jsp">
> > <table border="0" cellpadding="4" width="90%">
> > <tr>
> > <td valign="top" bgcolor="#AFD0D1" color="red"><font size="1"
> > face="arial,helvetica"><b>Please
> > add a new entry, don't leave any field empty</b></font></td>
> >
> > </tr>
> > <tr>
> > <td valign="top" bgcolor="#FFCC66"><font size="2"
> > face="Verdana"><b></b></font></td>
> > </tr>
> > <tr>
> > <%=request.getParameter("ipaddress")%>
> > <td valign="top" bgcolor="#CCCCCC">
> > <font size="2" face="arial,helvetica">
> > <% if (!("".equals(ipaddress))) { %>
> > <input type="text" size="45" name="ipaddress">IP Address<br>
> > <% } else { %>
> > <input type="text" style="background-color: #ffcccc"  size="45"
> > name="ipaddress" value=<%=request.getParameter("ipaddress")%>>Reenter IP
> > Address<br>
> > <% } %>
> > ....
> > </form>
> >
> > My question why this line <%=request.getParameter("ipaddress")%>
> > works, and this :
> > <input type="text" style="background-color: #ffcccc"  size="45"
> > name="ipaddress" value=<%=request.getParameter("ipaddress")%>>Reenter IP
> > Address<br>
> > does not
> >
> > Thanks
> >
> >
> > _________________________________________________________________
> > Chat with friends online, try MSN Messenger: http://messenger.msn.com
> >
> >
>===========================================================================
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://archives.java.sun.com/jsp-interest.html
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> >  http://www.jguru.com/faq/index.jsp
> >  http://www.jspinsider.com
> >
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com




_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to