This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Another struts buttons question...

 
Gezza Hall
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic