File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes html buttons in struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html buttons in struts" Watch "html buttons in struts" New topic
Author

html buttons in struts

Andy Hahn
Ranch Hand

Joined: Aug 31, 2004
Posts: 225
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

Joined: Jan 10, 2002
Posts: 60062
    
  65

Are you using method="post" on your forms?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Andy Hahn
Ranch Hand

Joined: Aug 31, 2004
Posts: 225
yes i am.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: html buttons in struts
 
Similar Threads
buttons do not work in netscape4.7
JSP Action Buttons freez after returning from ajax call
XML XSL and hyperlink
retreaving the value in servlet which is set in session in a jsp page
Link with html:param retrieved from localized properties