Hi,

Probably your bean in session scope or application scope and it is
maintaining state from previous page. You ca do two things here; either
make the string empty (before assigning the value) in set method or
reinstantiate your bean.

Mohan

-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED] On Behalf Of Rajesh Viswanathan XX
(XX/PAC)
Sent: Wednesday, April 28, 2004 1:49 PM
To: [EMAIL PROTECTED]
Subject: refreshing the request

Hi
        I have a list box in a page.I selected some items and navigated
to the next page.But here I come to know i shouldnt have selected those
items which I did it in the previous page.When I navigate back an
deselect them and proceed further I still found those items in the
request which I deselected them.I came to know about these when I tried
to print in the set method of the bean related to that page.The debug
statement shows still the listbox have parameters to it  as a string  of
size one seperated by comma ie( String x="ABC,DEF,GHI") where ABC,DEF
ans GHI are the items which are selected by mistake in the list box.I am
novicer in JSP please give me a detail explanation how to get rid of
these.
Thanks
Rajesh

========================================================================
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 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 archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

Reply via email to