This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Another struts buttons question..." Watch "Another struts buttons question..." New topic
Author

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?

Thanks!
 
 
subject: Another struts buttons question...
 
Similar Threads
hitting the enter on the keyBoard should default to "YES" button on the html/jsp page
Struts2 newB: some simple questions
JSP Help-simple question
Multiple forms in Struts
2 submit buttons with different action