Thanks a lot for the answer. :-)
Now i have another doubt.
Iam pulling the details of the product from a database and from there iam sending it another page.
Wat i did
is stored the contents in a
string and have transferred it using hidden form fields.Since the product name is having spaces,iam unable to get the entire name of the product.how can i do it?
Sorce Code:
while(rs.next())
{
%>
<%
int i=rs.getInt("ProductID");
String j=i+"";
String x=rs.getString("WineName");
float y=rs.getFloat("Price");
%>
<TR>
<TD><%=x%></td>
<td><%=y%></td>
<td>
<form name=CartItem method="POST" ACTION="ShoppingCart.jsp" TARGET="tempwindow">
<select name=CartItem>
<%
for(int k=0;k<9;k++)
{
%>
<option name=<%=k %>><%=k %></option>
<% } %>
</select>
</td>
<input type=hidden name="WineName" value=<%=x%>>
<input type=hidden name="Price" value=<%=y%>>
<input type=hidden size="40" name="ProductID" value=<%=j%>>
<td><input type="submit" value="Buy"></td>
</form>
Pls help me
Regards
Chari