permaculture playing cards
The moose likes Struts and the fly likes Another struts buttons question... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Another struts buttons question..." Watch "Another struts buttons question..." New topic

Another struts buttons question...

Gezza Hall
Ranch Hand

Joined: Jan 04, 2005
Posts: 33
Hello. I have a typical struts form, except that there are two buttons at the bottom - one goes back to the previous page, and the other goes to the next page. These buttons are images, and hence represented by ImageButtonBean objects.

I want to change the default behaviour of the form. If I hit 'Enter' while in one of the form text fields, the form acts as if the first button (back) was pressed - but I want to to think the second button (forward) was pressed.

Does anyone know a way I can achieve this, whether it be struts or html?

I agree. Here's the link:
subject: Another struts buttons question...
It's not a secret anymore!