Trouble compiling servlet example

Hi All, I am trying out an example for servlets and I ran into trouble compiling the the file called "FormProcessingServlet.java" in tutorial located here: http://developer.java.sun.com/developer/onlineTraining/Servlets/Fundamentals/magercises/FormPostingAndProcessing/index.html
The exact problem happens in this line:
isStructure = context.getResourceAsStream(paramStructureFile[0]);
The error says:
FormProcessingServlet.java:127: cannot resolve symbol
symbol : method getResourceAsStream (java.lang.String)
location: interface javax.servlet.ServletContext
isStructure = context.getResourceAsStream(paramStructureFile[0]);
anyone else ran into this problem? How do I fix this? Thanks.

"cannot resolve symbol" means that the JVM can't find a particular class.
Adjust your systems classpath variable to include all the jar files that you use, I also add "." to include files in the current directory I'm working from.

Similar Messages

  • Trouble compiling servlets with J2SE 5

    Hello,
    I've been using Sun 1 Studio CE, and more recently, Netbeans 3.6, with J2SE 1.4.2. I have some basic swing applets and servlets that I wrote for my business' web site.
    I recently downloaded and installed the new software bundle containing Netbeans 4.0 and J2SE 1.5. When I try to compile my servlets, I get a compiler error that packages javax.servlet.* and javax.servlet.http.* do not exist.
    I reinstalled J2SE 1.4.2 and Netbeans 3.6 and the servlets compile fine.
    Why is JDK 5 not able to find these packages? My understanding is that they're part of the Java Servlet API, which I never explicitly downloaded previously. Is that the piece of the puzzle that I'm missing? Please help!
    Thanks

    Thanks for your response...
    What is interesting is that I never explicitly installed the Servlet API. Out of curiosity, I searched my computer for servlet*.jar and came up with 13 files including:
    servlet-2.2.jar
    servlet-2.3.jar
    servlet-api-2.4.jar
    These were located in subdirectories under Netbeans 3.6 and Tomcat 5.0.19. Therefore, I'm assuming that when I downloaded the JDK 1.4.2/Netbeans 3.6 bundle from the Java site, the Servlet API must have been part of the bundle.
    ****Let me check something...***
    I've just done the same search for servlet*.jar on my test PC, which has the Netbeans 4.0/JDK 5 bundle installed. The same files exist, in the same locations(almost the same, anyway; the Tomcat and Netbeans 4 directory structures are a little different).
    Both software bundles contain the same files, yet 1.4.2 compiles without any problems or additional configuration. In other words, I reinstalled the old 1.4.2/ Netbeans 3.6 bundle, took my existing source code, and started compiling.
    Any ideas why the same isn't true for JDK 5/Netbeans 4? I know there are changes to the way Netbeans 4.0 deals with Class Paths, but I thought that was for the classes I've written. Shouldn't the compiler be able to find the servlet API, since it bundled/installed with everything else?
    Thanks

  • Trouble compiling Servlets... simple problem?

    PATH: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\PROGRA~1\ULTRAE~1;C:\j2sdk1.4.0\bin;C:\j2sdkee1.3.1\bin
    CLASSPATH: C:\j2sdkee1.3.1\lib\j2ee.jar;C:\j2sdkee1.3.1\lib\j2eetool.jar
    Yet for some reason I can't compile anything using the servlet packages. I had been able to compile in the past, but I added a new value to the PATH and CLASSPATH variables to try to get Tomcat4.0.1 to work, and then this morning I ceased to be able to compile. So I went back to my old values and can't compile! (DataServlet.java:3: package javax.servlet does not exist
    import javax.servlet.*; )
    Please help. Thank you.

    Ok, I just wrote this post, closed the command prompt I was trying to compile in, reopened another, and tried to compile again and it worked. Can someone tell me what this is about?

  • Trouble compiling jndi examples in Java Studio

    I am having difficulty compiling the jndi example below.
    I included the errors below the code.
    Any ideas?
    import javax.naming.*;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.naming.directory.*;
    import java.util.Hashtable;
    public class lookup {
    /** Creates a new instance of lookup */
    public lookup() {
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.fscontext.RefFSContextFactory");
    Context ctx = new InitialContext(env);
    methodist/pacs/ldap/lookup.java [26:1] <identifier> expected
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.fscontext.RefFSContextFactory");
    ^
    methodist/pacs/ldap/lookup.java [26:1] package env does not exist
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.fscontext.RefFSContextFactory");
    ^
    2 errors
    Errors compiling lookup.

    I learn a lesson about not expecting samples file to
    be fully functional.That's true.

  • Compiled Tomcat Servlet Example & got JAR, not WAR?

    Is there a basic reference on how to create a simple servlet with NetBeans 4.1 and deploy it to Tomcat?
    When I created the project I chose Samples->Web->Tomcat Servlet Example, and yet it does not create a WAR file on compilation.
    And of course once I'm past that I have to figure out how to edit the XML file, I gather.
    I need a reference that will hold me by the hand and walk me through it once to kick start me.
    After that I think I can make it without having to ask such newbie questions.

    Hi,
    not sure to what extent you are clear in build.xml file (done thru ant).
    what i can tell you is, ant creates any archive file (be it .jar, .war, .ear) with the tasks named "jar" (<jar jarfile="yourfilename.jar"..>), "war" and "ear". But both war and ear are the extensions of the jar only.
    You can achieve creation of any archive file with the jar task itself.
    you need to take care of the following...
    (1) you can /should edit the extension of the files at every stage.. first .jar and then .war and then .ear (if necessary) => basic flow
    (2) at every step, you have to have a file inclusion inside the corresponding archive file..
    say for example, for a .jar file you should include all the compiled .class files, and ejb-jar.xml (incase you use ejbs) and other built-in jar files....
    In case of .war files (web archive) you should include the web.xml file, any static files (html, jsp etc), any tld files - it goes with your application's nature and requirement.....
    fyi, i m including a sample build.xml file which i use for a webapplication, so it deals with war...
    <?xml version="1.0" encoding="UTF-8"?>
    <project name="ServletsReqDispFwd" default="deploy">
         <property name="top" value="."/>
         <property name="webinf" value="${top}/WEB-INF"/>
         <property name="lib" value="${webinf}/lib"></property>
         <property name="classes" value="WEB-INF/classes"/>
         <property name="jboss.dir" value="D:\jboss-3.2.2RC3\server\default\deploy"></property>
         <property name="tomcat.dir" value="D:\jakarta-tomcat-4.1.27\webapps"></property>
         <property name="warfile" value="ServletsReqDispFwd.war"></property>
         <property name="src" value="${top}/src"/>
         <property name="web.xml" value="WEB-INF/web.xml"/>
         <target name="package">
              <javac srcdir="${src}" destdir="${classes}"
                     listfiles="true" debug="true"  verbose="true"
                          classpath="${lib}/*.jar"/>
              <war warfile="${warfile}" webxml="${web.xml}">
                   <webinf dir="${top}">
                        <include name="**/*web*.xml"/>
                        <include name="**/*application*.xml"/>
                        <exclude name="src/**/*.xml"/>
                   </webinf>
                   <lib dir="${lib}">
                        <include name="*.jar"/>
                   </lib>
                   <fileset dir="." includes="**/*.html"/>                    
                   <classes dir="${classes}" includes="**/*.class"></classes>                         
              </war>
         </target>
         <target name="deploy" depends="clean,package">
              <copy file="${warfile}" todir="${tomcat.dir}" overwrite="true"></copy>
         </target>
         <target name="clean">
                <delete dir="${classes}">
                     <filename name="*.class"/>
              </delete>
              <delete>
                   <fileset dir="${top}" includes="${warfile}"/>
              </delete>
              <delete>
                   <fileset dir="${tomcat.dir}" includes="${warfile}"/>
              </delete>
         </target>
    </project>hope this contribues to a certain extent to help you edit the buildfile (xml file as you go) to meet your requirement.....

  • J2EE tutorial (June 17 '04) servlet example compilation error

    This is a copy of my previous post on the same topic, but this one has a more self-desriptive subject line. Apologies for duplication.
    I am trying the first servlet example in the J2EE tutorial, June 17, 2004, pgs 443 - 448. I have completed all the steps as described. However, the URL results in the following error. I would like to point out that I am using the URL http://localhost:8081/bookstore1/bookstore (instead of port 8080 because the admin console suggests that port 8081 is an available http port):
    Assistance would be appreciated.
    HTTP Status 404 - /bookstore1/bookstore
    type Status report
    message /bookstore1/bookstore
    description The requested resource (/bookstore1/bookstore) is not available.
    Sun-Java-System/Application-Server-PE-8.0
    I looked at the logviewer and there are 3 severe errors in the log:
    1. Application Server
    Log Entry Detail
    Details
    Timestamp: Aug 6, 2004 14:36:28.375
    Log Level: SEVERE
    Logger: javax.enterprise.system.container.web
    Name-Value Pairs:
    _ThreadID=12;
    Record Number: 754
    Message ID: WebModule[bookstore1]Exception sending context initialized event to listener instance of class listeners.ContextListener java.lang.NoClassDefFoundError
    Complete Message
    exception/OrderException
    at listeners.ContextListener.contextInitialized(Unknown Source)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3679)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4140)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:873)
    at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:171)
    at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:193)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:855)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:623)
    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:947)
    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:729)
    at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:147)
    at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:224)
    at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:488)
    at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:475)
    at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:302)
    at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:107)
    at com.sun.enterprise.admin.server.core.mbean.config.ManagedServerInstance.multicastEvent(ManagedServerInstance.java:3880)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.sun.enterprise.admin.server.core.jmx.Introspector.invokeMethodOn(Introspector.java:181)
    at com.sun.enterprise.admin.server.core.mbean.config.AdminBase.invoke(AdminBase.java:86)
    at com.sun.enterprise.admin.server.core.mbean.config.ConfigMBeanBase.invoke(ConfigMBeanBase.java:680)
    at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:221)
    at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:228)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:823)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:792)
    at sun.reflect.GeneratedMethodAccessor74.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)
    at $Proxy1.invoke(Unknown Source)
    at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:282)
    at com.sun.enterprise.deployment.phasing.DeploymentService.multicastEvent(DeploymentService.java:341)
    at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:284)
    at com.sun.enterprise.deployment.phasing.StartPhase.runPhase(StartPhase.java:115)
    at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:74)
    at com.sun.enterprise.deployment.phasing.DeploymentService.executePhases(DeploymentService.java:233)
    at com.sun.enterprise.deployment.phasing.DeploymentService.deploy(DeploymentService.java:150)
    at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.deploy(ApplicationsConfigMBean.java:275)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:287)
    at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:280)
    at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:221)
    at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:228)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:823)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:792)
    at sun.reflect.GeneratedMethodAccessor74.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)
    at $Proxy1.invoke(Unknown Source)
    at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:282)
    at com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:38)
    at com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:92)
    at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:69)
    at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:94)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:768)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
    at sun.reflect.GeneratedMethodAccessor78.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:289)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:311)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:205)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:283)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:102)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:192)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:261)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:215)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:583)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:200)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:180)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:582)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
    at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
    at com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:254)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
    at com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:161)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)
    at com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:979)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:692)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:647)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:691)
    at java.lang.Thread.run(Thread.java:534)
    2. Application Server
    Log Entry Detail
    Details
    Timestamp: Aug 6, 2004 14:36:28.375
    Log Level: SEVERE
    Logger: tomcat.server./bookstore1.Context
    Name-Value Pairs:
    _ThreadID=12;
    Record Number: 755
    Message ID:
    Complete Message
    Error listenerStart
    3. Application Server
    Log Entry Detail
    Details
    Timestamp: Aug 6, 2004 14:36:28.375
    Log Level: SEVERE
    Logger: tomcat.server./bookstore1.Context
    Name-Value Pairs:
    _ThreadID=12;
    Record Number: 756
    Message ID:
    Complete Message
    Context startup failed due to previous errors

    I had the same problem. It was caused by not including \j2eetutorial14\examples\web\bookstore\dist\bookstore.jar in the bookstore1.war. You may need to build the bookstore.jar file first if you haven�t already.

  • Not Able to compile Servlet from ?

    Hi All,
    I am not able to compile Servlet from my package:
    1) I Have set the CLASSPATH Variable using below line in System Variables:
    C:\CC4\prog\jakarta-tomcat-4.1.30\common\lib\servlet.jar
    2) Also Set the CATALINA_HOME with value
    C:\CC4\prog\jakarta-tomcat-4.1.30
    as per above setting servlet should be compiled but still i m getting error message:
    1) C:\CC4\prog\jakarta-tomcat-4.1.30\project\classes\com\example>javac ListenerTest
    er.java
    ListenerTester.java:17: cannot resolve symbol
    symbol : class Dog
    location: class com.example.ListenerTester
    Dog dog = (Dog) getServletContext().getAttribute("dog");
    ^
    ListenerTester.java:17: cannot resolve symbol
    symbol : class Dog
    location: class com.example.ListenerTester
    Dog dog = (Dog) getServletContext().getAttribute("dog");
    ^
    2 errors
    2) Error while compiling other file:
    C:\CC4\prog\jakarta-tomcat-4.1.30\project\classes\com\example>javac MyServletCon
    textListener.java
    MyServletContextListener.java:12: cannot resolve symbol
    symbol : class Dog
    location: class com.example.MyServletContextListener
    Dog d = new Dog(dogBreed);
    ^
    MyServletContextListener.java:12: cannot resolve symbol
    symbol : class Dog
    location: class com.example.MyServletContextListener
    Dog d = new Dog(dogBreed);
    ^
    2 errors
    So what could be the posible solution here :
    do reply !!!
    please
    Thanks
    prabhat

    I have added servlet.jar in the classpath. But the program is not compiling.The error message says that it can not find classes like ServletConfig, ServletException, Cookie etc. Please help.

  • Having trouble compiling

    I am a total newbie at programming and I am having trouble compiling. In the MS-DOS prompt, I located the folder where my .java file is located and typed the following:
    javac SampleProgram.java
    I received a "Bad command or file name" error. I am typing the names correctly. I am using Java 2 SDK, Standard Edition Version 1.3.1. Am I doing something wrong?
    Thanks for any help.

    That should fix it. The problem is that DOS needs to know where to find the executable files like javac.exe
    You can either set the path temporarily by typing
    SET PATH=.;c:\jdk1.3.1\bin
    at the command prompt each time you open a command window, or you can set it more permanently by adding it to your startup config. This will depend on your OS. On win 98 for example, there is an AUTOEXEC.BAT (usually with a SET PATH command already present). You could open this in notepad to add/change:
    SET PATH=C:\WINDOWS
    to
    SET PATH=C:\WINDOWS;.;C:\JDK1.3.1\BIN
    Reboot to make the changes take effect. Other OS's may have a special dialog to set this kind of command.
    Hope this helps some.

  • Compiling servlets

    I cant compile servlets.
    Im using tomcat and I tried to compile the servlets in the example seperately but theres always errors. However when I execute the file from the example folder it runs just nicely.
    This is an example of the error produced:
    equestInfoExample.java:22: package javax.servlet does not exist
    import javax.servlet.*;
    ^
    RequestInfoExample.java:23: package javax.servlet.http does not exist
    import javax.servlet.http.*;
    ^
    RequestInfoExample.java:25: package util does not exist
    import util.HTMLFilter;
    ^
    RequestInfoExample.java:33: cannot resolve symbol
    symbol : class HttpServlet
    location: class RequestInfoExample
    public class RequestInfoExample extends HttpServlet {
    ^
    RequestInfoExample.java:38: cannot resolve symbol
    symbol : class HttpServletRequest
    location: class RequestInfoExample
    public void doGet(HttpServletRequest request,
    ^
    RequestInfoExample.java:39: cannot resolve symbol
    symbol : class HttpServletResponse
    location: class RequestInfoExample
    HttpServletResponse response)
    ^
    RequestInfoExample.java:40: cannot resolve symbol
    symbol : class ServletException
    location: class RequestInfoExample
    throws IOException, ServletException
    ^
    RequestInfoExample.java:105: cannot resolve symbol
    symbol : class HttpServletRequest
    location: class RequestInfoExample
    public void doPost(HttpServletRequest request,
    ^
    RequestInfoExample.java:106: cannot resolve symbol
    symbol : class HttpServletResponse
    location: class RequestInfoExample
    HttpServletResponse response)
    ^
    RequestInfoExample.java:107: cannot resolve symbol
    symbol : class ServletException
    location: class RequestInfoExample
    throws IOException, ServletException
    ^
    RequestInfoExample.java:76: cannot resolve symbol
    symbol : variable HTMLFilter
    location: class RequestInfoExample
    out.println(HTMLFilter.filter(request.getRequestURI()));
    ^
    RequestInfoExample.java:84: cannot resolve symbol
    symbol : variable HTMLFilter
    location: class RequestInfoExample
    out.println(HTMLFilter.filter(request.getPathInfo()));
    ^
    12 errors
    why is this.
    Please someone help me here!!
    Thanks in advance.

    what ever the above steps had i done i got the same error
    httpservletrequest unable to resolve symbol
    what i made is mycomputer>properties>advaced>envirinment variables>path>C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\servlet-api.*;(as am i using tomcat 5)and
    in cmd prompt set classpath=C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\servlet-api.*;and
    in cmd prompt set path=C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\servlet-api.*;got the same result unable to resolve the symbol pls i need some ones help

  • Can I compiler servlet with java compiler?

    Can I compiler servlet with java compiler?
    Here is an example of it:
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class HelloWorldServlet extends HttpServlet
              protected void doGet(HttpServletRequest request,
              HttpServletResponse response) throws ServletException , IOException
                        response.setContentType("text/html");
                        PrintWriter out = response.getWriter();
                        StringBuffer sb = new StringBuffer();
                        sb.append("<html><body><h1>");
                        sb.append("Hello World");
                        sb.append("</h1></body></html>");
                        out.print(sb.toString());
                        out.close();
         }

    Can I compiler servlet with java compiler?
    yes.
    just include the correct jarfiles in your classpath.

  • Unable to compile servlets

    I am unable to compile a java servlet program.
    the message thrown ou by the compiler is
    "Class java.servlet not found in import"

    You need to find where the servlet.jar file is on your system. For example i'm running tomcat on a linux machine, this is what i type to compile servlets.
    javac -classpath /var/tomcat4/common/lib/servlet.jar yourFile.java

  • Compile Servlet

    when i try to compile servlet i got error message. it can't be identify servlet classes. why is that?
    some books mention about class path to fix that problem. but i can't understand.
    can any one explain little bit deep?
    * i am using windows xp and tomcat server.
    -thanks-

    hi,
    for example your tomcat in c:\tomcat5.0 means
    set classpath=c:\tomcat5.0\common\lib\servlet-api.jar
    or
    set classpath=c:\tomcat4.1\common\lib\servlet.jar
    or find servlet.jar or servlet-api.jar (thats depend upon your tomcat version)
    give classpath for that jar file
    and compile

  • Am getting the following error while running the servlet example

    Hi,
    am getting the following error while running the servlet example
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    java.lang.NullPointerException
         edu.dao.StudentDao.insertStudent(StudentDao.java:18)
         edu.servlet.StudentServlet.doGet(StudentServlet.java:25)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs.
    Thanks
    //sreekanth

    Hi,
    the following code i have written in StudentDao
    package edu.dao;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.SQLException;
    import org.apache.commons.dbutils.DbUtils;
    import edu.model.Student;
    import edu.util.DBUtil;
    public class StudentDao {
         public void insertStudent(Student student) {
              String stuQuery = "INSERT INTO STUDENT VALUES(?,?)";
              Connection connection = DBUtil.getConnection();
              PreparedStatement preparedStatement = null;
              try {
                   preparedStatement = connection.prepareStatement(stuQuery);
                   preparedStatement.setString(1,student.getStudentNo());
                   preparedStatement.setString(2, student.getStudentName());
                   preparedStatement.executeUpdate();
              } catch(SQLException e){
                   System.out.println("..Sql exception......");
              }finally {
                   DbUtils.closeQuietly(connection,preparedStatement,null);
    }

  • Unable to compile servlet files in javac

    i am unable to compile servlet *.java files in javac.as far as i can see my path is correct.
    Kindly provide a solution as soon as possible.
    My jdk1.3 is in my c drive and my tomcat in my d drive.
    if you are able to compile kindly let me know your path.
    it says symbol not resolved.i think that it is unable to import from javax

    Assuming that your jdk is in c drive as c:\jdk1.3 set the path and the classpath like as shown below. Remember that you have to set the classpath for the classes in the javax.servlet and javax.servlet.http packages. I know how to do it for JavaWebServer. JavaWebServer has a jar called servlet.jar that contains all these classes. What you need to do is to put this jar file in your classpath. There will be a similar jar file for Tomcat server also. You need to refer the Tomcat server documentation for that.
    The path and the classpath have to be set like this...
    d:\>path=%path%;.;c:\jdk1.3\bin;
    d:\>set classpath=%classpath%;.;c:\jdk1.3\lib;c:\JavaWebServer2.0\lib\servlet.jar;
    assuming tht JWS is installed in c:\JavaWebServer2.0
    Also note that there should be no spaces in between while setting the classpath. In your case you have to change the last part of the classpath to customize your requirement.
    Hope that will help.
    Regards
    Jaydeep

  • Trouble Compiling my Email-client

    Hi
    I have written this email -client, but have some trouble compiling it !
    Then I try to compile it the following errors:
    MailClient.java:350: <identifier> expected
    public syncronize void mails(String t){
    ^
    MailClient.java:727: ';' expected
    private class myWindowListener extends WindowAdapter{
    ^
    MailClient.java:747: '}' expected
    3 errors.
    What do I need to change to correct these errors ?
    I hope that there is somebody out there who can help me get my program to work.
    Thanks in advance.
    Sincrely Yours
    Fred
    import java.io.*;
    import java.awt.*;
    import java.util.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.tree.*;
    import javax.swing.event.*;
    public class MailClient extends JFrame implements ActionListener{ 
    private Sendman mySendman;
    private Letterman myLetterman;
    public Writer myWrite;
    public Reader myReader;
    public Composer myComposer;
    private Setup mySetup;
    public Addressbook myAdressbook;
    private FixTask myFixTask;
    private Filter myFilter;
    private Info myInfo;
    public Vector mailIndexVector = new Vector();
    public Vector filterIndexVector = new Vector();
    public Vector folderVector = new Vector();
    private JPanel tArea, trae, icon, tField;
    private JTextArea ta;
    private JScrollPane view, treeScroll;
    private JTree tree;
    public JTextField tf;
    private JSplitPane split;
    private Dimension Size;
    private MailClient myMailClient;
    private String mailBody, subject, from;
    public boolean fromOutbox = false;
    public boolean viewSource = false;
    public static void main (String[] args) {
         MailClient myMailClient = new MailClient();
    public MailClient() {
         super("Mail-Client");
         ImageIcon linux = new ImageIcon("linux.gif");
         this.setIconImage(linux.getImage());
         icon = new JPanel();
         icon.setLayout(new FlowLayout(FlowLayout.LEFT));
         ImageIcon neu = new ImageIcon("getmail.gif");
         JButton neueMails = new JButton(neu);
         newMails.setActionCommand("Getting new Mails");
         newMails.addActionListener(this);
         newMails.setBorderPainted(false);
         newMails.setToolTipText("Getting new Mails");
         ImageIcon cr = new ImageIcon("creator.gif");
         JButton creator = new JButton(cr);
         creator.setActionCommand("Creator open");
         creator.addActionListener(this);
         creator.setBorderPainted(false);
         creator.setToolTipText("Creator open");
         JButton rep = new JButton(new ImageIcon("reply.gif"));
         rep.setActionCommand("rep");
         rep.addActionListener(this);
         rep.setBorderPainted(false);
         rep.setToolTipText("Reply");
         JButton fwd = new JButton(new ImageIcon("fwd.gif"));
         fwd.setActionCommand("fwd");
         fwd.addActionListener(this);
         fwd.setBorderPainted(false);
         fwd.setToolTipText("Forward");
         JButton ein = new JButton(new ImageIcon("settings.gif"));
         ein.setActionCommand("settings open");
         ein.addActionListener(this);
         ein.setBorderPainted(false);
    ein.setToolTipText("Setting open");
    JButton adr = new JButton(new ImageIcon("adressbook.gif"));
    adr.setActionCommand("adr");
    adr.addActionListener(this);
    adr.setBorderPainted(false);
    adr.setToolTipText("Addressbook");
    JButton lo = new JButton(new ImageIcon("trash.gif"));
    lo.setActionCommand("trash");
    lo.addActionListener(this);
    lo.setBorderPainted(false);
    lo.setToolTipText("trash");
    JButton in = new JButton(new ImageIcon("info.gif"));
    in.setActionCommand("Information");
    in.addActionListener(this);
    in.setBorderPainted(false);
    in.setToolTipText("Information");
    icon.add(newMails);
    icon.add(creator);
    icon.add(rep);
    icon.add(fwd);
    icon.add(set);
    icon.add(adr);
    icon.add(lo);
    icon.add(in);
    Vector h1 = myLeser.lese("Summary.4on");
    for(int i=0; i<h1.size(); i+=7){
    String id = h1.elementAt(i).toString();
    String fo = h1.elementAt(i+1).toString();
    String su = h1.elementAt(i+2).toString();
    String fr = h1.elementAt(i+3).toString();
    String to = h1.elementAt(i+4).toString();
    String da = h1.elementAt(i+5).toString();
    String re = h1.elementAt(i+6).toString();
    MailIndex index = new MailIndex(id, fo, su, fr, to, da, re);
    mailIndexVector.addElement(index);
    Vector h2 = myReader.read("Filter.4on");
    for(int j=0; j<h2.size(); j+=3){
    String fo = h2.elementAt(j).toString();
    String from = h2.elementAt(j+1).toString();
    String te = h2.elementAt(j+2).toString();
    FilterIndex index = new FilterIndex(fo, from, te);
    filterIndexVector.addElement(index);
    folderVector = myReader.read("Folder.4on");
    DefaultMutableTreeNode top, inbox, outbox, sentbox, trash;
    top = new DefaultMutableTreeNode("mails");
    top.add(inbox = new DefaultMutableTreeNode("Inbox"));
    for(int i=0; i<mailIndexVector.size(); i++){
    MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
    if (m.folder.equals("Inbox"))
         inbox.add(new DefaultMutableTreeNode(m));
    top.add(outbox = new DefaultMutableTreeNode("Outbox"));
    for(int i=0; i<mailIndexVector.size(); i++){
    MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
    if (m.folder.equals("Outbox")){
         outbox.add(new DefaultMutableTreeNode(m));
    top.add(sentbox = new DefaultMutableTreeNode("Sentbox"));
    for(int i=0; i<mailIndexVector.size(); i++){
    MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
    if (m.folder.equals("Sentbox"))
         sentbox.add(new DefaultMutableTreeNode(m));
    for(int j=0; j<folderVector.size(); j++){
    top.add(trash =
         new DefaultMutableTreeNode(folderVector.elementAt(j).toString()));
    for(int i=0; i<mailIndexVector.size(); i++){
         MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
         if (m.folder.equals(folderVector.elementAt(j).toString()))
         trash.add(new DefaultMutableTreeNode(m));
    tree = new JTree(top);
    tree.getSelectionModel().setSelectionMode
    (TreeSelectionModel.SINGLE_TREE_SELECTION);
    tree.addTreeSelectionListener(new myTreeSelectionListener());
    treeScroll = new JScrollPane(tree);
    treeScroll.setFont(new Font("Monospaced",Font.PLAIN,6));
    baum.add("Center", treeScroll);
    MainMenu menuBar = new MainMenu(this, this);
    setJMenuBar(menuBar);
    setVisible(true);
    public void mailsFetcher() {
    myLetterman = new Letterman(this, mySetup);
    myLetterman.start();
    public void treeNewSign(){
    trae.remove(treeScroll);     
    DefaultMutableTreeNode top, inbox, outbox, sentbox, trash;
    top = new DefaultMutableTreeNode("mails");
    top.add(inbox = new DefaultMutableTreeNode("Inbox"));
    for(int i=0; i<mailIndexVector.size(); i++){
    MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
    if (m.folder.equals("Inbox"))
         inbox.add(new DefaultMutableTreeNode(m));
    top.add(outbox = new DefaultMutableTreeNode("Outbox"));
    for(int i=0; i<mailIndexVector.size(); i++){
    MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
    if (m.folder.equals("Outbox"))
         outbox.add(new DefaultMutableTreeNode(m));
    top.add(sentbox = new DefaultMutableTreeNode("Sentbox"));
    for(int i=0; i<mailIndexVector.size(); i++){
    MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
    if (m.folder.equals("Sentbox"))
         sentbox.add(new DefaultMutableTreeNode(m));
    for(int j=0; j<folderVector.size(); j++){
    top.add(trash =
         new DefaultMutableTreeNode(folderVector.elementAt(j).toString()));
    for(int i=0; i<mailIndexVector.size(); i++){
         MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
         if (m.folder.equals(folderVector.elementAt(j).toString()))
         trash.add(new DefaultMutableTreeNode(m));
    tree = new JTree(top);
    tree.getSelectionModel().setSelectionMode
    (TreeSelectionModel.SINGLE_TREE_SELECTION);
    tree.addTreeSelectionListener(new myTreeSelectionListener());
    treeScroll = new JScrollPane(tree);
    trae.add("Center", treeScroll);
    trae.repaint();
    setVisible(true);
    public void menuNewSign(){
    setJMenuBar(new MainMenu(this, this));
    setVisible(true);
    public String fromFilter (String t){
    String myFrom = "";
    int start, end;
    int a = t.indexOf("From:");
    if (a != -1){
    start = a + 6;
    ende = t.indexOf("\n",start);
    myFrom = t.substring(start,end);
    return myFrom;
    public String toFilter (String t){
    String myTo = "";
    int start, e1, e2, end;
    int a = t.indexOf("To:");
    if (a != -1){
    start = a + 4;
    end = t.indexOf("\n",start);
    myTo = t.substring(start,end);
    e1 = end + 1;
    if(t.substring(e1,e1+1).equals(" ")){
         while(t.substring(e1,e1+1).equals(" ")){
         while(t.substring(e1,e1+1).equals(" "))
         e1++;
         e2 = t.indexOf("\n",e1);
         myTo += " " + t.substring(e1,e2);
         e1 = e2 + 1;
    return myTo;
    public String dateFilter (String t){
    String myDate = "";
    int start, end;
    int a = t.indexOf("Date:");
    if (a != -1){
    start = a + 6;
    end = t.indexOf("\n",start);
    myDate = t.substring(start,end);
    return myDate;
    public String subjectFilter (String t){
    String mySubject = "";
    int start, end;
    int a = t.indexOf("Subject:");
    if (a != -1){
    start = a + 9;
    end = t.indexOf("\n",start);
    mySubject = t.substring(start,end);
    return mySubject;
    public String mailFilter (String t){ 
    String myMail = "";
    int start = 0, end = t.length();
    start = t.indexOf("\n\n") + 2;
    if (start != 1){
    int a = t.indexOf("\n\n" ,start);
    if (a != -1){
         if (t.indexOf(".",a+2) == a+2)
         if (t.indexOf("\n",a+3) == a+3)
         start = a;
    myMail = t.substring(start,end);
    return myMail;
    public void mailsRemark(String file){
    String mail = "", t = "";
    Vector mailVector = myReader.read(file);
    for (int i=0; i<mailVector.size(); i++)
    t += (String)mailVector.elementAt(i) + "\n";
    from = fromFilter(t);
    subject = subjectFilter(t);
    mailBody = mailFilter(t);
    mail += "Subject: " + subject + "\n";
    mail += "Date: " + dateFilter(t) + "\n";
    mail += "From: " + from + "\n";
    mail += "To: " + toFilter(t) + "\n";
    mail += "\n" + mailBody;
    if(viewSource == true)
    ta.setText(t);
    else
    ta.setText(mail);
    public syncronize void mails(String t){
    Status myStatus = new Status(this,t);
    myStatus.start();
    public void delete(){
    if(tree.getLastSelectedPathComponent() != null){
    DefaultMutableTreeNode node =
         (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
    if(node.isLeaf()){
         Object nodeInfo = node.getUserObject();
         if(nodeInfo instanceof MailIndex){
         MailIndex index = (MailIndex)nodeInfo;
         mailIndexVector.removeElement(index);
         int count = 0;
         for(int j=0; j<mailIndexVector.size(); j++){
         MailIndex index1 = (MailIndex)mailIndexVector.elementAt(j);
         String id = index1.mailId;
         if(id.equals(index.mailId))
         count++;
         if(count == 0){
         File home = new File(".");
         String mailsRemark = "." + home.separator + "data";
         File datei = new File(mailsRemark, index.mailId);
         datei.delete();
         treeNewSign();
         menuNewSign();
         else{
         String t = (String)nodeInfo;
         boolean toDelete = false;
         for (int i=0; i<folderVector.size(); i++){
         if(folderVector.elementAt(i).equals(t)){
         folderVector.removeElement(t);
         konnteLoeschen = true;
         if(toDelete == false){
         message("This folder can not be deleted!");
         treeNewSign();
    else
         message("Folder is not Empty! Please delete Your mails.");
    else
    message("No Mails where selected to be deleted!");
    public void forward(){
    if(from != null){
    creatorOeffnen();
    myCreator.tfSb.setText("Fwd to: " + subject);
    myCreator.ta.setText("<" + from + ">" + " wrote:\n\n" + mailBody +
                   "\n\n>\n>\n\n");
    public void reply(){
    if(from != null){
    creatorOeffnen();
    myCreator.tfTo.setText(from);
    myCreator.tfSb.setText("Reply to: " + subject);
    myCreator.ta.setText("<" + from + ">" + " wrote:\n\n" + mailBody +
                   "\n\n>\n>\n\n");
    public void end(){
    String h = "";
    for (int i=0; i<mailIndexVector.size(); i++){
    MailIndex index = (MailIndex)mailIndexVector.elementAt(i);
    h += index.mailId + "\n";
    h += index.folder + "\n";
    h += index.subject + "\n";
    h += index.from + "\n";
    h += index.to + "\n";
    h += index.date + "\n";
    h += index.read + "\n";
    myWriter.writer(h,"Summary.4on");
    String w = "";
    for (int l=0; l<filterIndexVector.size(); l++){
    FilterIndex index = (FilterIndex)filterIndexVector.elementAt(l);
    w += index.folder + "\n";
    w += index.from + "\n";
    w += index.text + "\n";
    myWriter.write(w,"Filter.4on");
    String k = "";
    for(int j=0; j<folderVector.size(); j++)
    k += folderVector.elementAt(j).toString() + "\n";
    myWriter.writer(k,"Folder.4on");
    String t = "";
    for (int l=0; l<myAddressBook.addressIndexVector.size(); l++){
    AddressIndex aindex =
         (AddressIndex)myAdressBook.adressIndexVector.elementAt(l);
    t += aindex.alias + "\n";
    t += aindex.email + "\n";
    myWriter.write(t,"Address.4on");
    setVisible(false);
    dispose();
    System.exit(0);
    public void filterOpen(){
    boolean test = false;
    if(tree.getLastSelectedPathComponent() != null){
    DefaultMutableTreeNode node =
         (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
    Object nodeInfo = node.getUserObject();
    if(nodeInfo instanceof String){
         myFilter.folder = (String)nodeInfo;
         for(int i=0; i<filterIndexVector.size(); i++){
         FilterIndex h = (FilterIndex)filterIndexVector.elementAt(i);
         if(h.folder.equals(nodeInfo)){
         myFilter.index = h;
         test = true;
         if(h.from.equals("")){
         myFilter.box1 = false;
         myFilter.fTf.setText("");
         myFilter.fBox.setSelected(false);
         myFilter.fTf.setEditable(false);
         else{
         myFilter.box1 = true;
         myFilter.fTf.setText(h.from);
         myFilter.fBox.setSelected(true);
         myFilter.fTf.setEditable(true);
         if(h.text.equals("")){
         myFilter.box2 = false;
         myFilter.tTf.setText("");
         myFilter.tBox.setSelected(false);
         myFilter.tTf.setEditable(false);
         else{
         myFilter.box2 = true;
         myFilter.tTf.setText(h.text);
         myFilter.tBox.setSelected(true);
         myFilter.tTf.setEditable(true);
         break;
    myFilter.setVisible(true);
    myFilter.fBox.requestFocus();
    else
    meldung("No selection");
    public void sendOutbox(){
    fromOutbox = true;
    int i;
    Block1:
    for(i=0; i<mailIndexVector.size(); i++){
    MailIndex index = (MailIndex)mailIndexVector.elementAt(i);
    if(index.folder.equals("Outbox")){
         Vector mailVector = myReader.read(index.mailId);
    Block2:
         for(int j=0; j<mailVector.size(); j++){
         String m = (String)mailVector.elementAt(j);
         if(m.indexOf("Subject:") != -1){
         for(int k=0; k<=j+1; k++){
         mailVector.removeElementAt(0);
         break Block2;
         Vector toVector = new Vector();
         int tEnd = 1;
         String line = "";
         String t = index.to;
         while (tEnd != -1){
         tEnd = t.indexOf(", ");
         if (tEnd == -1)
         line = t;
         else
         line = t.substring(0,tEnd);
         t = t.substring(tEnd + 1);
         toVector.addElement(line);
         File home = new File(".");
         String mailsVerzeichnis = "." + home.separator + "data";
         File datei = new File(mailsRemark, index.mailId);
         datei.delete();
         mySendman = new Sendman(mailVector, toVector, index.subject,
         ailsAnzeig               mySetup, this);
         mySendman.start();
         mailIndexVector.removeElement(index);
         break Block1;
    if(i == mailIndexVector.size())
    fromOutbox = false;
    treeNewSign();
    public void partion(String cmd){
    if(tree.getLastSelectedPathComponent() != null){
    DefaultMutableTreeNode node =
         (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
    Object nodeInfo = node.getUserObject();
    if(nodeInfo instanceof MailIndex){
         MailIndex index = (MailIndex)nodeInfo;
         index.folder = cmd.substring(13).toString();
         treeNewSign();
    else
    meldung("No mails to partion!");
    public void SetupOpen(){
    if (mySetup.savePassword == false)
    mySetup.pTf.setText("");
    mySetup.setVisible(true);
    mySetup.aTf.requestFocus();
    public void addressbookOpen(){
    myAddressBook.setVisible(true);
    myAdressBook.tree.requestFocus();
    public void creatorOpen(){
    myCreator.setVisible(true);
    myCreator.tfTo.requestFocus();
    public void actionPerformed(ActionEvent event){
    Object obj = event.getSource();
    if (obj instanceof JMenuItem){
    String cmd = event.getActionCommand();
    if (cmd.equals("New fetched")){
         mailsfetch();
    else if (cmd.equals("Written new mails")) {
         creatorOpen();
    else if (cmd.equals("Reply")) {
         reply();
    else if (cmd.equals("Forward")) {
         forward();
    else if (cmd.equals("Outbox")) {
         sendOutbox();
    else if (cmd.equals("Delete")) {
         delete();
    else if ((cmd.length() >13) &&
         (cmd.substring(0,13).equals("Sorting-"))){
         sorting(cmd);
    else if (cmd.equals("Using Addressbook")){
         addressbookOpen();
    else if (cmd.equals("Filter working")){
         filterOpen();
    else if (cmd.equals("New Order")){
         myFixTask.tf.setText("");
         myFixTask.setVisible(true);
         myFixTask.tf.requestFocus();
    else if (cmd.equals("delete")){
         delete();
    else if ((cmd.length() >7) &&
         (cmd.substring(0,7).equals("nobody"))){
         if(viewSource == false){
         viewSource = true;
         menuNewSign();
         if(tree.getLastSelectedPathComponent() != null){
         DefaultMutableTreeNode node =
         (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
         Object nodeInfo = node.getUserObject();
         if(nodeInfo instanceof MailIndex){
         MailIndex index = (MailIndex)nodeInfo;
         mailsRemark(index.mailId);
         else{
         viewSource = false;
         menuNeuZeichnen();
         if(tree.getLastSelectedPathComponent() != null){
         DefaultMutableTreeNode node =
         (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
         Object nodeInfo = node.getUserObject();
         if(nodeInfo instanceof MailIndex){
         MailIndex index = (MailIndex)nodeInfo;
         mailsRemark(index.mailId);
    else if (cmd.equals("Setup")){
         SetupOpen();
    else if (obj instanceof JButton){
    String cmd = event.getActionCommand();
    if (cmd.equals("aga")){
         mailsHolen();
    else if (cmd.equals("Creator Open")){
         creatorOpem();
    else if(cmd.equals("rep")){
         reply();
    else if(cmd.equals("fwd")){
         forward();
    else if(cmd.equals("Setup Open")){
    SetupOpen();
    else if(cmd.equals("adr")){
         addressbookOpen();
    else if(cmd.equals("delete")){
         delete();
    else if(cmd.equals("Information")){
         myInfo.setVisible(true);
         myInfo.b.requestFocus();
    private class myWindowListener extends WindowAdapter{
    public void windowClosing(WindowEvent event){
    end();
    private class myTreeSelectionListener implements TreeSelectionListener{
    public void valueChanged(TreeSelectionEvent e) {
    DefaultMutableTreeNode node =
         (DefaultMutableTreeNode)(e.getPath().getLastPathComponent());
    Object nodeInfo = node.getUserObject();
    if(nodeInfo instanceof MailIndex){
         MailIndex index = (MailIndex)nodeInfo;
         mailsAnzeigen(index.mailId);
         index.read = "Yes";

    Some suggestions:
    1. as the others stated- you should really post specific questions rather than 1 huge ugly class!
    2. use code tags
    3. get a decent IDE- it would take about 1 minute to then see where the error is-
    4. the rrors were just misspelled 'synchronized' and missing argument ','
    5. Try not to make such huge classes!!- Try to follow certain coding "patterns"- like MVC- and not stick everything in 1 class- separate the functionality- it makes coding much easier!
    here is fixed code (at least gets rid of those last errors):
    import java.io.*;
    import java.awt.*;
    import java.util.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.tree.*;
    import javax.swing.event.*;
    public class MailClient extends JFrame implements ActionListener{
      private Sendman mySendman;
      private Letterman myLetterman;
      public Writer myWrite;
      public Reader myReader;
      public Composer myComposer;
      private Setup mySetup;
      public Addressbook myAdressbook;
      private FixTask myFixTask;
      private Filter myFilter;
      private Info myInfo;
      public Vector mailIndexVector = new Vector();
      public Vector filterIndexVector = new Vector();
      public Vector folderVector = new Vector();
      private JPanel tArea, trae, icon, tField;
      private JTextArea ta;
      private JScrollPane view, treeScroll;
      private JTree tree;
      public JTextField tf;
      private JSplitPane split;
      private Dimension Size;
      private MailClient myMailClient;
      private String mailBody, subject, from;
      public boolean fromOutbox = false;
      public boolean viewSource = false;
      public static void main (String[] args) {
        MailClient myMailClient = new MailClient();
      public MailClient() {
        super("Mail-Client");
        ImageIcon linux = new ImageIcon("linux.gif");
        this.setIconImage(linux.getImage());
        icon = new JPanel();
        icon.setLayout(new FlowLayout(FlowLayout.LEFT));
        ImageIcon neu = new ImageIcon("getmail.gif");
        JButton neueMails = new JButton(neu);
        newMails.setActionCommand("Getting new Mails");
        newMails.addActionListener(this);
        newMails.setBorderPainted(false);
        newMails.setToolTipText("Getting new Mails");
        ImageIcon cr = new ImageIcon("creator.gif");
        JButton creator = new JButton(cr);
        creator.setActionCommand("Creator open");
        creator.addActionListener(this);
        creator.setBorderPainted(false);
        creator.setToolTipText("Creator open");
        JButton rep = new JButton(new ImageIcon("reply.gif"));
        rep.setActionCommand("rep");
        rep.addActionListener(this);
        rep.setBorderPainted(false);
        rep.setToolTipText("Reply");
        JButton fwd = new JButton(new ImageIcon("fwd.gif"));
        fwd.setActionCommand("fwd");
        fwd.addActionListener(this);
        fwd.setBorderPainted(false);
        fwd.setToolTipText("Forward");
        JButton ein = new JButton(new ImageIcon("settings.gif"));
        ein.setActionCommand("settings open");
        ein.addActionListener(this);
        ein.setBorderPainted(false);
        ein.setToolTipText("Setting open");
        JButton adr = new JButton(new ImageIcon("adressbook.gif"));
        adr.setActionCommand("adr");
        adr.addActionListener(this);
        adr.setBorderPainted(false);
        adr.setToolTipText("Addressbook");
        JButton lo = new JButton(new ImageIcon("trash.gif"));
        lo.setActionCommand("trash");
        lo.addActionListener(this);
        lo.setBorderPainted(false);
        lo.setToolTipText("trash");
        JButton in = new JButton(new ImageIcon("info.gif"));
        in.setActionCommand("Information");
        in.addActionListener(this);
        in.setBorderPainted(false);
        in.setToolTipText("Information");
        icon.add(newMails);
        icon.add(creator);
        icon.add(rep);
        icon.add(fwd);
        icon.add(set);
        icon.add(adr);
        icon.add(lo);
        icon.add(in);
        Vector h1 = myLeser.lese("Summary.4on");
        for(int i=0; i<h1.size(); i+=7){
          String id = h1.elementAt(i).toString();
          String fo = h1.elementAt(i+1).toString();
          String su = h1.elementAt(i+2).toString();
          String fr = h1.elementAt(i+3).toString();
          String to = h1.elementAt(i+4).toString();
          String da = h1.elementAt(i+5).toString();
          String re = h1.elementAt(i+6).toString();
          MailIndex index = new MailIndex(id, fo, su, fr, to, da, re);
          mailIndexVector.addElement(index);
        Vector h2 = myReader.read("Filter.4on");
        for(int j=0; j<h2.size(); j+=3){
          String fo = h2.elementAt(j).toString();
          String from = h2.elementAt(j+1).toString();
          String te = h2.elementAt(j+2).toString();
          FilterIndex index = new FilterIndex(fo, from, te);
          filterIndexVector.addElement(index);
        folderVector = myReader.read("Folder.4on");
        DefaultMutableTreeNode top, inbox, outbox, sentbox, trash;
        top = new DefaultMutableTreeNode("mails");
        top.add(inbox = new DefaultMutableTreeNode("Inbox"));
        for(int i=0; i<mailIndexVector.size(); i++){
          MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
          if (m.folder.equals("Inbox"))
            inbox.add(new DefaultMutableTreeNode(m));
        top.add(outbox = new DefaultMutableTreeNode("Outbox"));
        for(int i=0; i<mailIndexVector.size(); i++){
          MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
          if (m.folder.equals("Outbox")){
            outbox.add(new DefaultMutableTreeNode(m));
        top.add(sentbox = new DefaultMutableTreeNode("Sentbox"));
        for(int i=0; i<mailIndexVector.size(); i++){
          MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
          if (m.folder.equals("Sentbox"))
            sentbox.add(new DefaultMutableTreeNode(m));
        for(int j=0; j<folderVector.size(); j++){
          top.add(trash =
          new DefaultMutableTreeNode(folderVector.elementAt(j).toString()));
          for(int i=0; i<mailIndexVector.size(); i++){
            MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
            if (m.folder.equals(folderVector.elementAt(j).toString()))
              trash.add(new DefaultMutableTreeNode(m));
        tree = new JTree(top);
        tree.getSelectionModel().setSelectionMode
        (TreeSelectionModel.SINGLE_TREE_SELECTION);
        tree.addTreeSelectionListener(new myTreeSelectionListener());
        treeScroll = new JScrollPane(tree);
        treeScroll.setFont(new Font("Monospaced",Font.PLAIN,6));
        baum.add("Center", treeScroll);
        MainMenu menuBar = new MainMenu(this, this);
        setJMenuBar(menuBar);
        setVisible(true);
      public void mailsFetcher() {
        myLetterman = new Letterman(this, mySetup);
        myLetterman.start();
      public void treeNewSign(){
        trae.remove(treeScroll);
        DefaultMutableTreeNode top, inbox, outbox, sentbox, trash;
        top = new DefaultMutableTreeNode("mails");
        top.add(inbox = new DefaultMutableTreeNode("Inbox"));
        for(int i=0; i<mailIndexVector.size(); i++){
          MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
          if (m.folder.equals("Inbox"))
            inbox.add(new DefaultMutableTreeNode(m));
        top.add(outbox = new DefaultMutableTreeNode("Outbox"));
        for(int i=0; i<mailIndexVector.size(); i++){
          MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
          if (m.folder.equals("Outbox"))
            outbox.add(new DefaultMutableTreeNode(m));
        top.add(sentbox = new DefaultMutableTreeNode("Sentbox"));
        for(int i=0; i<mailIndexVector.size(); i++){
          MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
          if (m.folder.equals("Sentbox"))
            sentbox.add(new DefaultMutableTreeNode(m));
        for(int j=0; j<folderVector.size(); j++){
          top.add(trash =
          new DefaultMutableTreeNode(folderVector.elementAt(j).toString()));
          for(int i=0; i<mailIndexVector.size(); i++){
            MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
            if (m.folder.equals(folderVector.elementAt(j).toString()))
              trash.add(new DefaultMutableTreeNode(m));
        tree = new JTree(top);
        tree.getSelectionModel().setSelectionMode
        (TreeSelectionModel.SINGLE_TREE_SELECTION);
        tree.addTreeSelectionListener(new myTreeSelectionListener());
        treeScroll = new JScrollPane(tree);
        trae.add("Center", treeScroll);
        trae.repaint();
        setVisible(true);
      public void menuNewSign(){
        setJMenuBar(new MainMenu(this, this));
        setVisible(true);
      public String fromFilter (String t){
        String myFrom = "";
        int start, end;
        int a = t.indexOf("From:");
        if (a != -1){
          start = a + 6;
          ende = t.indexOf("\n",start);
          myFrom = t.substring(start,end);
        return myFrom;
      public String toFilter (String t){
        String myTo = "";
        int start, e1, e2, end;
        int a = t.indexOf("To:");
        if (a != -1){
          start = a + 4;
          end = t.indexOf("\n",start);
          myTo = t.substring(start,end);
          e1 = end + 1;
          if(t.substring(e1,e1+1).equals(" ")){
            while(t.substring(e1,e1+1).equals(" ")){
              while(t.substring(e1,e1+1).equals(" "))
                e1++;
              e2 = t.indexOf("\n",e1);
              myTo += " " + t.substring(e1,e2);
              e1 = e2 + 1;
        return myTo;
      public String dateFilter (String t){
        String myDate = "";
        int start, end;
        int a = t.indexOf("Date:");
        if (a != -1){
          start = a + 6;
          end = t.indexOf("\n",start);
          myDate = t.substring(start,end);
        return myDate;
      public String subjectFilter (String t){
        String mySubject = "";
        int start, end;
        int a = t.indexOf("Subject:");
        if (a != -1){
          start = a + 9;
          end = t.indexOf("\n",start);
          mySubject = t.substring(start,end);
        return mySubject;
      public String mailFilter (String t){
        String myMail = "";
        int start = 0, end = t.length();
        start = t.indexOf("\n\n") + 2;
        if (start != 1){
          int a = t.indexOf("\n\n" ,start);
          if (a != -1){
            if (t.indexOf(".",a+2) == a+2)
              if (t.indexOf("\n",a+3) == a+3)
                start = a;
          myMail = t.substring(start,end);
        return myMail;
      public void mailsRemark(String file){
        String mail = "", t = "";
        Vector mailVector = myReader.read(file);
        for (int i=0; i<mailVector.size(); i++)
          t += (String)mailVector.elementAt(i) + "\n";
        from = fromFilter(t);
        subject = subjectFilter(t);
        mailBody = mailFilter(t);
        mail += "Subject: " + subject + "\n";
        mail += "Date: " + dateFilter(t) + "\n";
        mail += "From: " + from + "\n";
        mail += "To: " + toFilter(t) + "\n";
        mail += "\n" + mailBody;
        if(viewSource == true)
          ta.setText(t);
        else
          ta.setText(mail);
      public synchronized void mails(String t){
        Status myStatus = new Status(this,t);
        myStatus.start();
      public void delete(){
        if(tree.getLastSelectedPathComponent() != null){
          DefaultMutableTreeNode node =
              (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
          if(node.isLeaf()){
            Object nodeInfo = node.getUserObject();
            if(nodeInfo instanceof MailIndex){
              MailIndex index = (MailIndex)nodeInfo;
              mailIndexVector.removeElement(index);
              int count = 0;
              for(int j=0; j<mailIndexVector.size(); j++){
                MailIndex index1 = (MailIndex)mailIndexVector.elementAt(j);
                String id = index1.mailId;
                if(id.equals(index.mailId))
                  count++;
              if(count == 0){
                File home = new File(".");
                String mailsRemark = "." + home.separator + "data";
                File datei = new File(mailsRemark, index.mailId);
                datei.delete();
              treeNewSign();
              menuNewSign();
            else{
              String t = (String)nodeInfo;
              boolean toDelete = false;
              for (int i=0; i<folderVector.size(); i++){
                if(folderVector.elementAt(i).equals(t)){
                  folderVector.removeElement(t);
                  konnteLoeschen = true;
              if(toDelete == false){
                message("This folder can not be deleted!");
              treeNewSign();
          else
            message("Folder is not Empty! Please delete Your mails.");
        else
          message("No Mails where selected to be deleted!");
      public void forward(){
        if(from != null){
          creatorOeffnen();
          myCreator.tfSb.setText("Fwd to: " + subject);
          myCreator.ta.setText("<" + from + ">" + " wrote:\n\n" + mailBody +
                               "\n\n>\n>\n\n");
      public void reply(){
        if(from != null){
          creatorOeffnen();
          myCreator.tfTo.setText(from);
          myCreator.tfSb.setText("Reply to: " + subject);
          myCreator.ta.setText("<" + from + ">" + " wrote:\n\n" + mailBody +
                               "\n\n>\n>\n\n");
      public void end(){
        String h = "";
        for (int i=0; i<mailIndexVector.size(); i++){
          MailIndex index = (MailIndex)mailIndexVector.elementAt(i);
          h += index.mailId + "\n";
          h += index.folder + "\n";
          h += index.subject + "\n";
          h += index.from + "\n";
          h += index.to + "\n";
          h += index.date + "\n";
          h += index.read + "\n";
        myWriter.writer(h,"Summary.4on");
        String w = "";
        for (int l=0; l<filterIndexVector.size(); l++){
          FilterIndex index = (FilterIndex)filterIndexVector.elementAt(l);
          w += index.folder + "\n";
          w += index.from + "\n";
          w += index.text + "\n";
        myWriter.write(w,"Filter.4on");
        String k = "";
        for(int j=0; j<folderVector.size(); j++)
          k += folderVector.elementAt(j).toString() + "\n";
        myWriter.writer(k,"Folder.4on");
        String t = "";
        for (int l=0; l<myAddressBook.addressIndexVector.size(); l++){
          AddressIndex aindex =
                   (AddressIndex)myAdressBook.adressIndexVector.elementAt(l);
          t += aindex.alias + "\n";
          t += aindex.email + "\n";
        myWriter.write(t,"Address.4on");
        setVisible(false);
        dispose();
        System.exit(0);
      public void filterOpen(){
        boolean test = false;
        if(tree.getLastSelectedPathComponent() != null){
          DefaultMutableTreeNode node =
              (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
          Object nodeInfo = node.getUserObject();
          if(nodeInfo instanceof String){
            myFilter.folder = (String)nodeInfo;
            for(int i=0; i<filterIndexVector.size(); i++){
              FilterIndex h = (FilterIndex)filterIndexVector.elementAt(i);
              if(h.folder.equals(nodeInfo)){
                myFilter.index = h;
                test = true;
                if(h.from.equals("")){
                  myFilter.box1 = false;
                  myFilter.fTf.setText("");
                  myFilter.fBox.setSelected(false);
                  myFilter.fTf.setEditable(false);
                else{
                  myFilter.box1 = true;
                  myFilter.fTf.setText(h.from);
                  myFilter.fBox.setSelected(true);
                  myFilter.fTf.setEditable(true);
                if(h.text.equals("")){
                  myFilter.box2 = false;
                  myFilter.tTf.setText("");
                  myFilter.tBox.setSelected(false);
                  myFilter.tTf.setEditable(false);
                else{
                  myFilter.box2 = true;
                  myFilter.tTf.setText(h.text);
                  myFilter.tBox.setSelected(true);
                  myFilter.tTf.setEditable(true);
                break;
          myFilter.setVisible(true);
          myFilter.fBox.requestFocus();
        else
          meldung("No selection");
      public void sendOutbox(){
        fromOutbox = true;
        int i;
        Block1:
        for(i=0; i<mailIndexVector.size(); i++){
          MailIndex index = (MailIndex)mailIndexVector.elementAt(i);
          if(index.folder.equals("Outbox")){
            Vector mailVector = myReader.read(index.mailId);
            Block2:
            for(int j=0; j<mailVector.size(); j++){
              String m = (String)mailVector.elementAt(j);
              if(m.indexOf("Subject:") != -1){
                for(int k=0; k<=j+1; k++){
                  mailVector.removeElementAt(0);
                break Block2;
            Vector toVector = new Vector();
            int tEnd = 1;
            String line = "";
            String t = index.to;
            while (tEnd != -1){
              tEnd = t.indexOf(", ");
              if (tEnd == -1)
                line = t;
              else
                line = t.substring(0,tEnd);
              t = t.substring(tEnd + 1);
              toVector.addElement(line);
            File home = new File(".");
            String mailsVerzeichnis = "." + home.separator + "data";
            File datei = new File(mailsRemark, index.mailId);
            datei.delete();
            mySendman = new Sendman(mailVector, toVector, index.subject,ailsAnzeig, mySetup, this);
            mySendman.start();
            mailIndexVector.removeElement(index);
            break Block1;
        if(i == mailIndexVector.size())
          fromOutbox = false;
        treeNewSign();
      public void partion(String cmd){
        if(tree.getLastSelectedPathComponent() != null){
          DefaultMutableTreeNode node =
              (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
          Object nodeInfo = node.getUserObject();
          if(nodeInfo instanceof MailIndex){
            MailIndex index = (MailIndex)nodeInfo;
            index.folder = cmd.substring(13).toString();
            treeNewSign();
        else
          meldung("No mails to partion!");
      public void SetupOpen(){
        if (mySetup.savePassword == false)
          mySetup.pTf.setText("");
        mySetup.setVisible(true);
        mySetup.aTf.requestFocus();
      public void addressbookOpen(){
        myAddressBook.setVisible(true);
        myAdressBook.tree.requestFocus();
      public void creatorOpen(){
        myCreator.setVisible(true);
        myCreator.tfTo.requestFocus();
      public void actionPerformed(ActionEvent event){
        Object obj = event.getSource();
        if (obj instanceof JMenuItem){
          String cmd = event.getActionCommand();
          if (cmd.equals("New fetched")){
            mailsfetch();
          else if (cmd.equals("Written new mails")) {
            creatorOpen();
          else if (cmd.equals("Reply")) {
            reply();
          else if (cmd.equals("Forward")) {
            forward();
          else if (cmd.equals("Outbox")) {
            sendOutbox();
          else if (cmd.equals("Delete")) {
            delete();
          else if ((cmd.length() >13) &&
                   (cmd.substring(0,13).equals("Sorting-"))){
            sorting(cmd);
          else if (cmd.equals("Using Addressbook")){
            addressbookOpen();
          else if (cmd.equals("Filter working")){
            filterOpen();
          else if (cmd.equals("New Order")){
            myFixTask.tf.setText("");
            myFixTask.setVisible(true);
            myFixTask.tf.requestFocus();
          else if (cmd.equals("delete")){
            delete();
          else if ((cmd.length() >7) &&
                   (cmd.substring(0,7).equals("nobody"))){
            if(viewSource == false){
              viewSource = true;
              menuNewSign();
              if(tree.getLastSelectedPathComponent() != null){
                DefaultMutableTreeNode node =
                    (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
                Object nodeInfo = node.getUserObject();
                if(nodeInfo instanceof MailIndex){
                  MailIndex index = (MailIndex)nodeInfo;
                  mailsRemark(index.mailId);
            else{
              viewSource = false;
              menuNeuZeichnen();
              if(tree.getLastSelectedPathComponent() != null){
                DefaultMutableTreeNode node =
                    (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
                Object nodeInfo = node.getUserObject();
                if(nodeInfo instanceof MailIndex){
                  MailIndex index = (MailIndex)nodeInfo;
                  mailsRemark(index.mailId);
          else if (cmd.equals("Setup")){
            SetupOpen();
        else if (obj instanceof JButton){
          String cmd = event.getActionCommand();
          if (cmd.equals("aga")){
            mailsHolen();
          else if (cmd.equals("Creator Open")){
            creatorOpem();
          else if(cmd.equals("rep")){
            reply();
          else if(cmd.equals("fwd")){
            forward();
          else if(cmd.equals("Setup Open")){
            SetupOpen();
          else if(cmd.equals("adr")){
            addressbookOpen();
          else if(cmd.equals("delete")){
            delete();
          else if(cmd.equals("Information")){
            myInfo.setVisible(true);
            myInfo.b.requestFocus();
      private class myWindowListener extends WindowAdapter{
        public void windowClosing(WindowEvent event){
          end();
      private class myTreeSelectionListener implements TreeSelectionListener{
        public void valueChanged(TreeSelectionEvent e) {
          DefaultMutableTreeNode node =
              (DefaultMutableTreeNode)(e.getPath().getLastPathComponent());
          Object nodeInfo = node.getUserObject();
          if(nodeInfo instanceof MailIndex){
            MailIndex index = (MailIndex)nodeInfo;
            mailsAnzeigen(index.mailId);
            index.read = "Yes";
    }

Maybe you are looking for

  • How to change sql sentence which arrives database.

    I am using ORACLE 10G, I want to add criteria all sql sentence which come ORACLE 10G , how to do it ? , trigger or another system attributes for example if "select * from user" sql sentence come to db server, I want to change this sentence as "select

  • Regarding where can I check logs to see which user ID

    Hi, In RSA1, if some one deletes the source system, where can I check logs to see which user ID did it and when. Thanks Vasu.

  • Where to post music...

    It's been years... once I had four songs posted on Vitaminic... they disappeared and I did not go anywhere else... was more into photography at that time anyway... But now I just finished my second Logic song, and I am confident enough to put it some

  • Javascript in iWeb?

    Is is possible to use your own/third party javascripts in iWeb? For example, in a couple of my existing web pages I have javascript functions which are defined in the <head> section of the html. But how is it possible to insert the javascript definit

  • Cannot delete e-Mail message in lion without opening the message

    To avoid span or just not bother opening an e-mal "BEFORE LION" all that had to be done was to hightlight the email and hit the delete button. Now with LION when you hightlight the email message it immedately opens the message in the right side box.