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
3 4703
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.
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
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
Sign in to post your reply or Sign up for a free account.
Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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
...
|
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...
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
|
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...
|
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,...
| |