Minajagi Papaiah

Greenhorn
+ Follow
since Sep 14, 2005
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 Minajagi Papaiah

Dear All,

I am faced with this problem

My jsp page has this form by name urgencyReason
<TD>
<html:text property="urgencyReason" onkeeypress="return textValidate(this,event,'<%alphaNumeric%>')" onchaange="return hasOnlySplCumNumChars(this)"/>
</TD>

I am calling textValidate onkeeypress, it takes 3 arguments
the last arg being the allowed set of characters for this field.

In this case alphaNumeric is my variable which has the value like
Stringg alphaNumeric="ABCDEFGH123";

the html version(view source) looks like this
<TD>
<input type="text" name="urgencyReason" value="" onkeeypress="return textValidate(this,event,'<%=alphaNumeric%>')" onchaange="return hasOnlySplCumNumChars(this)">
</TD>


Now,pls notice the content (in bold) in view source.
Ideally the contents of alphaNumeric should have come in,but the content in bold itself is being treated as the set of allowed characters.

I have no clue as to how I should be calling this.

Can you kindly point out where,how etc I am going wrong in this case.
[ September 14, 2005: Message edited by: Papaiah ]
18 years ago