1

i am passing many params from controller to page on post back. so url looks horrible like-

http://localhost:8080/GryphonMonitor/load/getData?pageName=xref&dataGroup1=2&dbName=&dataGroup=2&tableCombo=tbl_AreaCodeListings&columns=ABBR&columnValue=&columns2=ABBR&columnValue2=&columns3=ABBR&columnValue3=

how to show only http://localhost:8080/GryphonMonitor/load/getData and hide rest of details?

thanks

sana
  • 460
  • 1
  • 10
  • 25

2 Answers2

3

Use the POST method instead. URL rewriting will not allow you to silently pass parameters, you would still need to somehow pass those through the URL.

jeremyharris
  • 7,884
  • 22
  • 31
  • well, i am using which uses method "post" – sana Mar 30 '12 at 13:17
  • Then you should POST those vars (pageName, dataGroup, etc) to your URL instead of sending them as GET vars (after the `?`). POSTing them will hide them from the URL and you can access them via the server. – jeremyharris Apr 02 '12 at 14:47
0

use "forward" instead of redirect :

forward(action: "home", params: params)
Ahmed Laatabi
  • 907
  • 1
  • 8
  • 21