Rohit Bajaj
asked on
value not getting displayed from jsp
Hi,
I am attaching two files for a page of a web application.
The payment.txt (payment.jsp file name changed for uploading reason) jsp is the file which gets rendered in the page.
And the other file is the one which i got by pressing ctrl+U (view source) in firefox.
The problem which i am encountring is at line :
<input id="loggedInMobile" onkeypress="return isNumberKey(event)" mylabel="Mobile Number" validation="required|defau ltInvalid| regTypeIsd [phone,10, loggedInMo bileISD]" value="${user.userMobileNo }" class="PayConInput inputTxtBox disableinput" msginfo="* required,,* Mobile number should be 10 digit" type="text" maxlength="10" tabindex="144" readonly style="width:90px" /> <a tabindex="143" id="editMobile" href="javascript:fReview.e ditMobile( );">Edit</ a>
This line ideally should display the mobile no. which is held in ${user.userMobileNo}
As can be seen in the source the mobile no. is getting passed in jsp at the line :
<input type = "hidden" name = "user.userMobileNo" id = "userMobileNo" value ="9711070972"/>
But still i randomly see occasions when the mobile no. is not displayed on the webpage.
How could this be possible ?
This specially happens when i open the same page again in other tab
source-wen-mobile-no.-not-coming.txt
payment.txt
I am attaching two files for a page of a web application.
The payment.txt (payment.jsp file name changed for uploading reason) jsp is the file which gets rendered in the page.
And the other file is the one which i got by pressing ctrl+U (view source) in firefox.
The problem which i am encountring is at line :
<input id="loggedInMobile" onkeypress="return isNumberKey(event)" mylabel="Mobile Number" validation="required|defau
This line ideally should display the mobile no. which is held in ${user.userMobileNo}
As can be seen in the source the mobile no. is getting passed in jsp at the line :
<input type = "hidden" name = "user.userMobileNo" id = "userMobileNo" value ="9711070972"/>
But still i randomly see occasions when the mobile no. is not displayed on the webpage.
How could this be possible ?
This specially happens when i open the same page again in other tab
source-wen-mobile-no.-not-coming.txt
payment.txt
ASKER
The above view source was an example when on ui the mobile no. 9711070972 didnt get displayed although it appeared in the view source
This is rare.. I am able to reproduce it very infrequently
This is rare.. I am able to reproduce it very infrequently
until we see the code we cannot judge where the prooblem lies.
As per my understanding in your code . Its failed in your validation
<input id="loggedInMobile
onkeypress="return isNumberKey(event)"
mylabel="Mobile Number"
validation="required|defaultInvalid|regTypeIsd[phone,10,loggedInMobileISD]"
value="${user.userMobileNo}"
class="PayConInput inputTxtBox disableinput" msginfo="* required,,* Mobile number should be 10 digit"
type="text" maxlength="10" tabindex="144" readonly style="width:90px" />
<a tabindex="143" id="editMobile" href="javascript:fReview.editMobile();">Edit</a>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
check at what time below value is not getting dispalyed in this tag.
<input id="loggedInMobile" onkeypress="return isNumberKey(event)" mylabel="Mobile Number" validation="required|defau