This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes i have a strange problem with this session Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "i have a strange problem with this session " Watch "i have a strange problem with this session " New topic
Author

i have a strange problem with this session

Shivaprasad P Kanaganahallimath
Ranch Hand

Joined: Sep 25, 2006
Posts: 48
Hi,


My problem is, in my application i have to display dynamic values for a drop down menu in jsp. so i am using an action class to do this and first time when i enter the application it gives me correct values.But when i enter the application for thwe second time it shows the previous values along with the same set of new values(I am using session object to pass these values,which are inside an arraylist from my action class to jsp).

example
1.First Attempt
i get drop down values
electronics
electrical
stationary

2.Second Attempt
i get
electronics -----repeated
electrical ------repeated
stationary ------repeated
electronics
electrical
stationary

i hope folks will give some good solution to this....


Shiva Prasad P.K.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
The answer is in this thread.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: i have a strange problem with this session
 
Similar Threads
How to avoid an action form to be in session
dependent select boxes with ajax .
Drop Downs
Help ...Dynamic Drop Down list
Drop down list value