Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General 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