title: how to rewrite the url in Struts application
body: <p>i'm using Struts 1.3 and Tiles framework,
  i have a home page url like this</p>
  
  <pre><code>http://localhost:8080/TDS_PRO/ 
  </code></pre>
  
  <p>later i can click any of my link button..
  if i click <code>insert</code> link </p>
  
  <p><code>http://localhost:8080/TDS_PRO/MainMenu.html?method=Insert</code> it will insert the data and displays all data as a result page</p>
  
  <p>problem is when i refresh the page previous link is goes to the server and trying to insert same record but in my table <code>primary constraint</code> is there so it will generate <code>Exception</code> and displaying that <code>Exception in JSp page</code>..</p>
  
  <p>if i set <code>Action</code> <code>scope</code> is <code>Request</code> then that link goes to <code>Action class</code> and Generating <code>Null Pointer Exception</code></p>
  
  <p>how to solve this problem...???</p>
  
  <p>give some ideas.. </p>