This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html buttons in struts

 
Andy Hahn
Ranch Hand
Posts: 225
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a single-page struts application that contains hyperlinks and two buttons.

I am dynamically creating the hyperlinks:



and the buttons are defined something like this:



My problem is that when I click on a link the URL in my browser is as I would expect, its parameterized, ex. www.mysite.com/page.do?submitAction=search&searchText=123. But when I click on a button, the page I see is non-parameterized, ex. www.mysite.com/page.do.

I would like to keep all urls paramterized so they can be indexed using search engines (I am also planning on using Apache web server for creating clean urls).

Andy advice?

Thanks!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64188
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using method="post" on your forms?
 
Andy Hahn
Ranch Hand
Posts: 225
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes i am.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic