Help  -- servlets !!!!!

I neeeeeeeed heeeeelp!!!
How can i build dynamic images in a servlet and send them to jsp and insert them into table??

I need to build 3 tables in one servlet and 3
corresponding graphs in other servlet.
After i build the data tables and graphs i need to
introduce them in a jsp.
How can i build images like this and how can i
introduce them??One way to do it is to stop giving servlets so much responsibility.
Have just ONE servlet. It's job will be to figure out what page and event generated the HTTP request. Based on that, it delegates to other Java objects that perform operations on its behalf to fulfill the request, puts whatever objects are needed to display the response in the appropriate scope, and forwards the response to the next page. The next JSP will take the values out of scope and render all the tables and images you need.
You should be using JSTL in your JSPs, with no scriptlet code at all.
Sounds like you've just designed yourself a terrible solution, that's all. Time to rethink and redesign.
%

Similar Messages

  • Help: Servlet can't read from properties file

    I am working on a web application running in Tomcat on Linux.My java source file reads some parameters from a properties file (data.properties)in the same directory. This works well in a simple application. However, if it is used in the Tomcat environment, it can't be read by a servlet file (LoginServlet.java). I put both the "LoginServlet.class" and "data.properties" in the following directory: /webapps/myapp/WEB-INF/classes. When I run the web application in Tomcat, the error is "data.properties not found". What is the problem? Do I need to modify my "web.xml" and/or Tomcat's "server.xml"? If so, how to modify them?
    This web application contains a lot of serlets. So I don't want to hardcode the parameters into the servlet codes.
    Any info will be appreciated. Thanks in advance!:)

    Putting the properties file in webapps/myapp may or may not help.
    My assumption is that you are trying to open the file by brute force, with something like
    InputStream propis = new FileInputStream ("data.properties");
    Properties props = new Properties ( );
    props.load (propis);
    What you want is to have the class loader find a file in the same place as the class file, and give you back an input stream reading from that file, which you can then pass to the Properties.load(InputStream) method. This is called a "resource," and the way to do it is:
    InputStream propis = getServletContext().getResourceAsStream("data.properties");
    // remaining code as above
    This will cause the class loader for the servlet context (a/k/a the Web application) to find the file in the same manner as it might find a class, but instead of treating it as compiled JVM code, and loading it, it simply passes you back an InputStream from which you do whatever you want.
    Cheers!
    Jerry Oberle
    perl -e 'printf "mailto%cg%s%cearthlink%cnet\n", 58, "oberle", 64, 46;'

  • Please help -servlet to servlet communication

    hi
    I am using two tomcat servers.
    in my one server having one servlet.
    in that servlet i am entering username .
    in that username send to the other server's servlet.in that servlet check in the database and send the response to this servlet.
    is it possible!
    if possible help me please.
    thank u

    Use HttpURLConnection to POST to the other Servlet and receive its response. Or download Jakarta's HttpClient.
    - Saish

  • HELP - Servlet Error

    I need some help in trying to dicipher what exactly this error message is indicating. It is generated when attempting to compile and run a JSP Screenflow. All was working fine, made a minor change and now I can't get rid of this. Even put back an older JSP prior to the change, re-installed Studio 5.7.2 and still...
    Generated servlet error:
    Form_jsp.java:244: 'class' or 'interface' expected
    private org.apache.jasper.runtime.TagHandlerPool jspxtagPool_f_webResources_relativePath;
    ^
    Form_jsp.java:245: 'class' or 'interface' expected
    private org.apache.jasper.runtime.TagHandlerPool jspxtagPool_f_postResults;
    ^
    Form_jsp.java:246: 'class' or 'interface' expected
    private org.apache.jasper.runtime.TagHandlerPool jspxtagPool_f_fieldValue_onlyValue_att;
    ^
    Form_jsp.java:247: 'class' or 'interface' expected
    private org.apache.jasper.runtime.TagHandlerPool jspxtagPool_f_fieldName_att;
    ^
    Form_jsp.java:249: 'class' or 'interface' expected
    public Form_jsp() {
    ^
    Form_jsp.java:1294: <identifier> expected
    fuego.taglib.tags.fo.ResourcesPrefix jspxth_f_webResources_0 = (fuego.taglib.tags.fo.ResourcesPrefix) jspxtagPool_f_webResources_relativePath.get(fuego.taglib.tags.fo.ResourcesPrefix.class);

    If you want to test servlets using unpacked WARs, then try this :-
    1. Create a folder specific for your application in webapps directory of Tomcat. Ex. if you want to
    create a folder called "appl" , then the path to it should look like this after creating :-
    C:\<tomcat-home>\webapps\appl
    2. Create a folder "WEB-INF" inside application folder. Note that folder names are case sensitive.
    C:\<tomcat-home>\webapps\appl\WEB-INF
    3. Create 2 folders for your java classes & drivers, "classes" & "lib" inside the WEB-INF folder.
    Also create the deployement descriptor file, "web.xml" along with the folders. A basic web.xml file
    with no mappings would look like this
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <web-app>
    <display-name>test application</display-name>
    <description>Testing Servlet Examples.</description>
    </web-app>
    4. Place your compiled java servlet in the "classes" folder. At this point your "lib" folder may be
    empty since you're not using any external APIs or drivers in your java servlet.
    C:\<tomcat-home>\webapps\appl\WEB-INF\classes
    5. Start the Tomcat server and test your servlet either through any html file or directly from the web
    browser by giving the full url. You should make sure that hostname & context path are accurate
    in your url.
    http://localhost:8080/appl/servlet/<servlet-class-name>
    If your servlet class file is test.class then the url would be like this :-
    http://localhost:8080/appl/servlet/test
    Hope this is clear.
    Thanks.

  • Stuck on this for 72 hours, please please help, servlet to midlet coms

    this problem is driving me mad, ive spent 3 whole days now and im totally stumped, so i really hope someone here has an idea
    basically, i have a parsed xml file read into a vector, and now i need to send that vector to my midlet, the question is how, because objectinputstream wont work, and that appears to be the only way to do it from searching around on the internet.
    i tried using a for loop to read and send the data while the the vector is less than its total size and then on the other end read it in but that doesnt work
    please, please someone help im totally desperate

    6EE43274F0210DF9BB963BC753
    hi there, thanks for the reply but I think I may have not made myself clear, im aware of how to create the connection and set everything up etc but the problem I was getting was in "how to send a vector over the air to my midlet" i.e being able to read each item in the vector, and then send that over the air to my midlet, have that received and placed in a vector midlet side, however I did manage to figure it out on my own in the end and it wasn�t my programming that was at fault but the way I had written the xml file, in that for example I had written
    <locations>
    <name>data</name>
    <name>data</name>
    </locations>
    and the parser (xerces) detected each time I had pressed enter as blank space characters, which in turn ruined the for loop I had written to send each one in turn to the midlet, I changed the xml file to include no enters i.e.
    <locations><name>data</name><name>data</name></locations>
    and that fixed it, I was able to send the entire vector over the web using for loops, one that read the vector element into a temp string, and outputted that string using a dataoutput stream, and then a for loop on the midlets side that received it and put it into a vector!
    Thank you for your reply again, I appreciate it lots but next time I think I should provide more information, I thought I would post the solution just in case anyone

  • How do I make a global helper servlet for all applications?

    I am running about five different web applications in tomcat 5.0.24. They all need to do some spelling correction from time to time. I have a spelling correction API and a bunch of dictionaries, etc. so I can do it just fine. The problem is, I don't want each application to create all the dictionaries because then I end up with five spell checking programs and five dictionaries being accessed (basically I am exactly repeating myself five times and I start running out of memory). I would like to have a servlet that just sits waiting all the time and which any other servlet or JSP in any of my web applications can quickly dash of a spell check request to at any time.
    How do I do this?
    I think I need to write a servlet since I want to run it in tomcat and access it from my webapps, but it might not need to be a servlet since it is never actually contacted from a browser and will not ever write anything back to the client. I just need my other servlets and JSPs to access the spell checking functionality from time to time.

    I'd say tomcat/common/lib is a good guess for where you'd put the class's jar file, but I don't use Tomcat so I can't say for sure. As for how to only have one dictionary, you need a singleton class, i.e. one that only permits one instance of the class to be created. Like this, if you haven't heard of it:public class SpellChecker {
      // create a single SpellChecker here:
      private SpellChecker theInstance = new SpellChecker();
      // don't let anybody else create another one:
      private SpellChecker() {}
      // provide a method for returning the single instance:
      public static SpellChecker getInstance() {
        return theInstance;
      // remaining methods go here
      // watch out for synchronization issues
    }To get hold of the spell-checker, just doSpellChecker.getInstance()PC&#178;

  • Its a very high priority please help me

    the error is requested resource is not available
    //web.xml//
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
    version="2.4">
    <display-name>Name for Loginportal</display-name>
    <description>
         This is a simple web application with a source code organization
         based on the recommendations of the Application Developer's Guide.
    </description>
    <servlet>
    <servlet-name>Loginportal</servlet-name>
    <servlet-class>com.hp.ifc.install.verify.Loginportal</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Loginportal</servlet-name>
    <url-pattern>Loginportal</url-pattern>
    </servlet-mapping>
    </web-app>
    //Loginportal.java///
    package com.hp.ifc.install.verify;
    import javax.servlet.http.HttpServlet;
    import java.io.IOException;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.RequestDispatcher;
    import com.hp.ifc.install.database.Loginportalbean;
    * Servlet Class
    * @web.servlet name="Loginportal"
    * display-name="Name for Loginportal"
    * description="Description for Loginportal"
    * @web.servlet-mapping url-pattern="/Loginportal"
    * @web.servlet-init-param name="A parameter"
    * value="A value"
    public class Loginportal extends HttpServlet {
         protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException,IOException
              // TODO Auto-generated method stub
              RequestDispatcher rd;
              String username=req.getParameter("J_USERNAME");
              String password=req.getParameter("J_PASSWORD");
              Loginportalbean lb = new Loginportalbean();
              if(lb.isUservalid(username,password))
                   rd=req.getRequestDispatcher("success.html");
              else
                   rd=req.getRequestDispatcher("fail.html");
    url:http://ustca130/Loginportal
    please help

    I think this might be helpful
    <servlet-mapping>
    <servlet-name>Loginportal</servlet-name>
    <url-pattern>/Loginportal</url-pattern>
    </servlet-mapping>url-pattern should be like "/Loginportal"
    and what is ur webapplication name?
    i m gettting confused with your url. the url will be like
    http://<localhost>:<portno>/<webappname>/<urlpattern>
    Edited by: Diablo_Chiru on Apr 21, 2008 11:10 PM

  • SOAP Adapter in PCK

    Hi,
    I am trying to get the SOAP Adapter in the PCK running, but always get an error while sending a SOAP message to the adapter. I configured the send adapter as described under help.sap.com and when I try to check the availability of the channel by accessing the url
    http://localhost:50000/XISOAPAdapter/MessageServlet?channel=PartyA:SOAPService:soapchannel.
    I always get the following Error:
    Message Servlet is in Status ERROR
    Status information:
    Servlet com.sap.aii.af.mp.soap.web.MessageServlet (Version $Id: //tc/aii/30_VAL_REL/src/_adapters/_soap/java/com/sap/aii/af/mp/soap/web/MessageServlet.java#5 $) bound to /MessageServlet
    Classname ModuleProcessor: null
    Lookupname for localModuleProcessorLookupName: localejbs/ModuleProcessorBean
    Lookupname for remoteModuleProcessorLookupName: null
    ModuleProcessorClass not instantiated
    ModuleProcessorLocal not instantiated
    ModuleProcessorRemote not instantiated
    The file adapter is working without any problems.
    Can anyone tell me what I am doing wrong?
    Regards,
    Ulf

    Hello Hans Christian,
    thank you for your reply. The Helper Servlet returns the following:
    <?xml version="1.0" ?>
    - <s:ChannelInfo xmlns:s="http://sap.com/xi/WebService/xi30">
      <channelID>748d6d504759d17c711b6540538844c3</channelID>
      <name>soapchannel</name>
      <type xmlns:st="http://sap.com/xi/XI/System">st:SOAP</type>
      <direction>INBOUND</direction>
      <party>PartyA</party>
      <service>SOAPService</service>
      </s:ChannelInfo>
    I think my problem might have something to do with jndi, because it seems, that the ModuleProcessorBean can not be found (The message servlet returns "ModuleProcessorLocal not instantiated" and when I look in the server log files there is also a NameNotFoundException during the lookup of ModuleProcessorBean.) Could this have something to do with my problem?
    I am now trying to update the WebAS and PCK to the latest support package and hope, that this helps somehow.
    Thanks in advance for any further help.
    Regards,
    Ulf

  • Can I display a MS Word Document as part of a page

    Hi,
    Is it possible to display a MS Word document as part of a page (i.e. in a panelForm, panelBox) with ADF Faces? Any help is appreciated.
    Best Regards,
    Salim

    Hi,
    No, its impossible. I have never had that requirement, but if you want to review Word document as JSF page fragment, you can try to create helper servlet that gets MS Word and converts it to HTML (e.g using Apache POI - library to access Microsoft format files http://poi.apache.org/ ). Then you can try display this HTML using iframe or <jsp:include> and <f:verbatim> tag in your jsf page. I'ts my fast and free think - I have never tried this.
    Kuba

  • Apache and Jserv issues - AppsLogin and AppsLocalLogin not working

    Hi,
    I am trying to understand the Apache and Jserv issues
    Home page - http://11i-tst-02.cisco.com:38901 - working fine
    This confirms that Apache core module is working fine. Does this confirm about the pls module also ?
    Apps local login - http://11i-tst-02.cisco.com:38901/OA_HTML/AppsLocalLogin.jsp - throwing Java Exception
    Request URI:/OA_HTML/AppsLocalLogin.jsp
    Exception:
    java.lang.NoClassDefFoundError
    at oracle.apps.fnd.sso.SSOManager.getAppsServletAgent(SSOManager.java:1727)
    at oracle.apps.fnd.sso.SSOManager.getLoginUrl(SSOManager.java:316)
    at oa_html._AppsLocalLogin._jspService(_AppsLocalLogin.java:410)
    at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
    at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
    at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
    at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
    at oracle.jsp.JspServlet.service(JspServlet.java:148)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
    at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
    at org.apache.jserv.JServConnection.run(JServConnection.java:294)
    at java.lang.Thread.run(Thread.java:479)
    Is it related to SSO ? Because error mentions about SSOManager
    But why does AppsLocalLogin need to go thru SSO ?
    Doesn it mean Jserv issues ? I am able to see same message logged in jvm logs ?
    Restarting Apache doesnt help
    Servlet login - http://11i-tst-02.cisco.com:38901/oa_servlets/AppsLogin - throws Internal Server Erorr
    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
    Apache log doesnt show any error
    Servlet test works - http://11i-tst-02.cisco.com:38901/servlets/Hello
    Example Apache JServ Servlet
    Congratulations, ApacheJServ 1.1 is working!
    OAM works - http://11i-tst-02.cisco.com:38901/servlets/weboam/oam/oamLogin - Navigating to SSO page for authentication
    AOL test works - http://11i-tst-02.cisco.com:38901/OA_HTML/jsp/fnd/aoljtest.jsp
    FND_WEB.PING works - http://11i-tst-02.cisco.com:38901/pls/QTCSTG/FND_WEB.PING
    Connection test works - http://11i-tst-02.cisco.com:38901/servlets/oracle.apps.icx.common.ConnectionTest
    So, my question is why AppsLogin and AppsLocalLogin are not working - if servlets / AOL / FND / OAM links are working
    Is there issue with Jserv ?
    Can someone please explain the significance of the above tests
    And which tests need to pass for AppsLogin and AppsLocalLogin to work
    Thanks

    Since all the tests work fine as you stated above, I suggest you do the following:
    - Rerun Autoconfig on all tiers
    - rm -rf $OA_HTML/_pages
    - Bounce Apache

  • Receiving and parsing a SOAP Message

    Hi All.
    I have just installed the JAXM package, cause I want to programm a network message broker using SOAP. The server code is written in C# and I tested it. All messages are send and processed via SOAP and it all works.
    So I now want to try to receive these messages with a JAVA program. But when I looked up the API I didnt find any class or method for only receiving SOAP messages. I guess that I have overlooked the part where this is explained, or I got something wrong. But I would be grateful, if anyonle could tell me if and how this will work.
    Thanx in advance,
    Christian

    Hi
    To get a service to only receive messages you must use a class that implements Onewaylistener, and this class must be supported in a container environment e.g. servlet or J2EE container. It defines one method, public SOAPMessage onMessage(SOAPMessage) which is called by the container when it receives a message. For example say I want to create a servlet that receives SOAP messages for a purchasing application
    public class PurchasingServlet extends JAXMServlet implements
              OnewayListener{
         public SOAPMessage onMessage(SOAPMessage message){}
    The JAXMServlet is a helper servlet to handle SOAP messages but it is not necessary to implement.
    Hope this helps.

  • I tried to display gif image from oracle to jsp but nothing appear

    i tried to display image from oracle DB to jsp directly without using file processing , and i used Servlet and jsp , Servlet to get image from DB and jsp to use <img> tag , when i Run Servlet code
    the image appaer on Microsoft Photo Editor , and when i run jsp the image dose not appear on jsp page , so please anyone has an idea about this broblem ,send the soluation or any information to my e-mail [email protected] , and I'll thankful about your help.
    the Servlet and jsp code are below .
    thank for your help
    Servlet:
    import java.io.InputStream;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.Statement;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.PrintWriter;
    import java.io.IOException;
    public class Servlet extends HttpServlet
    public void init(ServletConfig config) throws ServletException
    super.init(config);
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
    response.setContentType("image/gif");
    int id = Integer.parseInt(request.getParameter("no"));
    // int id = 2 ; when Run Servlet .
    ResultSet rs = null;
    Connection Lcon = null;
    String stmt = " select Image from ImageTable where lmage_id ="+id;
    Statement sm = null;
    String data1 ="";
    try
    Lcon = getConntcion();
    sm = Lcon.createStatement();
    rs = sm.executeQuery(stmt);
    if(rs.next())
    InputStream in = rs.getBinaryStream(1);
    ServletOutputStream sout = response.getOutputStream();
    int c;
    while((c=in.read())!= -1)
    sout.write(c);
    in.close();
    sout.flush();
    sout.close()
    }catch(Exception e)
    System.out.println("error in selectValue the error is "+e);
    finally
    rs .close( );
    sm .close( );
    Lcon.close( );
    public Connection getConntcion()
    Connection con = null;
    try{
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    con = DriverManager.getConnection(",,,,,,,, DB Info ,username and password ,,,,,,,,,,,");
    }catch(Exception e)
    System.out.println("error in connection the error is "+e);
    return con;
    Jsp code :
    <%@ page contentType="text/html"%>
    <html>
    <head
    </head>
    <title> testing image </title>
    <body>
    <form>
    <img src="servlet/Servlet?no=2">
    </form>
    </body>
    </html>

    InputStream in = rs.getBinaryStream(1);
    byte[] image= null;
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    byte[] buffer = new byte[8192];
    int bytesRead = 0;
    while ((bytesRead = in.read(buffer, 0, 8192)) != -1)
         baos.write(buffer, 0, bytesRead);
    image= baos.toByteArray();
    in.close();
    ServletOutputStream sout = response.getOutputStream();
    if (image != null)
           sout.write(image);
           sout.flush();
    }

  • How to invoke a java application in the middle of the process

    In the middle of one process, I want to invoke a java application. After the java application, the process will continue and select a path based on the result of the java application. Which activity can be used to invoke a java application in the middle of the process?
    Thanks

    BPM Changes:
    1. Under 'External Resources' create a new resource of type 'Server Configuration'. Specify the host port and path of your servlet here. This will be invoked from your process. Lets name this configuration as 'myExternalConf'.
    2. Create an interactive activity say 'InvokeMyApplication' in your process. The main task of this application should be external task. (Implementation Type = External)
    3. Create the prepareMethod method say 'prepareExternal'. Set the arguments for this method as output arguments. These arguments will be available to you in your external servlet.
    4. Create the commit method say 'commitExternal'. Set the arguments as input arguments. The external servlet will return these arguments back to the process.
    5. Check the 'Use configuration' checkbox for your main task (external task). Select 'myExternalConf' here.
    Servlet changes:
    When the user executes your 'InvokeMyApplication' activity, he will be taken to the external servlet of your external application. You will be passed the currentActivity, currentParticipant, instanceID and one more argument (which I dont remember :( ) as url parameters.
    1. In this servlet, open a PAPI/PAPI WS session for the participant passed to the servlet as url parameter
    2. Use the currentActivity ( passed in url parameter), to call prepare method on this activity. This will return you with the arguments defined in 'prepareExternal' method.
    3. Using these argumets, or otherwise, you can do whatever you want in this servlet. When done prepare the arguments to pass back to BPM.
    4. call papiService.activityCommit and return the arguments.
    5. Flow goes back to your BPM application
    Some code that might help:
    Servlet calling prerpare:
    ProcessServiceSession papisession = null;
    try{
    papisession = initializePapi();
    fuego.papi.Arguments args = fuego.papi.Arguments.create();
    args = papisession.activityPrepare(activity, instanceId, args);
    Map<String, Object> argsMap = args.getArguments();
    return argsMap;
    protected ProcessServiceSession initializePapi(){
    Properties configuration = new Properties();
    try {
    InputStream inputStream = getClass().getClassLoader().getResourceAsStream("bpm.properties");
    if(inputStream == null)
    throw new IOException();
    configuration.load(inputStream);
    } catch (IOException ex) {
    log.log(Level.WARNING, "Could not load bpm.properties", ex);
    return null;
    Servlet calling commit:
    public void commitToALBPM(Map parameters){
    try{
    papisession = initializePapi();
    fuego.papi.Arguments args = fuego.papi.Arguments.create();
    Set s = parameters.keySet();
    Iterator propNames = s.iterator();
    while (propNames.hasNext()){
    String key = (String)propNames.next();
    String val = (String)parameters.get(key);
    args.putArgument(key, val);
    papisession.activityCommit(activity, instanceId, args);
    catch (OperationException e)
    HTH
    Satinder

  • Need some help with Slow Downs in Java3D and Servlets

    Hi,
    I realize that there is a separate forum for Java 3D, but I posted there, and did not get any response. This is kinda the crux of my program, so I would like to invite anybody on this forum with knowledge of Java 3D and servlets to give it a stab. Between this post and that one, there are TWENTY duke dollars up for grabs.
    Thanks.
    http://forum.java.sun.com/thread.jspa?threadID=603198

    Let me have an educated guess.
    You calculated the time elapsed before sending in a server request - and at that point you have you updated timeLastStateChange yet, which means by the time of the next calculation of time elapsed this apparent delay is not counted in, hence the slow down in animation rate.
    Hope this helps~
    Alex Lam S.L.

  • Can not make XSQL servlet running under Jrun 3.1! need help

    Hi,
    I tried to run Oracle XSQL servlet under JRun 3.1,I did servlet mapping, such as
    <servlet-name>oracle-xsql-servlet</servlet-name>
    <servlet-class>oracle.xml.xsql.XSQLServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>oracle-xsql-servlet</servlet-name>
    <url-pattern>*.xsql</url-pattern>
    </servlet-mapping>
    I set classpath for XSQL related library such as oraclexsql.jar, xmlparserv2.jar,etc, I believe everything is setup correctly, however when I invoke .xsql page, I did not get data instead of getting sql text!, here is my xsql file content:
    <?xml version="1.0"?>
    <!-- reports.xsql: List of reports by user id -->
    <?xml-stylesheet type="text/xsl" href="Filter.xsl"?>
    <page connection="reports_8i" xmlns:xsql="urn:oracle-xsql">
         <dataform target="reportFilter.jsp" submit="Go">
    <xsql:set-session-param name="userid" value="{@userid}" ignore-empty-value="no"/>
         <xsql:include-param name="userid"/>
         <xsql:set-session-param name="bu_id" value="{@bu_id}" ignore-empty-value="no"/>
         <xsql:include-param name="bu_id"/>
         <xsql:set-session-param name="client_id" value="{@client_id}" ignore-empty-value="no"/>
         <xsql:include-param name="client_id"/>
         <item type="list" name="targetPage" label="Available Reports">
         <xsql:ref-cursor-function bind-params="userid">
                   reports_generation.getReportList(?)
              </xsql:ref-cursor-function>
              </item>
         </dataform>
    </page>
    What I got when I invoked this page is reports_generation.getReportList(?)!!
    It seems that JRun 3.1 did not understand xsql syntax, it means it can not find XSQL servlet related libraries, come on, I did set classpath.
    Does anyone has this experience to help me out? Highly appreicate you in advance.
    Thanks.

    i think i solved this problem by specifying the full path to javac...
    what must i do to avoid this?

Maybe you are looking for