kumar kolapalli

Greenhorn
+ Follow
since Oct 05, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by kumar kolapalli

Hi ,Thank you all for responding to this post.
Majorly my requirement was to generate password length in range in ( 6,16) among the allowed characters,
String chars = "abcdefghijkmnpqrstuvwxyzABCDEFGHIJKLMNPQRSTUVWXYZ123456789$#%&@.";
and validating the generated random password with the rules, like
1.May not contain English dictionary words longer than 4 letters: matched case insensitive, matched forwards and backwards.
2. Must have at least 2 of the following characteristics:1 digit, 1 non alphanumeric character, 1 upper case letter, 2 lower case letters
3. May not contain your username: matched case insensitive, matched forwards and backwards.
4. May not contain common keyboard sequences (eg. 12345, aaaaa): matched case insensitive, matched forwards and backwards

Was able to achieve the points
1, using normal length validation
2,using regex,
3,string equality (also in reverse)
But unable to write regex for 4th point

Anyway I will try,
1. to write loop and validate against ASCII char and try to resolve the issue
2. try the way suggested by Winston by using groups
Thank you
Kumar
10 years ago
Hi ,


looking for java validation (not javascript) that checks in the password not to have alphabet or numeric sequence .
for eg., 12345, abcde, abcdefg, 123456 should not be allowed
1234, abcd, 2345, cdef are allowed.

I mean sequence of alphanumeric characters of length upto 4 are allowed and sequence of
alphanumeric characters of length greater than 4 should not be allowed in password .

I have tried in Regex, but couldn't achieved .

could any one suggest me.

Thanks in advance
Kolapalli
10 years ago
I have a drop down defined using struts2 as below,
<s:select name="Type" headerKey="-1"
Value="All" list="DetailsList" listKey="DetailId" label="Details "
listValue="DetailName" onchange=""/>

In a scenario, When each of the drop down items length is > 20 characters and when we select any of the drop down item, as the text length of the drop down item is more than drop down field size, iam not able
to see the full text of the drop down item.
Can any one please help me how to make full text of the drop down item visible/dispaly when select/view the drop down items.
.- Kolapalli
11 years ago