473,395 Members | 1,941 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Struts question textbox tab focus

karthickkuchanur
156 100+
Hai all,
Iam learning struts,while in my login page i use two textbox and an submit button,my problem is when i click the tab key it focus to textbox1 and second time it focus textbox2,when press third time it focus to url path in browser,can you please tell how can make to focus the button,why iam asking this is i am force to use the mouse to click the button.

Thanks
Regards
Karthick
Jan 14 '08 #1
3 4703
rsrinivasan
221 100+
Hai all,
Iam learning struts,while in my login page i use two textbox and an submit button,my problem is when i click the tab key it focus to textbox1 and second time it focus textbox2,when press third time it focus to url path in browser,can you please tell how can make to focus the button,why iam asking this is i am force to use the mouse to click the button.

Thanks
Regards
Karthick
Hi,

You can use the tabindex attribute of the Struts html tags to sequence the fields:

For Ex:

<html:form action="/SomeAction">
<table>
<tr>
<td><html:text property="field1" tabindex="1"/></td>
<td><html:text property="field2" tabindex="3"/></td>
<td><html:text property="field3" tabindex="2"/></td>
</tr>
</table>
</html:form>

If you have any queries reply me.
Jan 14 '08 #2
karthickkuchanur
156 100+
Hi,

You can use the tabindex attribute of the Struts html tags to sequence the fields:

For Ex:

<html:form action="/SomeAction">
<table>
<tr>
<td><html:text property="field1" tabindex="1"/></td>
<td><html:text property="field2" tabindex="3"/></td>
<td><html:text property="field3" tabindex="2"/></td>
</tr>
</table>
</html:form>

If you have any queries reply me.
actually i use the image button for submit ,and i use the tld which was write by my senior if i use the tab index it show me the error like the attribute tabindex not specify in tld
Jan 14 '08 #3
RedSon
5,000 Expert 4TB
Please remember to provide a meaningful Title for any threads started (see the FAQ entry Use a Good Thread Title).

This helps to ensure that other members, and also the general public, will have a better chance of finding answers to any similar questions.

MODERATOR
Jan 14 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Alex M | last post by:
I'm trying to use the jakarta struts client side javascript validators and the validators are working, but they are not showing the popup messages. I have the message keys defined in the...
3
by: Megha Vishwanath | last post by:
Hi, I have a struts form <html:form> in which although the focus rests on the submit button, hitting the enter key does not submit the form. I tried capturing the Enter key event and followed...
4
by: Mad Scientist Jr | last post by:
I have a textbox that i am adding to (in codebehind of ASP.NET) and need to ensure that the focus is scrolled to the bottom of the textbox each time the page refreshes, and then set focus to a 2nd...
0
by: Jonas L | last post by:
Hi, I need to create a textbox which acts as a normal textbox but with the following extra requirements: 1) In-focus color, when the textbox gets focus the backcolor property of the textbox...
2
by: Jesper | last post by:
Last week I posted this for the first time. However, I didn't get any useable solution to my problem. I'm very keen on getting this problem solved, so please excuse me for trying again. I'll try to...
0
by: Mad Scientist Jr | last post by:
I have a textbox that i am adding to (in codebehind of ASP.NET) and need to ensure that the focus is scrolled to the bottom of the textbox each time the page refreshes, and then set focus to a 2nd...
5
by: Tosch | last post by:
I have a usercontrol with a label, a textbox, a treeview, a grid and a couple of checkboxes. The usercontrol is hosted on a form together with a cancel and a accept button. This form is used to...
3
by: Henry Jones | last post by:
VS 2005 On a form I have a tabcontrol with 5 tabs. Each tab has three textboxes on it. When I click on each tab, I would like to have the focus set to the first textbox. On the tabenter...
1
by: nithiya sri | last post by:
i am new to struts.I try running struts application in Eclipse with the tomcat plug in .. it shows the following error:; please help me in this... SEVERE: Error loading WebappClassLoader ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.