Announcement Announcement Module
No announcement yet.
Request Value getting retained :( Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Request Value getting retained :(

    I use a simple web application that uses struts2 (view)- tiles (view) - Spring - Hibernate.
    It is working fine. I have a strange behaviour explained below.

    1. Consider I have form. I fill up the text boxes, select boxes and press Submit. The values are getting displayed. Perfect!
    2. If I go to any other page and coming to the previous page again. The old values given are still retained by default and results are displayed as per the earlier selection.
    3. This condition became worse when I have a try to insert records being fetched in the form. The records are getting duplicated with incremented IDs in database.

    <action name="comparisonAction" class="comparisonAction">
                <result name="SUCCESS" type="tiles">comparison</result>
    spring context

    HTML Code:
    <bean id="comparisonAction" class="com.grassfield.lic.view.ComparisonAction">
    		<property name="licService" ref="licService" />
    Hope I am clear to you. Do you know what could be causing this issue?

    Thanks in advance