Link to home
Start Free TrialLog in
Avatar of Rohit Bajaj
Rohit BajajFlag for India

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|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" />&nbsp;<a tabindex="143" id="editMobile" href="javascript:fReview.editMobile();">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
Avatar of chaitu chaitu
chaitu chaitu
Flag of India image

in the view source code also mobile number is getting displayed.
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|defaultInvalid|regTypeIsd[phone,10,loggedInMobileISD]" value="9711070972" class="PayConInput inputTxtBox disableinput" msginfo="* required,,* Mobile number should be 10 digit" type="text" maxlength="10" tabindex="144" readonly style="width:90px" />&nbsp;<a tabindex="143" id="editMobile" href="javascript:fReview.editMobile();">Edit</a>
Avatar of Rohit Bajaj

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
until we see the code we cannot judge where the prooblem lies.
Avatar of Sathish David  Kumar N
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" />&nbsp;
<a tabindex="143" id="editMobile" href="javascript:fReview.editMobile();">Edit</a>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of mccarl
mccarl
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial