This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes Focussing text fields depending on ActionErrors in struts 1.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Focussing text fields depending on ActionErrors in struts 1.0" Watch "Focussing text fields depending on ActionErrors in struts 1.0" New topic
Author

Focussing text fields depending on ActionErrors in struts 1.0

sreenath reddy
Ranch Hand

Joined: Sep 21, 2003
Posts: 415
Hi
I have a problem while doing my project using struts 1.0 .I have a jsp with multiple text fields and I am validating the fields using serevrside validation by overiding the validate() method in my form bean and am displaying the errors using <htnl:errors/> and I need to focus to the particluar field depending up on the error?
How can I achieve this focusing of the fields using struts tags r any alternative way ? in 1.1 we have a way of doing by using <logic:messagesPresent> but in 1.0 we don�t have this ��.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

Moving to the Struts forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Focussing text fields depending on ActionErrors in struts 1.0