J_use_cookie_auth with Resin

Hello,
I am using Caucho resin. I'm using the j_security_check feature. I want the username and password stored with j_use_cookie_auth. Anyone that can explain me the principle?? What is the value of the resinauthid cookie (looks like MD5), and how can I use it? What changes should I make in web.xml to change the expiration date ?
Thanks in advance,
Greetings.

Hello,
I am using Caucho resin. I'm using the j_security_check feature. I want the username and password stored with j_use_cookie_auth. Anyone that can explain me the principle?? What is the value of the resinauthid cookie (looks like MD5), and how can I use it? What changes should I make in web.xml to change the expiration date ?
Thanks in advance,
Greetings.

Similar Messages

  • JMS with Resin

    Hi,
    I am currently trying to set Resin to work with JMS and I have encountered the following problems (that didn't appear using the Java Servlet Development Kit) :
    When looking up (with the InitialContext.lookup method) for a TopicConnectionFactory, I receive a null value. After having looked on forums and newsgroups, I added these lines before I created the InitialContext :
    jndiProps.setProperty(Context.INITIAL_CONTEXT_FACTORY, "com.sun.enterprise.naming.SerialInitContextFactory");
    After that, I did find a TopicConnectionFactory, but later, when I called createTopicConnection from that factory, I receive the following error (which stops Resin instantly) :
    SEVERE unable to locate resource bundle: com.sun.jms.LocalStrings
    I am using Resin 2.1.10, I have %J2EE_HOME%\lib\locale in my classpath and I'm using Eclipe 2.1.1.
    Any help would be greatly appreciated

    I'm having too problems with Resin-Eclipse.
    You must first set all environment variables needed and start j2ee.
    I'm debbuging the servlet with Eclipse plug-in for Eclipse. To do so, I had to copy the config directory from J2EE_HOME to RESIN_HOME. The plug-in was searching some config_files, but not at in the J2EE_HOME dircetory. I did that to be able to get it working with Eclipse in Resin. When I run the servlet in Resin stand alone, everything works fine...
    I registered a topic with j2eeadmin -add and I can access my topic.
    My problem is that I cannot get it to work in a Debug mode situation in Eclipse. It is probably a issue with the Resin plug-in.
    I get the following error:
    Ignoring com/sun/jms/util/jms.properties due to exception java.lang.NullPointerException
    BUT ONLY WITH THE RESIN PLUG-IN WITH ECLIPSE
    You also have to set the following in your resin.conf
    <system-property jms.properties="c:/j2sdkee1.3.1/config/jms_client.properties"/>
    If you find something new, please advise.
    Hope I've helped you.

  • Filters with Resin server

    hi all,
    I was using Tomcat to deploy my web application , and when I turned to Resin to deploy my web application there My pages didn't display correctly .. some data on the page disappear !!! (like left navigation bar) ??
    I put the structure of the directories as :
    - classes(filter) in webapps/myapp/web-inf/classes/myfilter.class
    - html pages in webapps/myapp/*.html
    can anyone tell me what is the error in that or there is a problem with Filters with Resin ??
    Thanks,

    Here is the Error that is appearing..
    [2002/03/05 17:24:36] oracle.jdbc.driver.OracleDriver
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
         at com.caucho.util.DynamicClassLoader.loadClass(DynamicClassLoader.java:479)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:120)
         at hope_jsp._jspService(_hope__jsp.java:46)
         at com.caucho.jsp.JavaPage.service(JavaPage.java:74)
         at com.caucho.jsp.Page.subservice(Page.java:485)
         at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:179)
         at com.caucho.server.http.Invocation.service(Invocation.java:288)
         at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:132)
         at com.caucho.server.http.ServletServer.serviceTop(ServletServer.java:937)
         at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:213)
         at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:158)
         at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
         at java.lang.Thread.run(Thread.java:484)

  • JSC2.1 works with Resin 2.1?

    Hi everybody,
    I just bought a hosting service but I relised that my application does not work.
    I am wondering if it is a problem of versions... Resin 2.1 is the server and I think it supports JSP 1.2 and Servlets 2.3.
    Is there any way of getting my application working on Resin 2.1?
    Thanks
    MAx

    please forward the details

  • After upgrade resin no longer works with Apache!BIG ISSUE

    Hi Af!
    After the huge update - i ran into some big issue's !!!
    Normaly i have apache,php and resin running. but now with the "new" apache - it can no longer accept resin's mod_caucho.so?
    Running apachectl -t gives an error:
    configerror at line 428  - mod_caucho.so cannot load the module - its proberly been garbled - perhaps this is not a reguar apache DSO module.
    (this is not the correct error - but close - i've shut it down - becaurse people are able to se the code)
    Normally this have worked fine - Apache is accepting the mod.so and have compiled resin from the button after - just for trying!
    Have anybody got an idea about this!
    thanks
    Peque

    Well - here's an update !
    Now I have tried to get the old version of Apache - but still that doesen't help me.
    After a total install(clean  - 0.7.2 ) i do a pacman -Syu to get the final steps uptodate!! Afterwards i do
    pacman -U apache.2.0.55
    installing that (missing expat) so installing that to!
    Afterwards I'm trying to install Resin - and get the error its a bad apxs! so go back to the old configuration is out of the question!
    So what have been going so wrong that I'm not able to have a running Apache server along with Resin to handle my jsp pages!
    I know others use tomcat - but I have never tried this  - and loves Resin! Does anybody have an answer for this part!!!!!
    Please help ! I have a quite a lot of pages that are not online at this point!
    Peque

  • JSP Compilation Issue with Tomcat 4.0.6

    Hi There,
    I've been checking the following issue online for sometime but I just can't seem to figure what is wrong with the server setup. I've this very simple JSP page processing the form variables submitted to an action page which is another JSP page. Thecode segement in the target JSP is like this;
    if(request.getParameter("contactUsSubmit")!=null)
    }Whenever I try to use request.getParameter("XYZ") in the target page just like above, I get following error from Tomcat;
    Apache Tomcat/4.0.6 - HTTP Status 500 - Internal Server Error
    type Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: org/apache/jasper/runtime/JspException
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:481)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
         at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
         at java.lang.Thread.run(Thread.java:534)
    root cause
    java.lang.NoClassDefFoundError: org/apache/jasper/runtime/JspException
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:463)
         at org.apache.jsp.contact$jsp._jspService(contact$jsp.java:174)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
         at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
         at java.lang.Thread.run(Thread.java:534)
    When I comment the code fragment, it works. It is not about what is in the if statment is true, I can assure you. Consider it as simple output to ease your mind.
    Any ideas why this might be happening? I'vve tried the same code with Resin 2.x and Tomcat 5.5 , it works just fine. Do you think there is something missed with the Tomcat setup or the Tomcat version (4.0.6) on that specific server is no good?
    Any comments are greatly appreciated.
    Thanks in advance...
    Regards,
    Mert

    Hi There,
    As you said using equals would not work as it should be a valid String in order for the eqauls function to work.
    Unfortuantely I can't access the Servlet created or the log files. It has crossed my mind too but this is a setup by the service provider and they don't let you nose into their business but they ahvedone something wrong with their system as far I can think.
    I've wanted to print the output to the web but when i use the request.getParameter it just creates the error.
    Java service is provided optional and as any optional service it is not well supported so I need to make them some pointers. So any more ideas?
    Cheers,
    Mert

  • WL fails to install on RedHat 7.1 Linux with IBM JDK

    Attempting to install eval version for Linux. Issue command (as root):
    sh weblogic600sp1_linux.bin -i console
    And get this error consistently.
    [root@LinuxWeb src]# sh /home/curtisf/weblogic600sp1_linux.bin -i console
    Preparing to install...
    /tmp/install.dir.1046/Solaris/resource/jre/jre/bin/java: /usr/bin/cut: No
    such f
    ile or directory
    /tmp/install.dir.1046/Solaris/resource/jre/jre/bin/i386/native_threads/java:
    err
    or while loading shared libraries: libjvm.so: cannot load shared object
    file: No
    such file or directory
    Am running the IBMJava2-13 JVM with no problems with Resin servlet engine
    (and other applications).
    Curtis Forrester
    Personal: [email protected]
    Business: [email protected]
    http://www.cforrester.com

    Hi Nelson,
    Please refer the below link for "Xcelsius Installation on Windows 7  with office 2010"
    Installing Xcelsius 2008
    Links:
    http://scn.sap.com/docs/DOC-25567
    Or
    Tips for Installing Xcelsius 2008 with Office 2010
    Links:
    http://www.clariba.com/blog/tips-for-installing-xcelsius-2008-with-office-2010/
    Thanks,
    Daya

  • Overriding default XML parser in Resin

    Hi,
    I'm trying to use the the Saxon version 7 parser (Saxon7.jar) with Resin. I am using shared hosting and only have access to my web.xml and lib directory.
    Using Tomcat on my development environment, all I had to do was place the Saxon7.jar in my lib directory and everything worked just fine. Doing the same on Resin didn't work. Resin is still using it's default parser.
    To see the stacktrace follow this link:
    http://www.bacman.net/search/?keywords=the
    You will see that it is still using Caucho's parser:
    com.caucho.xsl.StylesheetImpl.transform(StylesheetImpl.java:205)
    Is there a way to override Resin's default parser using web.xml?
    Thanks,
    BacMan

    One way to make your program use the Saxon 6 transformer is to make this line of code run in its initialization:System.setProperty("javax.xml.transform.TransformerFactory",
      "com.icl.saxon.TransformerFactoryImpl");This is for Saxon 6, note, the class name you should use for Saxon 7 is something else. You should find the exact name in the Saxon documentation somewhere.
    I don't have any Resin experience, but you need to find the place where you can specify Java system properties for Resin and specify that one (javax.xml.transform.TransformerFactory) there. The command-line version would be
    java -Djavax.xml.transform.TransformerFactory=...

  • Problems with Unicode webapplication

    Hi,
    I am developping a small webapplication which is supposed to support Unicode (different characters such as �S�\ etc.).
    I have a simple form which calls a JSP page.
    The JSP page prints the recieved parameter and prints it to the WEB browser.
    The JSP page also prints the parameter to a file.
    If I use:
         String textIn= request.getParameter("unicodeText");
         byte d[]=new byte[textIn.length()];
         textIn.getBytes(0, textIn.length(), d, 0);
         String unicodeText = (new String(d,"UTF-8"));Everything works fine but if I use:
         byte[] bytes = request.getParameter("unicodeText").getBytes();
         String unicodeText= new String(bytes, "UTF-8");OR:
         byte[] bytes = request.getParameter("unicodeText").getBytes("UTF-8");
         String unicodeText= new String(bytes, "UTF-8");OR:
         byte[] bytes = request.getParameter("unicodeText").getBytes("UTF-8");
         String unicodeText= new String(bytes);The parameter retrieved by the JSP page contains strange characters (such as a box followed by a questionmark) when I submit for example '�\' and '�S'.
    The problem is that the method:
    getBytes(0, textIn.length(), d, 0);used in the working example is Deprecated. In the API documentation I am told that the getBytes()
    Deprecated. This method does not properly convert characters into bytes. As of JDK 1.1, the preferred way to do this is via the the getBytes() method, which uses the platform's default charset.
    I really do not know why I can not get it to work!
    /Fredrik

    Ha again,
    I installed resin and started it with the default
    configuration and changed my jsp file as follows:
    byte[] bytes =
    request.getParameter("unicodeText").getBytes("UTF-8");
    String unicodeText= new String(bytes, "UTF-8");
    What you are doing is unnecessary (but should still work). Instead, simply write:
    String unicodeText = request.getParameter("unicodeText");as the unicode string has already been decoded by the jsp container.
    and this gives the wanted result (i.e. it works).
    I have tried around 20 chineese characters and �
    � and �.
    There is only one small thing... all combinations of
    � � and � works except
    ��� in this order.Really? I have tried the same character sequence (with your above code, and with my simplified version) and both work. Here is my test page:
    <%@ page contentType="text/html; charset=UTF-8" %>
    <%@ page session="false" %>
    <html>
    <head>
      <title>Test encodings</title>
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
    </head>
    <br />
    <br />
    Request parameters:<br />
    <%
       java.util.Map params = request.getParameterMap();
       for (java.util.Iterator i = params.keySet().iterator(); i.hasNext(); ) {
         String param = (String) i.next();
         String[] values = request.getParameterValues(param);
         out.write("<b>" + param + "=[</b>");
         for (int j = 0; j < values.length; j++) {
           if (j > 0) {
             out.write("<b>,</b>");
           out.write(values[j]);
         out.write("<b>]</b> ");
    %>
    <body bgcolor="#ffffff" text="#000000"
      link="#006699" vlink="#006699" alink="#006699" leftmargin="0" topmargin="0"
      marginheight="0" marginwidth="0">
      <table border="0" align="left">
       <tr><th colspan="2">Enter some values</th></tr>
       <form method="post"
        action="testenc2.jsp"
        <%-- enctype="multipart/form-data" --%>
        >
        <input type="hidden" name="hidden" value="hidden_val" />
        <tr>
         <td>name</td>
         <td>
          <input type="text" name="name" size="50" maxlength="100"/></td>
        </tr>
        <tr>
         <td>address</td>
         <td>
          <input type="text" name="address" size="15" maxlength="20"/>
         </td>
        </tr>
        <tr>
         <td colspan="2">
         <input type="submit" name="cmd" value="send" />
         <input type="submit" name="cmd" value="cancel" />
         </td>
        </tr>
       </form>
      </table>
    </body>
    </html>>
    Anyway, this is a minor problem.
    Now I have to figure out why it works with resin but
    nor with jakarta.tomcat....Doesn't tomcat have a mailing list? That's probably a good place to ask or search.

  • Resin: can't run it

    I have problem installing and running Caucho Resin 3.0.4 (on Windows 2000)
    After expanding the zipped package, setting the environment variable RESIN_HOME, and executing httpd in <RESIN_HOME>/bin, I get the following error:
    Specification version 1.3 of package javax.servlet, J2EE Specification, version 1.3 is not compatible with Resin Resin-3.0.4. Resin Resin-3.0.4 requires version 2.4.
    I looked everywhere, and found no documentation no this error, and have no idea what I should to about it.
    If you happen to know, please help me! I'm really getting desperate.

    It would appear that you are using the wrong servlet package. (wrong
    version)
    This could be for a number of reasons.
    If resin comes with its own servlet package then you are probably using
    (cos of path problems) the version that came with your JVM.
    If it doesn't then either the version you have installed is not recent
    enough (this implies that you have a old JRE installed)
    or the JDK/JVM is not recent enough. IIRC JDK/JRE 1.3 and above come
    with servlets as standard. If you are using this or a later JDK/JRE
    then it probably is not recent enough.
    Upgrade your JDK/JRE and it should work.
    matfud

  • Problems configuring XSQL with Tomcat

    Having a lot of trouble getting this to work with tomcat standalone, apache with tomcat, and even apache with resin. (I have successfully gotten this to work with resin as both web and appserver.)
    I have tried to be meticulous in following the directions, but one thing that is throwing me is that I can't find the web.xml file in my xdk distribution (neither in xdk8i nor xdk9i); I've attempted to create the .xsql extension-to-servlet mapping myself in Tomcat's web.xml file, but maybe I got this wrong.
    The main symptom is that my xsql pages are basically being returned to me in the browser. Any help would be appreciated.

    Bacically you need to create yourself, and here is an example:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
    <web-app>
    <servlet>
    <servlet-name>
    WebCounter
    </servlet-name>
    <servlet-class>
    FAQAnswerServlet
    </servlet-class>
    </servlet>
    <servlet>
    <servlet-name>
    oraclexsql
    </servlet-name>
    <servlet-class>
    oracle.xml.xsql.XSQLServlet
    </servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>
    oraclexsql
    </servlet-name>
    <url-pattern>
    *.xsql
    </url-pattern>
    </servlet-mapping>
    </web-app>
    null

  • Resin & XSD

    Hi, i am using a XSD file to validate a XML file, like this
    SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
    Schema schema = factory.newSchema(new File(schemaFile));
    Validator validator = schema.newValidator();
    DocumentBuilder parser = DocumentBuilderFactory.newInstance().newDocumentBuilder();
    doc = parser.parse(fileName);
    DOMSource dom = new DOMSource(doc);
    validator.validate(dom);This code was working fine with Tomcat, but it doesn't work with Resin, does anyone know why?
    I get a NullPointerException
    Thank you

    Right so the XSD is in the source of the page but you have to view source and then pull it out. I'll reformat the XSD as a HTML document that you can directly copy and paste from or you can pull the unwrapped XSD from: http://www.groundside.com/tech/xsd/tiles-config_1_1.xsd

  • %@ page import="..." % does not seem to be working correctly

    Hi,
              I am running Weblogic 6.1 sp1 and I am having a problem with import page
              directive. <%@ page import="my.package.*" %> does not appear to be working
              correctly when I try to reference classes in imported packages (my.package,
              etc.) from the useBean tag.
              The following code works with Resin, but not Weblogic:
              <%@ page import="my.package.*" %>
              <jsp:useBean id="errorBean" class="ErrorBean" scope="request"/>
              If, I take out the page directive, and change the useBean tag to:
              <jsp:useBean id="errorBean" class="my.package.ErrorBean"
              scope="request"/>
              then the page compiles and runs just fine.
              Michael
              

    Here's a snippet from Sun's j2ee tutorial
              (http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPBeans4.html):
              <jsp:useBean id="beanName"
              class="fully_qualified_classname" scope="scope"/>
              But I agree with you, the excerpt you posted seems to include the
              useBean tag, which is misleading.
              Nils
              Michael Hill wrote:
              >
              > I don't think this is the way it is "supposed" to be. Here is an excerpt
              > from the JSP Syntax reference on http://developer.java.sun.com
              > on the page directive:
              >
              > import= "{ package.class | package.* }, ..."
              > A comma-separated list of one or more packages that the JSP file should
              > import. The packages (and their classes) are available to scriptlets,
              > expressions, declarations, and tags within the JSP file. You must place the
              > import attribute before the tag that calls the imported class. If you want
              > to import more than one package, you can specify a comma-separated list
              > after import or you can use import more than once in a JSP file.
              >
              > ---
              >
              > It says the packages are available to tags within the JSP file as long as
              > you place the import before the tag that calls the imported class. In my
              > case, I am placing the import before the <jsp:useBean> tag.
              >
              > Michael
              >
              > "Nils Winkler" <[email protected]> wrote in message
              > news:[email protected]...
              > > I'm pretty sure that you have to specify the fully qualified class name
              > > in the useBean tag. import won't help you here.
              > >
              > > Nils
              > >
              > > Michael Hill wrote:
              > > >
              > > > Hi,
              > > >
              > > > I am running Weblogic 6.1 sp1 and I am having a problem with import page
              > > > directive. <%@ page import="my.package.*" %> does not appear to be
              > working
              > > > correctly when I try to reference classes in imported packages
              > (my.package,
              > > > etc.) from the useBean tag.
              > > >
              > > > The following code works with Resin, but not Weblogic:
              > > >
              > > > <%@ page import="my.package.*" %>
              > > > <jsp:useBean id="errorBean" class="ErrorBean" scope="request"/>
              > > >
              > > > If, I take out the page directive, and change the useBean tag to:
              > > >
              > > > <jsp:useBean id="errorBean" class="my.package.ErrorBean"
              > > > scope="request"/>
              > > >
              > > > then the page compiles and runs just fine.
              > > >
              > > > Michael
              > >
              > > --
              > > ============================
              > > [email protected]
              ============================
              [email protected]
              

  • Importing classes in jsp

    In jakarta tomcat servlet engine, in which directory should I put a class file so that i can call it from a jsp located in /examples/jsp or where should I put the class file so that it can be called using <jsp:useBean> tag

    In jakarta tomcat servlet engine, in which directory
    should I put a class file so that i can call it from a
    jsp located in /examples/jsp or where should I put the
    class file so that it can be called using
    <jsp:useBean> tagI don't use Tomcat at the moment, but I think it's the same with resin and other stuff.
    You have a path called "/WEB-INF/classes" somewhere under your tomcat root. This is the location where you should store your classes and packages. The servers using only this path to locate classes, not your classpath.
    I hope, this helps.

  • Import class without package

    hellow, i have a web aplication named test , and i have a class named conexion
    when i import a package "pack" with the class conexion, not problem (test/WEB-INF/classes/pack/conexion.class) <% import="pack.* " %> but when i have only the class conexion WITHOUT package (test/WEB-INF/classes/conexion.class) and i import <%import ="conexion" %> i have problem ("The import conexion cannot be resolved") and when i not import the class i have problem (conexion cannot be resolved to a type) , my question is:
    how to i import a class without package in JSP , and if the test/WEB-INF/classes is in the classpath when compile the servlet , why the tomcat not found the class conexion?
    (tomcat 5.5.20 , jdk 1.5.09 , vim)
    thank
    (Sorry my english , i'm from Chile)

    Hi I am hosting my JSP application with Resin 2.17 which uses classes directly in JSP code (not packages). To make this work I had to specify the classpath in Resin.conf and it worked.
    My problem is getting this to work with TomCat or any other application server that will allow me to debug my project in Eclipse or NetBeans IDE. (I have yet to find an IDE that Supports debugging JSP/Java code running on Resin - so I want to switch my application server but I am not sure how to configure my classpath for the application servers to look for java classes in the specified directory just like I did with Resin.

Maybe you are looking for

  • Need help understanding profiles and color management

    I made the big leap from inexpensive inkjets to: 1 Epson 3800 Standard 2 Spyder3Studio I have a Mac Pro Quad, Aperture, PS3, etc. I have a steep learning curve ahead, here's what I've done: 1 Read a lot of books, watched tutorials, etc. 2 Calibrated

  • Render a JSP page into HTML in a String

    I am using a mail template system that gets templates as JSP pages placed in /WEB-INF/mailtemplates/ I want to internally parse JSPs as if they were real JSPs in my tomcat but: - Get get them using getResourceAsStream (or any other way) - make JSP en

  • Billing plan type

    hi i am trying to process a billing plant with mile stone billing where a customer pays a down payment 0009 and then pays the rest of the amount  after delivery 0008. the customer puts a down payment of 10% or 100 when i try to process it with 0008 c

  • Why is iTunes U not available in all countries?

    Hi, I work at an education institucion in Uruguay and we have a 1:1 iPad program. I would like to know how to get iTunes U for Uruguay. Thanks in advance for your help! Luciana

  • Video head Thumbnails don't show up in my timeline

    Hey guys, something weird happened to my project, the thumbnails decided to go on vacation ! It all worked well at first and it was really useful, this is a project with A LOT of clips from different locations and it saved me time to know what clip s