please guide me in my code.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • phanimadhav
    New Member
    • Jun 2007
    • 78

    #1

    please guide me in my code.

    Hi,
    i am working on the coding part which is based on jsp/html.As im fresher i am facing some problems with the code.so,can u please guide me..This is the error which i ve got...please have a look....

    org.apache.jasp er.JasperExcept ion: /jsp/DeleteUserDetai l.jsp(103,0) The end tag "</html:html" is unbalanced

    code follows..
    Code:
    <%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>
    <%@ taglib uri="/WEB-INF/struts-logic" prefix="logic" %>
    <%@ taglib uri="/WEB-INF/struts-bean" prefix="bean" %>
    
    <html:html>
     <head>
      <LINK href="./style.css" type=text/css rel=stylesheet>
     <title> Delete User Details  </title>
      <script language="javascript" src="./ByUserReport.js"> 
      
      function check()
    		{
    		document.forms[0].action="./DeleteUserSuccess.jsp";
    		document.forms[0].submit();
    		}
      </script>
     <LINK href="./style.css" type=text/css rel=stylesheet>
     </head>
    <% System.out.println("haiiiiiiiiii");%>
    <body>
    	<form  onsubmit="javascript:check()" target=_self >
    
    		<% System.out.println("inside form");%> 
    		
    		<!--<p align=center >  <font size="2" color= #000099>
    		<font size="4" color= #000099>Hit Rate Utility </font></p>-->
    		
    		<div align="center"><br><br>
    		<table>
    			<tr>
    				<td align=center><font size="5" color= #000099>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Delete User  </font></td>
    			</tr>
    		</table>
    		<br>
    		<table width="10%" border="0" cellpadding="1" cellspacing="5" >
    		 <tr>
    		   <td align="left" class="PSLOGINTEXTBOLD">User&nbsp;&nbsp;ID:</td>
    		   <td width="370">
    		     <input type="text" id="Text1" name="userid" value="" class="PSEDITBOX" size="26" >&nbsp;&nbsp;
    		   </td>
    		</tr>
    		<!--<tr>
    		<td align="right" class="PSLOGINTEXTBOLD">&nbsp;&nbsp;Password:&nbsp;&nbsp;</td>
    		<td width="370">
    		<input TYPE="password" id="pwd" name="pwd" class="PSEDITBOX" size="26"></td>
    		</tr>-->
    		<tr>
    		 <td>&nbsp;</td>
    		 <td height="26" width="370">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
    		</tr>
    	
    		<tr>
    		 <td align="right" class="PSLOGINTEXTBOLD">&nbsp;&nbsp;Password:&nbsp;&nbsp;</td>
    		 <td width="370">
    		 <html:text property="pwd" class="PSEDITBOX">
    		 <!--  <input TYPE="password" id="pwd" name="pwd" class="PSEDITBOX" size="26"> --> </td>
    		</tr>
    		<tr>
    		 <td align="right" class="PSLOGINTEXTBOLD">First Name:&nbsp;&nbsp;</td>
    		 <td width="370">
    		 <html:text property="first" class="PSEDITBOX">
    		 <!-- <input TYPE="text" id="first" name="first" class="PSEDITBOX" size="26">--> </td>
    		</tr>
    		<tr>
    		 <td align="right" class="PSLOGINTEXTBOLD">Middle&nbsp;Name:&nbsp;&nbsp;</td>
    		 <td width="370">
    		 <html:text property="middle" class="PSEDITBOX">
    		 <!-- <input TYPE="text" id="middle" name="middle" class="PSEDITBOX" size="26"> --> </td>
    		</tr>
    		<tr>
         		<td align="right" class="PSLOGINTEXTBOLD">Last Name:&nbsp;&nbsp;</td>
    	       	<td width="370">
    		   <html:text property="last" class="PSEDITBOX">
    		    <!-- <input TYPE="text" id="last" name="last" class="PSEDITBOX" size="26"> --></td>
    		</tr>
    		<tr>
    		   <td align="right" class="PSLOGINTEXTBOLD">Email ID:&nbsp;&nbsp;</td>
    		   <td width="370">
    		   <html:text property="email" class="PSEDITBOX">
    		   <!--  <input TYPE="text" id="email" name="email" class="PSEDITBOX" size="26">--> </td>
    		</tr>
    		<tr>
    		  <td align="right" class="PSLOGINTEXTBOLD">User Type:&nbsp;&nbsp;</td>
    		   <td width="370">
    		  <html:text property="utype" class="PSEDITBOX">  </td>
    		   <!--  <select  property="utype" name="usertype" id="usertype" >
    		    <option value="N" selected > Normal User</option>
    		     <option value="A">Admin User</option></td>
    		    </select>-->
    		</tr>
    
    		<tr><td align="center">
    
    		<input  type="submit" name="Submit"  value="Delete" class="PSLOGINPUSHBUTTON" >
    
    		</td>
    		</tr>
    
    		</table>
    	</div>
    	</form>
    </body>
    </html:html>
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    I don't know anything about all this stuff but If I had a gun pointed at me and were asked to give a suggestion, I'd say what happens if you put the

    [CODE=java] <%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>
    <%@ taglib uri="/WEB-INF/struts-logic" prefix="logic" %>
    <%@ taglib uri="/WEB-INF/struts-bean" prefix="bean" %>[/CODE]
    stuff inside the head section of that page?

    Comment

    • phanimadhav
      New Member
      • Jun 2007
      • 78

      #3
      Originally posted by r035198x
      I don't know anything about all this stuff but If I had a gun pointed at me and were asked to give a suggestion, I'd say what happens if you put the

      [CODE=java] <%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>
      <%@ taglib uri="/WEB-INF/struts-logic" prefix="logic" %>
      <%@ taglib uri="/WEB-INF/struts-bean" prefix="bean" %>[/CODE]
      stuff inside the head section of that page?

      To use Struts tag library discriptors in my program.

      Comment

      • praveen2gupta
        New Member
        • May 2007
        • 200

        #4
        your starting and end html tags are not proper. The server is showing this erroe.
        Correct your line no 103 </html:html> replace as </html>
        and starting line of <html:html>Repl ace as<html>

        Comment

        Working...