[Java for Android App Development] ashishkrishnan:
Hi, guys! I have a basic understanding of Android App Development but the this thing is driving me nuts. I tired of searching all through the net and presume that XDA superheads can give me a perfect solution for this. At Least at any tutorial to clean my way would be appreciable!

Basically, my Android APP will have a EditText for UserName and Password that need to be send to a JSP based Website(xxxxxxxx/YouLogin.jsp).

Here is a Screenshot of the JSP Area and similar will be found in my APP even.!

See attachment 1:

The Source code of the YouLogin.jsp is

<script>

function LoadLoginPage(){
urlNew="youLoginResources.jsp?resource=0&loginerror= ";
GetAjaxTemplates(urlNew,'form01');
}

function LoadRegistration(){
urlNew="UserRegistration.jsp";
GetAjaxTemplates(urlNew,'form01');
}

function LoadRegistrationParent(){
urlNew="StudentParentLogin.jsp";
GetAjaxTemplates(urlNew,'form01');
}

function LoadRegistrationError(){
urlNew="UserRegistration.jsp?error=1";
GetAjaxTemplates(urlNew,'form01');
}

function LoadForgetPassword(){
urlNew="youLoginResources.jsp?resource=1&result=0";
GetAjaxTemplates(urlNew,'form01');
}

function LoadForgetPasswordResult(arg,mail){
urlNew="youLoginResources.jsp?resource=1&result="+arg+"&email="+mail;
GetAjaxTemplates(urlNew,'form01');
}

function submitData(){
document.getElementById('txtSN').value=document.getElementById('txtRegNumber').value;
document.getElementById('txtPD').value=document.getElementById('txtPwd').value;
if(document.getElementById('txtSN').value == '' || document.getElementById('txtSN').length == 0) {
alert(' Please Enter Student Register No/Studen ID');
document.getElementById('txtSN').focus();
return false;
}

if(document.getElementById('txtPD').value == '' || document.getElementById('txtPD').length == 0) {
alert(' Please Enter Password');
document.getElementById('txtPD').focus();
return false;
}

document.getElementById('txtPA').value=1;
document.getElementById('txtRegNumber').value="iamalsouser";
document.getElementById('txtPwd').value="thanksandregards";
document.getElementById('frmStudentMain').action="youLogin.jsp";
document.getElementById('frmStudentMain').submit();
}

function submitRegistrationData(){

if (CheckValidateRegData()){
document.getElementById('txtPA').value=2;
document.getElementById('frmStudentMain').action="youLogin.jsp";
document.getElementById('frmStudentMain').submit();
}

}

function disableEmail(arg){
arg=arg.toUpperCase();
if ((arg.length>3) && (arg.charAt(0)=='P')){
document.getElementById('txtMailid').disabled=true;
}else{
document.getElementById('txtMailid').disabled=false;
}
}

function submitForgetPwdData(){
if (ValidateForgetPwdData()){
document.getElementById('txtPA').value=3;
document.getElementById('frmStudentMain').action="youLogin.jsp";
document.getElementById('frmStudentMain').submit();
}
}

function CheckValidateRegData(){
// CheckBLank("txtemailid","Email")&&CheckEmail("txtemailid","Email") && -- for removing validation of email
if(
CheckBLank("txtoldpassword","Old Password") && CheckAlphaNum("txtoldpassword","Old Password") &&
CheckBLank("txtnewpassword1"," New Password") && CheckAlphaNum("txtnewpassword1","New Password") &&
CheckBLank("txtnewpassword2"," Confirm New Password") && CheckAlphaNum("txtnewpassword2","Confirm New Password")&&
CompareAnyString("txtnewpassword1","txtnewpassword2",'passwords')
){
if ((document.getElementById('txtnewpassword1').value).length>=8){
return true;
}else {
alert ('Password need minimum 8 characters');
}
}
else
return false;
}

function ValidateForgetPwdData(){

username=document.getElementById('txtRegNumber').value;

if( CheckBLank("txtRegNumber","Register No/Student id") && CheckAlphaNum("txtRegNumber","Register No/Student id") &&
CheckBLank("txtMailid","Email")&& CheckEmail("txtMailid","Email")){
return true;
}
else
return false;
}
function funLoad(){
funLoadObject()
LoadLoginPage();
}
</script

After passing the Field Data from the Username and Password from the APP,

I need to getResources from the next Page of the Website accessing the Elements of the Tables generated!

[SEE ATTACHMENT 2]

and Post in different UI Pattern on my APP.

Additional Details:

I also need a basic understanding of how to manage and store cookies.

The website takes StudentID(as in the code) for Username and (Password) for password field.