-1

i try to run my jsp page i got an exeption

org.apache.jasper.JasperException: /home.jsp (line: 1, column: 2) Unterminated <%@ page tag 
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:42)

Code:

<%@ page language="java" contentType="text/html"; charset="ISO-8859-1″
   pageEncoding="ISO-8859-1" import="Servlet.*,java.util.*"%>
   <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  <html>
   <head>
    <meta http-equiv="Content-Type" content="text/html"; charset="ISO-8859-1″&gt;
     <title>Insert title here</title>
       </head>
     <body>
       <form name=frm method="post" action="./InsertImage">
      <table>
      <tr><TD ><B>Upload Image</B></TD>
       <td><input type="file" name="Image" size="20″ value=""></TD>
         </tr>
         <tr>
         <td><input type="submit" height="30″ width="62″&gt; 
        </td>
        </tr>
        <tr>
        <TD><b>ClickImage</b>
        <%
        GetImage udet = new GetImage();
        Vector V_ids=new Vector();
        V_ids=udet.ImageList();
        for(int i=0;i<V_ids.size();i++)
        {

        String temp[] = new String[2];
        int j=i+1;
        temp=(String[])V_ids.get(i);

         %></TD>
         <td><a target=’_blank’ href=’                                  <%=response.encodeURL("RetrieveImage?Image_id="+temp[0])%>’ onmouseover=’_ScrollStatus(“Click here for view”, 1);’ onmouseout=’_StopScrollStatus();’ onblur=’_StopScrollStatus();’ >
<b><%=temp[1]%></b>
        </a></TD>

         <%

         }

      %></TR>
      </table>

        </form>
        </body>
</html>
4

2 回答 2

2
于 2013-01-29T04:13:06.667 回答
0

Check, if you have used any extra % tags in directive

于 2021-05-31T08:04:24.647 回答