Skip to main content

how to return editUser.jsp checked value?

1 reply [Last post]
dalai_developer
Offline
Joined: 2008-07-27
Points: 0

how to return EditUser.jsp page checked value(name, pass, phone,...).however i didnt find error. help me pls?

userEditIformation.jsp
//...

User group:

Administrator
Editor

User name:

E-Mail:....

here return value

...//
editUser.jsp
//...
<%
String userGroup=null;
String Name=null; String errorName=null;
String Pass=null; String errorPass=null;
String Mail=null; String errorMail=null;
String Phone=null; String errorPhone=null;
String block=null; String errorblock=null;
String RegisteredDate=null;
String LvisitDate=null;
checkUserLogin ul = new checkUserLogin();
getDateTimeValue valueOne= new getDateTimeValue();

if(request.getParameter("UserGroup")!=null)
{
userGroup=request.getParameter("UserGroup");
}

if(ul.checkUName(request.getParameter("uname"))==true)
{
Name=request.getParameter("uname");
}
else
{
errorName="error name";
}
if(ul.checkEmailValidation(request.getParameter("uemail"))==true)
{
Mail=request.getParameter("uemail");
}
else
{
errorMail="error mail";
}
if(ul.checkPassword(request.getParameter("upass1"))==true)
{
Pass=request.getParameter("upass1");
}
else
{
errorPass="error upass1";
}
if(ul.checkVerifPass(request.getParameter("upass2"))==true)
{
Pass=request.getParameter("upass2");
}
else
{
errorPass="error upass2";
}
if(ul.checkPhoneNumber(request.getParameter("uphone"))==true)
{
Phone=request.getParameter("uphone");
}
else
{
errorPhone="error phone";
}
if(request.getParameter("ustatus") != null) {
if(request.getParameter("ustatus").equals("1")) {
block =request.getParameter("ustatus");
}
else {
errorblock ="block error";
}
}
RegisteredDate=valueOne.getDateTime();
LvisitDate=valueOne.getDateTime();
if( Name!=null && Pass!=null && Phone!=null )
{
succesfull return value;
}
else
{
unsuccesfull return value;
}
%> ...//

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
sloanb
Offline
Joined: 2003-09-14
Points: 0

I would be happy to help. Can you explain in a little more detail as to the problem you are having. I'm having a hard time understanding your issue. You can post your code surrounded by '[code]' (remove the single quote) and it will remain formatted.

--SB