Hi Experts,
I have a strange issue with my JSPDynpage and HTMLB.
I can you please help me resolving issue - in my JSPDynpage [JSPDP] app...
In JSPDP when user enters data or keeps it blank in input field of JSP, i need to do the required validation.
But in the below code... no matter if the Input field is blank or any data is entered - only login ID not null is set to Msg.
public void submitDOB(Event event) throws PageException {
InputField LoginID1 = (InputField) getComponentByName("userLoginID");
string loginID = LoginID1.getValueAsDataType().toString();
if (LoginID1!=null){
StaffBean.setMsg("login ID not null");
}
else
{StaffBean.setMsg("login ID null");}
I only need to find if the user has entered any data or the field was blank when user click on submitDOB BUTTON.
I have tried to print the value and it is printng very well, but only the If condition is not working...
I also tried to put the value in a string loginID, but that as well is not working...
Can you please help me getting resolve this?
Many Thanks,
SJ