www.webdeveloper.com
Results 1 to 2 of 2

Thread: Please help me on this.Really need ur help

  1. #1
    Join Date
    Jan 2014
    Posts
    3

    Please help me on this.Really need ur help

    Friends i have one page in website that simply takes Username and email before providing demo of the course.When user provides his/her name and email id then its taking too long time.Here is the the website of our company

    http://secure.kesdee.com/ksdlms/PortalLogin.do#
    Please register and check its taking too long time.

    What might be the possible errors. i am also sharing the jsp page that takes username and email
    Scorm.jsp
    <html>
    <head>
    <title>Knowledge Economy Skill Development E-learning Excellence</title>
    <%String contextpath=request.getContextPath();%>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link rel="stylesheet" href="<%=contextpath%>/stylesheet/ksd_main.css" type="text/css">
    <link rel="stylesheet" href="<%=contextpath%>/stylesheet/menu_styles.css" type="text/css">

    </head>
    <body bgcolor="#C1D1F3" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
    <%@ page language="java" import="java.sql.*,java.util.*,java.io.*,javax.mail.*,javax.mail.internet.*,java.util.Date"%>
    <jsp:useBean id="mail" class="Trans.SendMail"/>
    <%



    try
    {
    String uname = request.getParameter("nuser");
    String email = request.getParameter("email");
    //String pswd = request.getParameter("npass");
    %>
    <div align="center">
    <table border="0" cellpadding="0" cellspacing="0" width="525" height="683" >
    <tr>
    <td width="3" valign="top" rowspan="4">&nbsp;</td>
    </tr>
    <tr>
    <td colspan="10" valign="top" height="550">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" height="566">
    <tr>
    <td width="10" height="575"></td>
    <td bgcolor="#E3EBFF" valign="top" colspan="3" class="content" height="575">
    <div align="center">
    <table width="100%" border="0" cellspacing="0" cellpadding="2" background="icons/inside1.gif" bgcolor="#E3EBFF" >
    <tr>
    <td valign="top" bgcolor="#E3EBFF" width="70%">

    <form name=demofrm method="post">
    <input type=hidden name=userID value="<%=uname%>" >

    <table width=380 border=0 cellspacing=0 cellpadding=0 align="center" background="<%=contextpath%>/tradefinance/images/BG.gif" height=238>
    <tr>
    <td width=2% valign=top height=6></td>
    <td height=6 colspan="3"><img src="<%=contextpath%>/layout_images/blank.gif" width=1 height=1></td>
    <td width=3% valign=top height=6></td>
    </tr>
    <tr>
    <td height="78" valign="top" width="2%" align="left">&nbsp;</td>
    <td valign=top width="3%">
    <table width="98%" border="0" cellpadding=3 cellspacing=0>
    <tr>
    <td valign="top"> </td>
    </tr>
    </table>
    </td>
    <td valign=top width="87%">
    <table border="0" cellpadding="2" cellspacing="0" width="93%">
    <tr align="center" bgcolor="#E3EBFF">
    <td valign="top" colspan="3" class="f2" height="23"><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#336699"></font></td>
    </tr>
    <tr bgcolor="#E3EBFF">
    <td valign="top" align="left" colspan="3" class="f2" height="23">&nbsp;</td>
    </tr>
    <tr>
    <td valign="top" align="left" width="37%" class="f2" height="32" nowrap bgcolor="#E3EBFF"><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#336699">User
    Name:</font></td>
    <td valign="top" colspan="2" nowrap bgcolor="#E3EBFF" ><b><font face="Verdana,Geneva,Arial,Helvetica,sans-serif" size="2"><%=uname%></font></b>
    </td>
    </tr>
    <tr>
    <td valign="top" align="left" height="32" class="f2" width="37%" nowrap bgcolor="#E3EBFF"><font color="#336699" size="2" face="Verdana, Arial, Helvetica, sans-serif">E-mail:</font></td>
    <td valign="top" colspan="2" nowrap bgcolor="#E3EBFF" ><b><font face="Verdana,Geneva,Arial,Helvetica,sans-serif" size="2"><%=email%></font></b>
    </td>
    </tr>

    <tr align="left" bgcolor="#E3EBFF">
    <td valign="top" height="3" class="f2" colspan="3" nowrap></td>
    </tr>
    <tr align="center" bgcolor="#E3EBFF">
    <td valign="top" height="32" class="f2" colspan="3" nowrap><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#336699">Please
    Click <a href="#" onclick="window.open('<%=contextpath%>/tradefinance/coursedemo.jsp','democourse','location=0,toolbar=0,menubar=0,scrollbars=0,resizable=yes,status=0,hei ght=600,width=800,top=0,left=0')"><font color="#FF0000"><b>
    here</b></font></a> to Access Sample Course</font><font face="Verdana,Geneva,Arial,Helvetica,sans-serif" color=red size=2></font>
    </td>
    </tr>
    <tr>
    <td height="0" width="37%"></td>
    <td width="10%"></td>
    <td width="53%"></td>
    </tr>
    </table>
    </td>
    <td valign=top width="5%">&nbsp;</td>
    <td valign="top" width="3%"></td>
    </tr>
    <tr>
    <td height=14 valign=bottom width="2%"></td>
    <td valign=bottom height="14" colspan="3"></td>
    <td valign=bottom width="3%" height="14"></td>
    </tr>
    </table>
    <%
    //getting the user name and the employee name using the session to pass to the send mail .
    //String empname =(String)session.getValue("employeename",empname);
    //String uname = (String)session.getValue("uname",uname);
    String empname = "information";
    String receiverMail="information";
    %>

    <%
    //passing the host ip address


    String host="192.168.10.4";

    //creating a date obj to return an sysdate that is passed in the mail
    Date date=new Date() ;

    //passing the ip address of the host as an parameter to the setHost method
    mail.setHost(host);

    //passing the subject to the mail and calling that method from the bean
    mail.setSubject("UCP600, Demo Product Registration details");

    //set the sender email address and the receiver address in a variable and pass that asthe parameter to the "from" and "to" method
    String sender_email=(empname+"@kesdee.com");
    String receiver_email=(receiverMail+"@kesdee.com");

    //setting the parameter to the "from" and "to" methods in the bean
    mail.setFrom(sender_email);
    mail.setTo(receiver_email);
    String fontag="</font>";
    //passing the main message to the mail and calling that method from the bean
    //mail.setMessage("Dear Sir,"+\n\n\n+"There is a new registration in UCP600 DEMO PRODUCT,"+\n\n+"Username:"+uname+\n\n\n+"mailId Is:"+email);
    String msg = "<table width=\"80%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" >";
    msg = msg + "<tr><td>&nbsp;</td></tr>";
    msg = msg + "<tr><td></td></tr>";
    msg = msg + "<tr><td><font face=verdana size=2>Dear Sir,</font></td></tr>";
    msg = msg + "<tr><td height=5></td></tr><tr> <td><font face=verdana size=2>There is a new registration in DEMO Products, the details are as follows</font></td></tr>";
    msg = msg + "<tr><td height=5></td></tr><tr><td><font face=verdana size=2>Username:&nbsp;"+uname+fontag+"</td></tr><tr> <td><font face=verdana size=2>mailID:&nbsp;"+email+fontag+"</td></tr><tr> <td height=7></td></tr>";
    msg = msg + "<tr><td height=7></td></tr><tr><td><font face=verdana size=2>Thanks and Regards,</font></td></tr><tr><td><font face=verdana size=2>KESDEE Support Team</font></td></tr>";
    msg = msg + "</table>";
    mail.setMessage(msg);

    //Calling the method sendMail() of the bean ErrorSendMail
    String geta=mail.sendMail();
    %>
    </form>
    <br>
    <%
    }
    catch(Exception e)
    {

    out.println("error"+e);
    %>
    <table>
    <tr>
    <td><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#FF6600">Error
    please try again <a href="javascript:window.history.back();">Back</a></font></td>
    </tr>
    </table>
    <%
    }

    %>
    </td>
    </tr>
    </table>
    </div>
    </td>
    <td width="3" height="575"></td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td height="2" colspan="10">

    </td>
    </tr>
    </table>
    </div>
    </body>
    </html>

  2. #2
    Join Date
    Nov 2002
    Location
    Flint, Michigan, USA
    Posts
    598
    You have sixty errors on that page. It might be a lot faster if you fix them. See them here:
    http://validator.w3.org/check?charse...PortalLogin.do

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles