I am getting this error - JspFormsSession cannot be resolved to a type

Hi
I am getting following error when I try to open a jsp file.
Any solution?
JSP line details are -
JspFormsSession openrules_session = (JspFormsSession) session.getAttribute(s_attr);
Error is -
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 4 in the jsp file: /index.jsp
Generated servlet error:
JspFormsSession cannot be resolved to a type
An error occurred at line: 4 in the jsp file: /index.jsp
Generated servlet error:
JspFormsSession cannot be resolved to a type
An error occurred at line: 4 in the jsp file: /index.jsp
Generated servlet error:
JspFormsSession cannot be resolved to a type
     org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

Now I am confident that the problem is with library including, as the same thing happens with other libraries.
I found that such a warning appears every time:
Classpath entry /jspbook/src/lib/mail.jar will not be exported or published. Runtime ClassNotFoundExceptions may result.Unfortunately, I've no idea how to include this in a proper way. I think that setting it in "Add External JARs" in "Java Build Path" is enough... or not?
Seems we're close to solve the problem. May be this screen shot will be helpful to determine the problem?
http://img257.imageshack.us/img257/3967/screenshotjavaeejspbook.png
You can see that libraries are included in the Project Explorer

Similar Messages

  • When I try to copy pictures to my iphone 4s I get this error message: Cannot copy item. The device has either stopped responding or has been disconnected. Any help?

    When I try to copy a photo from my computer (windows 7) I get this error message: Cannot copy item. The device has either stopped responding or has been disconnected. Any help for this?

    Are you syncing the photos using Itunes?
    When you plug your phone into your PC, in Itunes under the picture tab you can sync photo and then choose the photos.
    Look here more detailed instructions
    http://support.apple.com/kb/HT4236

  • GEF4 Setup Error - FXCanvas cannot be resolved to a type

    Hallo,
    I tried to setup the development environment for GEF4, as specified in the GEF Contributor guide, and I found the following error:
    FXCanvas cannot be resolved to a type.
    (se attached file)
    This error is persistent, and it seems i am not able to find a solution despite I tried multiple times to setup the environment, as specified in the GEF/GEF4 contributor guide .
    This is the list of steps I followed for the setup
    Check Java 8 (oracle) is installed, that is required by the e(fx)clipse plugin.
    Download Eclipse IDE for Eclipse Committers. In my case: eclipse-committers-mars-R-win32.zip
    Install plugins needed by GEF4, in my case:
    e(fx)clipse - IDE, from http://download.eclipse.org/efxclipse/simrel-contrib/mars/m7/tools/site
    e(fx)clipse - IDE - PDE, from http://download.eclipse.org/efxclipse/simrel-contrib/mars/m7/tools/site
    API Tools Execution Environment Descriptions, from: http://download.eclipse.org/eclipse/updates/4.5-I-builds
    Oomph Version Management, from: http://download.eclipse.org/releases/mars'
    Maven Integration for Eclipse (includes Incubating components), from: http://download.eclipse.org/releases/mars
    Clone the GEF4 Git repository and import the projects in the workspace
    Set MARS.target: from org.eclipse.gef4.target project, double click the target definition, wait for the target is fully resolved, and click on "set as target platform".
    Adjust preferences. select Menu > Window > Preferences:
    Java > Compiler > Errors/Warnings: ignore the "Deprecated and restricted API"
    Plug-in Development > Compilers: Ignore the "References to discouraged classes"
    At the end of the setup, I can not compile the GEF4 project, because "FXCanvas cannot be resolved to a type. "
    See image.
    Does anyone has an idea on how to fix this ?
    Kind Regards.
    Patrik

    I updated the respective section of the contributor guide to make it even more explicit, why the "Specify Execution Environment for J2SE-1.7 (and optionally J2SE-1.8)" is important. I also saw that the guide still listed the e(fx)clipse 2.0.0 Mars M7 contribution. I updated it to refer to the e(fx)clipse 2.0.0 Mars release. You might want to update your IDE accordingly.

  • Runtime error - Session cannot be resolved to a type

    Hello! I try to get JavaMail working, but all in vain.
    The problem is I get such an error every time.
    org.apache.jasper.JasperException: Unable to compile class for JSP:
    An error occurred at line: 29 in the jsp file: /SendMail.jsp
    Session cannot be resolved to a type
    26:    prop.put("mail.smtp.host",hostMail);
    27:    prop.put("mail.smtp.user",fromEmail);
    28:    prop.put("mail.smtp.auth","true");
    29:    Session ses =  Session.getInstance(prop,null);
    30:    ses.setDebug(true);
    31:    MimeMessage msg = new MimeMessage(ses);
    32:    MimeBodyPart m1 = new MimeBodyPart();
    An error occurred at line: 29 in the jsp file: /SendMail.jsp
    Session cannot be resolved
    26:    prop.put("mail.smtp.host",hostMail);
    27:    prop.put("mail.smtp.user",fromEmail);
    28:    prop.put("mail.smtp.auth","true");
    29:    Session ses =  Session.getInstance(prop,null);
    30:    ses.setDebug(true);
    31:    MimeMessage msg = new MimeMessage(ses);
    32:    MimeBodyPart m1 = new MimeBodyPart();
    Stacktrace:
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:93)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:729)I'm using Eclipse, so I've added external JARs there (activation.jar, mail.jar, mailapi.jar, pop3.jar, smtp.jar). In addition to this, the same libraries are in +/opt/jdk1.6.0_13/jre/lib/+.
    I've imported javax.mail.*, java.util.*, javax.mail.internet.* in my JSP file. I tried to do a lot of manipulations. Also I tried to use different code examples, but the error in the line "Session.getInstance(props, null)" remains the same.
       Properties prop = new Properties();
       prop.put("mail.smtp.host",hostMail);
       prop.put("mail.smtp.user",fromEmail);
       prop.put("mail.smtp.auth","true");
       Session ses =  Session.getInstance(prop,null);The same problem remains when I do this as a Servlet. Class compilation with javac occurs without errors.
    Might the problem be in version compatibility? I use: ArchLinux, Tomcat 5.5, JavaMail 1.4.2.
    Thanks in advance.
    Edited by: Pavel_Z on May 7, 2009 4:55 PM

    Now I am confident that the problem is with library including, as the same thing happens with other libraries.
    I found that such a warning appears every time:
    Classpath entry /jspbook/src/lib/mail.jar will not be exported or published. Runtime ClassNotFoundExceptions may result.Unfortunately, I've no idea how to include this in a proper way. I think that setting it in "Add External JARs" in "Java Build Path" is enough... or not?
    Seems we're close to solve the problem. May be this screen shot will be helpful to determine the problem?
    http://img257.imageshack.us/img257/3967/screenshotjavaeejspbook.png
    You can see that libraries are included in the Project Explorer

  • Firefox crashes continually. Now I'm getting this error and cannot open firefox at all: XML Parsing Error: not well-formed Location: chrome://browser/content/browser.xul Line Number 1068, Column 87:

    SInce the latest update Firefox has crashed continually for about two weeks now. Continually means at least 10 times a day. Now it does not open at all and I get this message when launching Firefox:
    XML Parsing Error: not well-formed Location: chrome://browser/content/browser.xul Line Number 1068, Column 87:

    SInce the latest update Firefox has crashed continually for about two weeks now. Continually means at least 10 times a day. Now it does not open at all and I get this message when launching Firefox:
    XML Parsing Error: not well-formed Location: chrome://browser/content/browser.xul Line Number 1068, Column 87:

  • I keep getting this error. Cannot send mail acopy has been placed I your outbox the recipient was rejected by the server

    Cannot send mail
    A copy has been placed in your outbox
    The recipient was rejected by the server

    Go into Settings>Mail, Contacts, Calendars>your account>Outgoing mail Server SMTP>Primary Server then turn Server ON and fill in both User Name +Password under Outgoing Mail Server.

  • Class name cannot be resolved to a type

    Dear All,
    I have one main class calling another class but I keep getting this error "
    SMSClient cannot be resolved to a type". Before this I tried on other pc it was ok. Below is part of the codes. What could have been wrong? Can it be a missing library but how to trace that?
    public class callSMSClient{   public static void main(String[] args)  {       
              SMSClient t1 = new SMSClient(0);       
              t1.sendMessage("+6065544223","testing one two");  }}public class callSMSClient
              public static void main(String[] args)
           SMSClient t1 = new SMSClient(0);
           t1.sendMessage("+6065544223","testing one two");
    public class SMSClient implements Runnable{  
    public final static int SYNCHRONOUS=0; 
    public final static int ASYNCHRONOUS=1; 
    private Thread myThread=null;  
    private int mode=-1; 
    private String recipient=null; 
    private String message=null;  
    public int status=-1; 
    public long messageNo=-1;   
    public SMSClient(int mode) {     
    this.mode=mode;   
    public int sendMessage (String recipient, String message)
          this.recipient=recipient;   
          this.message=message;  
          myThread = new Thread(this);   
          myThread.start();
          //    run();   
          return status;   
    public void run()
    Sender aSender = new Sender(recipient,message);    
    try{     
    //send message         
    aSender.send ();         
    // System.out.println("sending ... ");      
    //in SYNCHRONOUS mode wait for return : 0 for OK, -2 for timeout, -1 for other errors     
    if (mode==SYNCHRONOUS)
    while (aSender.status == -1)
    {            myThread.sleep (1000);         
    if (aSender.status == 0)
    messageNo=aSender.messageNo ;   
    catch (Exception e)
    {         e.printStackTrace();    
    this.status=aSender.status ;    
    aSender=null;   
    }public class SMSClient implements Runnable{
      public final static int SYNCHRONOUS=0;
      public final static int ASYNCHRONOUS=1;
      private Thread myThread=null;
      private int mode=-1;
      private String recipient=null;
      private String message=null;
      public int status=-1;
      public long messageNo=-1;
      public SMSClient(int mode) {
          this.mode=mode;
      public int sendMessage (String recipient, String message){
        this.recipient=recipient;
        this.message=message;
        //System.out.println("recipient: " + recipient + " message: " + message);
        myThread = new Thread(this);
        myThread.start();
    //    run();
        return status;
        public void run(){
        Sender aSender = new Sender(recipient,message);
        try{
          //send message
              aSender.send ();
             // System.out.println("sending ... ");
          //in SYNCHRONOUS mode wait for return : 0 for OK, -2 for timeout, -1 for other errors
          if (mode==SYNCHRONOUS) {
              while (aSender.status == -1){
                myThread.sleep (1000);
          if (aSender.status == 0)
             messageNo=aSender.messageNo ;
        }catch (Exception e){
            e.printStackTrace();
        this.status=aSender.status ;
        aSender=null;
    }

    Dear Ejp,
    I would like to first share a simple case here first. Below is the simplied codes. Here I dont need any import statement. I keep both this in the same directory. I am using this command to compile javac callSMSClient.java. Why even this simple case is not working?
    public class callSMSClient{
      public static void main(String[] args)
           SMSClient t1 = new SMSClient(1);
           t1.sendMessage("+6014466044","testing one two");
    public class SMSClient {
      private int mode=-1;
      private String recipient=null;
      private String message=null;
      public SMSClient(int mode) {
          this.mode=mode;
      public void sendMessage (String recipient, String message){
        this.recipient=recipient;
        this.message=message;
        System.out.println("recipient: " + recipient + " message: " + message);
    }

  • EmailControl cannot be resolved to a type

    Hi,
    We upgrade an WLW 8.1 application with a simple EmailControl from WLW 8.1 to WLW 10.3 and we get the error :
    +"EmailControl cannot be resolved to a type"+
    The import wizard imported a trivial WLW 8.1 with a simple call to the emailControl.
    What can be wrong and what should we add to get this emailControl working in WLW10.3 ?
    Thanks
    Yves
    ############# code ############
    package controls;
    import org.apache.beehive.controls.api.bean.ControlExtension;
    import weblogic.jws.*;
    import com.bea.control.*;
    import org.apache.xmlbeans.XmlObject;
    * A custom Email control.
    * @jc:email smtp-address="localhost:25"
    * from-address="[email protected]"
    * from-name="The Sender"
    * reply-to-address="[email protected]"
    * reply-to-name="ReplyName YYYY"
    * header-encoding=""
    * username=""
    * password=""
    @ControlExtension()
    public interface EmailSuperManager extends EmailControl
    * @jc:send-email to="{to}"
    * subject="{subject}"
    * body="{body}"
    * content-type="text/plain"
    void sendEmail( String to,
    String subject,
    String body);
    }

    user5184649 wrote:
    What can be wrong ...
    Wrong forum for this question.

  • HttpServletRequest cannot be resolved to a type in JSP - eclipse

    Hi,
    i've created a webapp in eclipse ver 3.2.
    my jsp looks like this:
    <%!
    private boolean checkLoginRule(HttpServletRequest request, HttpServletResponse response, Integer nLevel) {
    // if user was already authenticated pass him on
    if (request.getSession(true).getAttribute("userID") == null)
    response.sendRedirect("index.jsp");
    else {
    Integer nUserLevel =(Integer)request.getSession(true).getAttribute("userRole");
    if (nUserLevel.intValue() < nLevel.intValue())
    return false;
    return true;
    %>
    i'm getting an error:
    HttpServletRequest cannot be resolved to a type
    What to do?

    import the following package...
    import javax.servlet.http.HttpServletRequest

  • Include JSP in JSP - Error:  cannot be resolved to a type

    Hello,
    Several of my jsp pages include other jsp pages. The project has many errors: "x cannot be resolved to a type". Is there a way to resolve these errors? Below is a small example of the issue:
    JSP #1:
    <%@ page import="com.testing.Introduction" %>
    <html>
    <head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Hello</title>
    </head>
    <body>
    <%
         Introduction intro = new Introduction();
         String speak = intro.sayHello();
    %>
    <p><%=speak %></p>
    <%@ include file="Name.jsp" %>
    </body>
    </html>  JSP #2:
    <html>
    <head>
    <title>Name</title>
    </head>
    <body>
    <%
         String speak2 = intro.sayName();
    %>
    <p>
    <%=speak2 %>
    </p>
    </body>
    </html>Class:
    package com.testing;
    public class Introduction
         public static void main(String[] args) {
         public Introduction() {
              super();
         public String sayHello() {
              return "Hello";          
         public String sayName()     {
              return "My name is Sam";
    }The error shows up in Name.jsp; the issue is with "intro". Any ideas how to resolve this issue?
    Thank you in advance for your help!

    The jsp page Name.jsp appears to be missing the import statement that appears in the first page.
    <%@ page import="com.testing.Introduction" %>The included file is included character for character into the main page which is then treated as a single jsp page for the response. The include directive is invoked at the time of page translation. Given this, I don't see the purpose of using the <html> <head> and <title> tags in the second and included page. I don't think that this suggests the proper purpose of the include directive.
    Note too that if the included file changes, all of the jsp files that call this file need to be updated as well. Servers can handle the alteration of the main jsp, but may not serve the altered content if the included file changes.
    For more information see here. http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPIntro8.html

  • What is cannot be resolved to a type error?

    When i run jsp programs, am getting :
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 6 in the jsp file: /dbcoffee.jsp
    Generated servlet error:
    CoffeeQBean cannot be resolved to a type
    org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:409)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    what does cannot be resolved to a type mean?

    I am getting the same error but while creating a Web Service.
    Exception in thread "main" java.lang.Error: Unresolved compilation problems:
         org.apache cannot be resolved to a type
         org.apache cannot be resolved to a type
         org.apache cannot be resolved to a type
         org.apache cannot be resolved to a type
         org.apache cannot be resolved to a type
         org.apache cannot be resolved to a type
         _serviceClient cannot be resolved
         org.apache cannot be resolved to a type
         _service cannot be resolved
         _serviceClient cannot be resolved
         _serviceClient cannot be resolved
         org.apache cannot be resolved to a type
         _serviceClient cannot be resolved
         _serviceClient cannot be resolved
         org.apache cannot be resolved
         org.apache cannot be resolved to a type
         org.apache cannot be resolved to a type
         org.apache cannot be resolved to a type
         org.apache cannot be resolved to a type
         The constructor TemperatureConverterStub(null, String) is undefined
         org.apache cannot be resolved to a type
         _serviceClient cannot be resolved
         _operations cannot be resolved
         org.apache cannot be resolved
         org.apache cannot be resolved to a type
         org.apache cannot be resolved to a type
         org.apache cannot be resolved to a type
         _serviceClient cannot be resolved
         org.apache cannot be resolved to a type
         org.apache cannot be resolved
         org.apache cannot be resolved to a type
         org.apache cannot be resolved to a type
         org.apache cannot be resolved to a type
         org.apache cannot be resolved to a type
         org.apache cannot be resolved to a type
         org.apache cannot be resolved to a type
         org.apache cannot be resolved
         org.apache cannot be resolved
         org.apache cannot be resolved to a type
         org.apache cannot be resolved to a type
         org.apache cannot be resolved
         org.apache cannot be resolved
         org.apache cannot be resolved
         org.apache cannot be resolved to a type
         org.apache cannot be resolved
         org.apache cannot be resolved to a type
         org.apache cannot be resolved to a type
         org.apache cannot be resolved
         org.apache cannot be resolved
         org.apache cannot be resolved to a type
         org.apache cannot be resolved to a type
         org.apache cannot be resolved
         org.apache cannot be resolved
         org.apache cannot be resolved
         org.apache cannot be resolved to a type
         org.apache cannot be resolved
         org.apache cannot be resolved to a type
         org.apache cannot be resolved to a type
         org.apache cannot be resolved to a type
         org.apache cannot be resolved
         org.apache cannot be resolved
         org.apache cannot be resolved to a type
         org.apache cannot be resolved to a type
         org.apache cannot be resolved
         org.apache cannot be resolved
         org.apache cannot be resolved
         org.apache cannot be resolved to a type
         org.apache cannot be resolved
         org.apache cannot be resolved to a type
         org.apache cannot be resolved to a type
         org.apache cannot be resolved
         org.apache cannot be resolved
         org.apache cannot be resolved to a type
         org.apache cannot be resolved to a type
         org.apache cannot be resolved
         org.apache cannot be resolved
         org.apache cannot be resolved
         org.apache cannot be resolved to a type
         org.apache cannot be resolved
         org.apache cannot be resolved to a type
         org.apache cannot be resolved to a type
         org.apache cannot be resolved to a type
         org.apache cannot be resolved to a type
         org.apache cannot be resolved to a type
         org.apache cannot be resolved to a type
         org.apache cannot be resolved to a type
         org.apache cannot be resolved to a type
         org.apache cannot be resolved to a type
         at ws.example.TemperatureConverterStub.<init>(TemperatureConverterStub.java:17)
         at ws.example.TemperatureConverterServiceClient.main(TemperatureConverterServiceClient.java:8)If you want I can post the files too.

  • JspWriter cannot be resolved to a type

    The following is CheckAddress.jsp page which checks if the form has the name and phone fields filled in or not. If not then it must print the errors. But the problem I am having is that the Eclipse is showing me the error "JspWriter cannot be resolved to a type".
    If I ignore this error and run the page in the j2ee preview server in eclipse than I get the following error:
    >
    Unable to compile class for JSP
    An error occurred at line: 22 in the jsp file: /CheckAddress.jsp
    Generated servlet error:
    The method prinln(String) is undefined for the type JspWriter
    An error occurred at line: 22 in the jsp file: /CheckAddress.jsp
    Generated servlet error:
    The method prinln(String) is undefined for the type JspWriter
    An error occurred at line: 22 in the jsp file: /CheckAddress.jsp
    Generated servlet error:
    The method prinln(String) is undefined for the type JspWriter
    Caused by:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    >
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
        pageEncoding="ISO-8859-1"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <%--Provide Directives to inform JSP of packages needed--%>
    <%@page language="java" import="java.util.*"%>
    <%@page language="java" import="java.io.*"%>
    <%--Specify JSTL tag library for use --%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <meta http-equiv="Content-Type" content="text/html; charaset=ISO-8859-1">
    <title>Check Address</title>
    </head>
    <body>
    <%--Declare the java bean for the addresslist to be queried --%>
         <jsp:useBean id="dbab" class="addressBean.DBAddressBean" />
    <%--Use JSP scripting elements to define two methods --%>
    <%!
         List<String> checkAddress(String Name, String Phone){
          List<String> errors = new ArrayList<String>();
          if((Name == null) || (Name.equals(""))){
               errors.add("Name must not be blank");
          if((Phone == null)||(Phone.equals(""))){
               errors.add("Phone must not be blank");
          return errors;
         void printErrors(JspWriter out, List<String> errors) throws IOException{
              //Report the errors
              out.prinln("<p class=\"error1\">The following errors occured: <br />");
              out.prinln("<ul>");
              Iterator<String> i = errors.iterator();
              while(i.hasNext()){
                   out.println("<li type=\"disc\">"+i.next()+"</li>");
              out.prinln("</ul></p><p><b>please try again</b></p><br />");
    %>     
    <%--Use the internal Scriptlet to call an internal method and get the request parameters with the form info--%>
    <%
         List<String> errors = checkAddress(request.getParameter("Name"), request.getParameter("Phone"));
    %>
    <%--Use JSTL tags to get the values of the parameters for all of the form info --%>
         <c:set var="aid" value="${param.aid}"/>
         <c:set var="Name" value="${param.Name}"/>
         <c:set var="Street" value="${param.Street}"/>
         <c:set var="City" value="${param.City}"/>
         <c:set var="State" value="${param.State}"/>
         <c:set var="Zip" value="${param.Zip}"/>
         <c:set var="Phone" value="${param.Phone}"/>
    <%--Use JSP elements to set the values in the Java Beans--%>
         <jsp:setProperty name="dbab" property="id" value="${aid}"/>
         <jsp:setProperty name="dbab" property="name" value="${Name}"/>
         <jsp:setProperty name="dbab" property="street" value="${Street}"/>
         <jsp:setProperty name="dbab" property="city" value="${City}"/>
         <jsp:setProperty name="dbab" property="state" value="${State}"/>
         <jsp:setProperty name="dbab" property="zip" value="${Zip}"/>
         <jsp:setProperty name="dbab" property="phone" value="${Phone}"/>
    <%--Use the scriptlet to determine where to go now --%>
    <%--Notice how the JSP element tag is used within the scriptlet, the scriptlet needs to be "closed" and "reopened"--%>
    <%
         if(errors.size()==0){
              dbab.saveChanges();
              response.sendRedirect("AddressList.jsp");
         }else{
              //print errors
              printErrors(out, errors);
    %>          
         <jsp:include page="EditAddress.jsp"/>
    <%
    %>     
    </body>
    Edited by: blinkaj on Apr 18, 2010 2:15 AM

    Thanks elOpalo, even though eclipse is still showing the error, things are running fine after I rectified my typing mistake about the prinln. :)

  • HashTable cannot be resolved to a Type

    Hey Guys,
    I want to use a HashTable to assign Integer object values to the to String keys defined by the getActionCommand() methods of an array of JButtons. Now I tried to construct a HashTable like this:
    private HashTable<String, Integer> commandParser = new HashTable<String, Integer>();Eclipse gives me the error "HashTable cannot be resolved to a Type" .
    I thought I had done it all as was stated in the APIs. What?s wrong here?
    Sum1 hlp pls i cant figger ths oot ;-)
    EDIT: While I?m here, I get a warning:
    The serializable class BuildPane does not declare a static final serialVersionUID field of type long
    for every one of my classes.
    What is that about? I ignored it because it?s just a warning, but always safe, never sorry.
    Edited by: AikmanAgain on Mar 29, 2008 5:29 AM

    AikmanAgain wrote:
    Hey Guys,
    I want to use a HashTable to assign Integer object values to the to String keys defined by the getActionCommand() methods of an array of JButtons. Now I tried to construct a HashTable like this:
    private HashTable<String, Integer> commandParser = new HashTable<String, Integer>();Eclipse gives me the error "HashTable cannot be resolved to a Type" .
    I thought I had done it all as was stated in the APIs. What?s wrong here?There is no class called HashTable in the JRE. Look again ... and remember Java is case sensitive.
    The serializable class BuildPane does not declare a static final serialVersionUID field of type long
    for every one of my classes.
    What is that about? I ignored it because it?s just a warning, but always safe, never sorry.The serialVersionUID is a field that's used in serialization (as the name and the warning should have suggested).
    Google for any serialization tutorial and you'll learn what it's good for.

  • File cannot be resolved to a type

    In my JSP page, I am trying to find the existance of a file on the server. I have a method which checks for the file and return the result. I am using this JSP as declaration and then using its methods in html tags. It seems fine to me, but I am getting this error at the very begining of my JSP declaration tag ie "<%! ". Can anyone suggest something ?
    error message is:
    "org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 2 in the jsp file: /fastran.jsp
    Generated servlet error:
    File cannot be resolved to a type"
    Here is my JSP Page:
    <%!
    String f3 = "ftn03" ;
    String f3not = "ftn03 file not uploaded";
    String f7 = "ftn07" ;
    String f7not = "ftn07 file not uploaded";
    String f9 = "ftn09" ;
    String f9not = "ftn09 file not uploaded";
    public String checkFile3()
        File ch3 = new File("C:\\JBoss\\jboss-4.0.5.GA\\bin\\Fastran\\ftn03") ;
        if (ch3.exists() == true)
            return f3 ;
        else
            return f3not ;
    public String checkFile7()
        File ch7 = new File("C:\\JBoss\\jboss-4.0.5.GA\\bin\\Fastran\\ftn07") ;
        if (ch7.exists() == true)
            return f7 ;
        else
            return f7not ;
    public String checkFile9()
        File ch9 = new File("C:\\JBoss\\jboss-4.0.5.GA\\bin\\Fastran\\ftn09") ;
        if (ch9.exists() == true)
            return f9 ;
        else
            return f9not ;
    %>
    <html>
    <head>
    <title> Fastran </title>     
    </head>
    <body>
    <img src="logo.jpeg" width="101" height="75" align = "Right">
    <img src="h_corporate_center.jpg" width="622" height="102">
    <b>
    <form method="post" action="upload.jsp" name="submit" enctype="multipart/form-data">
    Upload Files: <input type="file" name="filefield" >��<input type="submit" name="submit" value="Upload"><br>
    <font color = "Red"><h5>(ftn03,ftn07, and ftn09)</h5></font><br><br><br>
    Uploaded files :
    <%= checkFile3() %>
    <%= checkFile7() %>
    <%= checkFile9() %>
    <br><br><br><br><br><br><br><br><br><br><br><br>
    <input type=button onClick="location.href='logintest.jsp'" value='Home'>  <input type=button onClick="location.href='processForm.jsp'" value='Proceed'><br>
    </form>
    </body>
    </html>Message was edited by:
    NasirMunir

    grrrrrrrrrrrrrrrrr, my bad.
    Thanks a lot for pointing that out. Sometimes one can
    miss such simple things. embarrassed
    don't be embarrassed. people a lot smarter than you or I have made much more stupid mistakes

  • [JSP] UserTransaction cannot be resolved to a type

    I have a JSP page that uses the UserTransaction type, but iam getting an error:
    UserTransaction cannot be resolved to a typeI have imported UserTransaction using this code:
    <%@ page import="java.sql.*,javax.transaction.*" %>Is there a separate Jar for UserTransaction that needed to be copied to the classpath?

    The implementation is provided by your container so check in your container's jee jar.

Maybe you are looking for

  • Distiller error when trying to save book as pdf

    I haven't used FrameMaker since about version 5 or 6, but recently I have picked up a few client jobs requiring RoboHelp and FrameMaker. I tearfully parted with the funds for TS 4, crossing my fingers that the investment would pay itself off. I have

  • Using row numbers in sql

    I want to do a select query based on row numbers and was wondering if its possible. for example, select * from TABLE where rownumber = x; Thanks.

  • M-audio drivers and Mavericks

    I use an old M-audio Firewire 410 audio interface. The drivers, which have not been supported since OSX 7, worked fine with Mountain Lion, but will they be okay with Mavericks?

  • Opera and flash problems

    Hi. I'm trying to use opera (9.25-2) with flashplugin (9.0.115.0-2). Doesn't seem to work at all. It just loads a white frame - on mouseover it says "click to activate and use this control". Got any clue? Any version of flashplugin that supports 9.25

  • Quick Question about charging port

    ---I had the issue today of my phone randomly making the "charge initiation" noise well after I had plugged it in. Almost as if it had stopped charging for a split second and then reinitiated. Very curious if this would be related to the charging por