Jswdk

Hi,
I've just starting learning java and am interested in working with servlets and jsps.
which is better to practise on jswdk or tomcat?
Also I downloaded JSWDK 1.0.1 and am having trouble setting up the classpath.
When i click the starterserver.bat it tells me that it is unable to locate the sun.tools.javac.Main class and to set the classpath.
I'm using windows 2000 and have set the classpath (Environment Variables) to ".;C\classes;%CLASSPATH%" and the Path to "C:\jdk1.3.1\bin;C:\jswdk-1.0.1\lib\servlet.jar;%PATH%". But i am still getting the error message when i click on the startserver.bat.
What am i doing wrong ?
can you please help me?
many thanks

Hi, I am using jswdk1.0.1 too and I don't get an error message when I include the following in my CLASSPATH.
CLASSPATH C:\jdk1.3.1\lib\tools.jar
The web server displays a message to to do this. Hope I am not confusing your problem with something else and this helps.
Notice you have to include the full path of the file "tools.jar" in your java development environment.

Similar Messages

  • Trouble compiling a Servlet using the JSWDK-1.0.1

    I have an old Win95 box on which I had a JDK 1.2 install and I then installed the JSWDK-1.0.1. I have the servlet.jar and jspengine.jar files in the "\lib" directory and have added them to my classpath.
    I created a simple servlet but it does not read any classes from the JSWDK .jar files and throws an error saying class HTTPServlet not found. The first few lines of my servlet look like:
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class TestServlet extends HTTPServlet
    Any idea why the "javac" compiler cant see the class from the proper jar file? I am using JBuilder as my source code editor and it too shows all the servlet related class/package names in red (i.e. doesnt recognize them).
    Regular java apps compile and run fine on this machine.

    Hi,
    It should be definitely a CLASSPATH problem. You can double check the CLASSPATH in command prompt like this
    echo %CLASSPATH%
    If the CLASSPATH is set properly, you should see something like this
    c:\jdk1.2\lib\tools.jar;c:\jswdk-1.0.1\lib\servlet.jar
    Hope this helps.
    Best Luck!
    Senthil Babu J

  • How to run JAXP in servlet using JSWDK?

    Hi,
    I am trying to parse xml to html using JAXP API within a servlet. But an error message showing ' java.lang.NoClassDefFoundError: javax/xml/parsers/ParserConfigurationException ' is displayed in the web brower. But when I parse the xml to html and output the html text to the standard output, the program works. So, how can I run xml parsers within JSWDK?
    Thanks a lot.

    Hi,
    The problem is you don't have jaxp.jar in your classpath. JAXP Package is the implementation of the specification of XML processing in Java. The xml.jar contains implementation of Sun's(called Project X) XML Parser and related utilities that does not deals with JAXP Specs. The xml.jar is meant for the JSWDK to process the xml files(configuration files). I have not found any documentations for XML Utility classes in xml.jar.
    The solution for your problem is; download JAXP api and get the jar files(3 jars) into the classpath. While setting classpath for the jars in JAXP check out that thing named crimson.jar appears first before any other jars in classpath, else it would throw a SecurityException.
    Hope this helps.
    Regards,
    Rajavelu G.

  • Running both Tomcat and JSWDK server on same win2000 server m/c

    Hi all,
    I was running Tomcat4.0.4 on my m/c which operates on WIN2000 server. Afterwards I installed the JSWDK 1.0.1 on the same m/c. I worked with it for sometime. But when I went back to starting up the tomcat again, it would not startup. The dos window comes up and vanishes within a few milliseconds. I deleted the entire JSWDK folder. Removed JSDK and Tomcat directories and re-installed everyhing other than the JSWDK, but problem persists.
    Can anybody please help out ??
    Thanks,
    vishnupriyaa

    Hi all,
    Thanks for taking the time out to answer the query. Paul's reply helped me most though Balava had also indicated the same thing ... I could see from the log file that the Catalina environment was not set properly. Earlier I had it set equal to the TOMCAT_HOME variable path which was 'I:\jakarta-tomcat-4.0.4\bin'. I now removed the '\bin' from the path and lo! tomcat was running again on the port assigned to it!!
    Thanks everybody ... I am awarding the duke points to Paul
    vishnupriyaa

  • Jswdk dosen't work

    hi all
    i spent alot of time trying make jswdk work
    i installed it according to sun instruction
    i can't get the message"endpoint created: localhost/127.0.0.1:8080"
    i have win 98,jdk1.3,jswdk1.0.1
    when i start the server i got the followinfg messsage:
    C:\jswdk-1.0.1>startserver.bat
    Using classpath: .\classes;.\webserver.jar;.\lib\jakarta.jar;.\lib\servlet.jar;
    .\lib\jsp.jar;.\lib\jspengine.jar;.\examples\WEB-INF\jsp\beans;
    .\webpages\WEB-INF\servlets;.\webpages\WEB-INF\jsp\beans;.\lib\xml.jar;.\lib\moo.jar;C:\jdk1.3\lib\tools.jar;
    ;.;C:\jdk1.3\lib\tools.jar;C:\jswdk-1.0.1\lib\servlet.jar
    pay attention that he repeated C:\jdk1.3\lib\tools.jar
    and the autoexec.bat file look like:
    SET BLASTER=A220 I7 D1 H7 P330 T6
    SET SBPCI=C:\SBPCI
    rem - By Windows Setup - C:\WINDOWS\COMMAND\MSCDEX /D:MSCD001 /V
    mode con codepage prepare=((720) C:\WINDOWS\COMMAND\ega4.cpi)
    mode con codepage select=720
    Doskey
    SET JAVA_HOME=C:\jdk1.3
    SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\jdk1.3\bin;D:\po815\bin;"D:\PROGRAM FILES\ORACLE\JRE\1.1.7\BIN";"C:\PROGRAM FILES\JRE\1.1.7\BIN";D:\ORAWIN95\BIN
    SET CLASSPATH=.;C:\jdk1.3\lib\tools.jar;C:\jswdk-1.0.1\lib\servlet.jar
    my java version is:
    C:\jdk1.3\bin>java -version
    java version "1.3.0"
    Java(TM) 2 Runtime Environment,Standard Edition (build 1.3.0-C)
    Java HotSpot(TM) Client VM (build 1.3.0-C,mixed mode)
    please help me
    my email is: [email protected]
    thank you alot

    pay attention that he repeated C:\jdk1.3\lib\tools.jarwhat's this or rather, who ?
    Also, you have repeated .\lib\servlet.jar twice !!!
    Don't know if that could be a problem but once should suffice.

  • How to exec jsp base jswdk HttpServer on UNIX?

    It can be run correctly in NT. When I move the server to UNIX and run the jsp again, the jsp code can not be explained.
    Sure the jdk and jswdk is different between NT and UNIX platform.

    sombody help me. TKS

  • Difficult to install JSWDK ,help!

    my platforms is windows 98 and i have install JSWDK.
    and adjust the "Initial Environment" drop-down box from "Auto" to "2816".but the message that Out of Environment Space error message doesn't disappear.
    my error is
    Out of Environment Space
    Using classpath:;
    Exception in thread "main" java.lang.NoClassDefFoundError:com/sun/web/shell/startup

    Hi,
    You need to increase the environment size under Windows machine.
    Please refer,http://www.jguru.com/faq/view.jsp?ID=3903
    Hope that helps.
    Best Luck!
    Senthil Babu
    Developer Technical Support
    SUN Microsystems
    http://www.sun.com/developers/support/

  • Which server jswdk or apache?

    Hi,
    I've just starting learning java and am interested in working with servlets and jsps.
    I 'm not sure whether to practise on tomcat or jswdk? which is better?
    Also I downloaded JSWDK 1.0.1 and am having trouble setting up the classpath.
    When i click the starterserver.bat it tells me that it is unable to locate the sun.tools.javac.Main class and to set the classpath.
    I'm using windows 2000 and have set the classpath (Environment Variables) to ".;C\classes;%CLASSPATH%" and the Path to "C:\jdk1.3.1\bin;C:\jswdk-1.0.1\lib\servlet.jar;%PATH%". But i am still getting the error message when i click on the startserver.bat.
    What am i doing wrong ?
    can you please help me?
    many thanks

    In either case, you need to define JAVA_HOME.

  • HELP!  Error startserver JSWDK

    I have an error when I start the server on UNIX. The error is this:
    "Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/web/shell/Shutdown"
    The file startserver contains:
    #! /bin/sh
    # $Id: startup.sh,v 1.2.2.1 1999/09/09 01:45:27 gonzo Exp $
    # Shell script to startup the server
    # This script is known to work with the standard Korn Shell under
    # Solaris and the MKS Korn shell under Windows.
    # There are other, simpler commands to startup the runner. The two
    # commented commands good replacements. The first works well with
    # Java Platform 1.1 based runtimes. The second works well with
    # Java2 Platform based runtimes.
    #jre -cp runner.jar:servlet.jar:classes com.sun.web.shell.Startup $*
    #java -cp runner.jar:servlet.jar:classes com.sun.web.shell.Startup $*
    baseDir=`dirname $0`
    jsdkJars=${baseDir}/webserver.jar:${baseDir}/lib/jakarta.jar:${baseDir}/lib/servlet.jar
    jspJars=${baseDir}/lib/jsp.jar:${baseDir}/lib/jspengine.jar
    beanJars=${baseDir}/examples/WEB-INF/jsp/beans:${baseDir}/webpages/WEB-INF/jsp/beans:${baseDir}/webpages/WEB-INF/servlets
    miscJars=${baseDir}/lib/xml.jar
    appJars=${jsdkJars}:${jspJars}:${beanJars}:${miscJars}
    sysJars=${JAVA_HOME}/lib/tools.jar
    appClassPath=${appJars}
    cp=$CLASSPATH
    # Backdoor classpath setting for development purposes when all classes
    # are compiled into a /classes dir and are not yet jarred.
    if [ -d ${baseDir}/classes ]; then
    appClassPath=${baseDir}/classes:${appClassPath}
    fi
    CLASSPATH=${appClassPath}:${sysJars}
    export CLASSPATH
    if [ "$cp" != "" ]; then
    CLASSPATH=${CLASSPATH}:${cp}
    export CLASSPATH
    fi
    echo Using classpath: ${CLASSPATH}
    # We start the server up in the background for a couple of reasons:
    # 1) It frees up your command window
    # 2) You should use `stopserver` instead of ^C to bring down the server
    java com.sun.web.shell.Startup $* &
    if [ "$cp" != "" ]; then
    CLASSPATH=${cp}
    export CLASSPATH
    else
    unset CLASSPATH
    fi

    I find the solution: server.jar in classpath...

  • Database connection using JSWDK

    hii all,
    I am a beginner in JSP.I have a win98 machine where i have installed Java Server pages Web Development Kit.
    I have installed jdk 1.1.3.My Aache Webserver and simple Jsp pages without database connection are running fine.Now when i am using resultset data type in a database application ,a error "type library Resultset "not found "
    is coming.Please help as i cant proceed without this .thank you
    arnab

    try this code
    <%! java.sql.ResultSet rss;%>
    <%! java.sql.Connection con;%>
    <%! java.sql.Statement stat2;%>
    <%
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    con = DriverManager.getConnection("jdbc:odbc:"+DSN_name);
    // conDriverManager.getConnection
    // ("jdbc:odbc:dnsname ");
    stat2= con.createStatement (ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
    rss = stat2.executeQuery("select * from tablename");
    if(rss!=null)
    rss.getString("column_name");
    }//end of try block
    catch(SQLException SE)
    //----some exception handling----
    %>

  • 404 ERROR WHILE RUNNING A SERVLET

    hi
    i have written servlet program that takes a cookie value
    from a HTML page....
    while running the HTML page i have been getting the error
    The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
    Please try the following:
    If you typed the page address in the Address bar, make sure that it is spelled correctly.
    Open the localhost:8080 home page, and then look for links to the information you want.
    Click the Back button to try another link.
    Click Search to look for information on the Internet.
    HTTP 404 - File not found
    Internet Explorer
    i have placed my servlet prog at
    c:\aruna\AddCookieServlet
    and html prog is also in there itself
    and i have complied them successfully
    i have been tried with following URLs in my html prog
    http://localhost:8080/servlet/AddCookieServlet
    http://localhost:8080/aruna/servlet/AddCookieServlet
    it would be helpful if someone will give me an immediat response
    thanks

    Hi arunapotti,
    I assume that you have downloaded Java server Web Developement Kit 1.0.1. This is a reference implementation of Servlets 2.1 and JSP1.0 specification.
    But the current version of Servlets is 2.3 and that of JSP is 1.1, and the reference implementation for the same is Tomcat4.0.1. You can download this implementation from the following URL. Like JSWDK it is also available free of cost:-
    http://java.sun.com/products/servlet/download.html
    Once you install it properly in
    C:\jakarta-tomcat-4.0.1
    You can write a servlet as :-
    I wrote a servlet named CentralServlet as :-
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class CentralServlet extends HttpServlet {
    public void doGet(HttpServletRequest req, HttpServletResponse res)
    throws ServletException , IOException {
    doPost(req, res);
    public void doPost(HttpServletRequest req, HttpServletResponse res)
    throws ServletException , IOException {
    PrintWriter out = res.getWriter();
    out.println("Yes you have done it");
    Once you compile this properly place it in directory
    C:\jakarta-tomcat-4.0.1\webapps\srvltWEB-INF\classes\CentralServlet
    where srvlt is the directory created by you, this is the context for your application.webapps will already be there when you have successfully installed Tomcat.
    Within srvlt create WEB-INF and with in WEB-INF create classes where you place your servlet.
    To make srvlt a context you will have to make an entry in server.xml file which you can find at the following location
    C:\jakarta-tomcat-4.0.1\conf\server.xml
    Add the following entry in this xml file.
    <Context path="/srvlt" docBase="srvlt" debug="0" reloadable="true" />
    Also write web.xml is as :-
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">;
    <web-app>
    <servlet>
    <servlet-name>srvlt</servlet-name>
    <servlet-class>CentralServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>srvlt</servlet-name>
    <url-pattern>/main</url-pattern>
    </servlet-mapping>
    </web-app>
    Put web.xml in
    C:\tomcat-4.0.1\webapps\srvlt\WEB-INF\web.xml
    Now restart the webserver and you can access the servlet by passing the following url
    http://localhost:8080/srvlt/main
    =========================================
    If still you have some reason to work with Java Server Web Developement Kit then Post a message, I may help you out in that also. But it is highly recommended that you use Tomcat_4.0.1.
    Hope this helps

  • Can't Get My Servlets to Run in Tomcat. Please help...

    Hi!
    I've been banging my head against the same brick wall for a day and a half now and am getting pretty desperate...
    I installed Tomcat 4.1.24 with no problem and successfully ran one or two of the example servlets. However, I can't get my own (working) servlets to run in either ROOT or any other folder that I create under webapps. If I move my servlets into webapps\WEB-INF\classes, though, they run fine!
    Using 'x' represent the folder I've created, I have placed a servlet called FirstServlet in x\WEB-INF\classes. I have also placed the following web.xml file inside x\WEB-INF:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <servlet>
    <servlet-name>FirstServlet</servlet-name>
    <servlet-class>FirstServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>FirstServlet</servlet-name>
    <url-pattern>/servlet/FirstServlet</url-pattern>
    </servlet-mapping>
    </web-app>
    [I have also tried omitting '/servlet' above and tried changing the name of the url-pattern.]
    In addition to this, I have tried editing the server.xml file by adding the following context:
    <Context path="/x" docBase="webapps/x" debug="0"
    reloadable="true">
    </Context>
    Despite all of this, I still continue to get the error message 404: The requested resource is not available.
    Can anybody please give me some idea of what I'm doing wrong or am failing to do??
    Many thanks in anticipation.
    Cheers.
    Jan

    Hi, Sharnee.
    Thanks for taking the time to email me. However, I really don't need to test my servlets, since (a) they all work under the JSWDK Web server and (b) the one that I am attempting to test ('FirstServlet') works fine when I place it in webapps\examples\WEB-INF\classes.
    In answer to your previous email, the URL I have used in attempting to run my servlet (with the servlet in ...\webapps\x\WEB-INF\classes, of course) is:
    http://localhost:8080/x/servlet/FirstServlet
    In desperation, I have also tried each of the following (with similar lack of success):
    http://localhost:8080/webapps/x/servlet/FirstServlet
    http://localhost:8080/ROOT/servlet/FirstServlet (after copying the servlet into ...\webapps\ROOT\WEB-INF\classes)
    http://localhost:8080/webapps/ROOT/servlet/FirstServlet
    Any suggestions?? I'm really frustrated, since the basic process that is required seems so straightforward, but simply isn't working for me!
    Thanks in anticipation.
    Jan

  • Misleading messages in JDeveloper IDE

    I think I found a potential major bug in JDeveloper with JSP. This is how it happeed. After I modified the bean(beanname also) and added more elements, I can compile the bean JSP successfully and when I run it, it says Running - compiled successfully. But, I get the following output:
    "E:\Oracle\JDeveloper 3.1\java1.2\jre\bin\java" -XXdebug -mx50m -classpath "E:\Oracle\JDeveloper 3.1\myclasses\_pages;E:\Oracle\JDeveloper 3.1\myclasses;E:\Oracle\JDeveloper 3.1\lib\webtogo.jar;E:\Oracle\JDeveloper 3.1\lib\xmlparser.jar;E:\Oracle\JDeveloper 3.1\lib\jdev-rt.zip;E:\Oracle\JDeveloper 3.1\lib\jbcl2.0.zip;E:\Oracle\JDeveloper 3.1\lib\jdev-rt.zip;E:\Oracle\JDeveloper 3.1\jdbc\lib\oracle8.1.6\classes12.zip;E:\Oracle\JDeveloper 3.1\lib\connectionmanager.zip;E:\Oracle\JDeveloper 3.1\lib\ojsp.jar;E:\Oracle\JDeveloper 3.1\lib\ojc.jar;E:\Oracle\JDeveloper 3.1\jswdk-1.0.1\lib\servlet.jar;E:\Oracle\JDeveloper 3.1\java1.2\jre\lib\rt.jar" oracle.jdeveloper.debugger.ServletMain \Create_Form_html\CreateForm.jsp
    System Output: log3: oracle.jsp.JspServlet: init
    System Output: log3: JspServlet: unable to dispatch to requested page: Exception:oracle.jsp.provider.JspCompileException: <H3>Errors compiling:E:\Oracle\JDeveloper 3.1\myclasses\_pages\create_form_html\CreateForm.java</H3>
    System Output: <TABLE BORDER=1><TR><TH>Line #</TH><TH>Error</T
    System Output: H></TR>
    System Output: <TR><TD VALIGN=TOP><CENTER>0<CENTER></TD><TD VALIGN=TOP><PRE>'try' without 'catch' or 'finally'</PRE></TD></TR>
    System Output: <TR><TD VALIGN=TOP><CENTER>0<CENTER></TD><TD VALIGN=TOP><PRE>illegal start of type</PRE></TD></TR>
    System Output: <TR><TD VALIGN=TOP><CENTER>0<CENTER>
    System Output: </TD><TD VALIGN=TOP><PRE>'class' or 'interface' expected</PRE></TD></TR>
    System Output: <TR><TD VALIGN=TOP><CENTER>16<CENTER></TD><TD VALIGN=TOP><PRE>method getparameter(java.lang.String) not found in interface javax.servlet.http.HttpServletRequest</PRE></TD></TR>
    System Output: </TAB
    System Output: LE>
    System Output:
    Also, After it says 'Loading JSP' - I get error not much relevent to my code. Because, I don't have any try-catch block in my scripts:
    JSP Error:
    Request URI:/Create_Form_html/CreateForm.jsp
    Exception:
    oracle.jsp.provider.JspCompileException:
    Errors compiling:E:\Oracle\JDeveloper 3.1\myclasses\_pages\create_form_html\CreateForm.java
    Line # Error
    0 'try' without 'catch' or 'finally'
    0 illegal start of type
    0 'class' or 'interface' expected
    16 method getparameter(java.lang.String) not found in interface javax.servlet.http.HttpServletRequest
    Please let me know if there's a workaround!
    TIA,
    Sassan

    Here's the code:
    CreateForm.jsp
    <html>
    <head>
    <title>Consumer Form</title>
    </head>
    <body>
    <form action="/Create_Form_html/RetrieveFormData.jsp" method="post">
    <table align="center" cellspacing="2" cellpadding="2" border="1">
    <tr>
    <td colspan="3">
    <b>Product Name:</b>
    <%
    String product = request.getParameter("product");
    if ( product != null) {
    %>
    <input type="text"
    name="product"
    size="40"
    maxlength="40">
    <%
    else{
    %>
    <input type="text"
    name="product"
    size="40"
    maxlength="40">
    <%
    %>
    </td>
    <tr>
    <td colspan="3">
    <b>Company Name:</b>
    <input type="text"
    name="company"
    size="40"
    maxlength="40">
    </td>
    </tr>
    <tr>
    <td colspan="3">
    <b>Street Address1:</b>
    <input type="text"
    name="street1"
    size="43"
    maxlength="43">
    </td>
    </tr>
    <tr>
    <td colspan="3">
    <b>Street Address2:</b>
    <input type="text"
    name="street2"
    size="43"
    maxlength="43">
    </td>
    </tr>
    <tr>
    <td>
    <b>City:</b>
    <input type="text"
    name="city"
    size="20"
    maxlength="20">
    </td>
    <td>
    <b>State:</b>
    <input type="text"
    name="state"
    size="2"
    maxlength="2">
    </td>
    <td>
    <b>Zip:</b>
    <input type="text"
    name="zip"
    size="5"
    maxlength="5">
    </td>
    </tr>
    <tr>
    <td colspan="3">
    <b>Email Address:</b>
    <input type="text"
    name="email"
    size="40"
    maxlength="40">
    </td>
    </tr>
    <tr>
    <td colspan="3">
    <b>Phone Number:</b>
    <input type="text"
    name="phone"
    size="20"
    maxlength="20">
    </td>
    </tr>
    <tr>
    <td colspan="3">
    <b>Fax Number:</b>
    <input type="text"
    name="fax"
    size="20"
    maxlength="20">
    </td>
    </tr>
    <tr>
    <td>
    <b>Note:</b>
    <input type="text"
    name="note"
    size="40"
    maxlength="40">
    </td>
    </tr>
    <tr>
    <td>
    <b>Caution:</b>
    <input type="text"
    name="caution"
    size="40"
    maxlength="40">
    </td>
    </tr>
    <tr>
    <td>
    <b>Tip:</b>
    <input type="text"
    name="tip"
    size="40"
    maxlength="40">
    </td>
    </tr>
    <tr>
    <td>
    <b>Details:</b>
    <input type="text"
    name="details"
    size="40"
    maxlength="40">
    </td>
    </tr>
    <tr>
    <td>
    <b>Warning:</b>
    <input type="text"
    name="warning"
    size="40"
    maxlength="40">
    </td>
    </tr>
    <tr>
    <td>
    <input type="Submit" value="Submit">
    </td>
    </tr>
    </table>
    </form>
    </body>
    </html>
    Product.java
    /** This bean is used to encapsulate simple
    * product and company data.
    public class Product {
    private String product = null;
    private String company = null;
    private String street1 = null;
    private String street2 = null;
    private String city = null;
    private String state = null;
    private String zip = null;
    private String email = null;
    private String phone = null;
    private String fax = null;
    private String note = null;
    private String caution = null;
    private String tip = null;
    private String details = null;
    private String warning = null;
    // Default Constructor
    public Product() {
    // Public Accessors
    public String getProduct() {
    return product;
    public void setProduct(String value) {
    product = value;
    public String getCompany() {
    return company;
    public void setCompany(String value) {
    company = value;
    public String getStreetAddress1() {
    return street1;
    public void setStreetAddress1(String value) {
    street1 = value;
    public String getStreetAddress2() {
    return street2;
    public void setStreetAddress2(String val ue) {
    street2 = value;
    public String getCity() {
    return city;
    public void setCity(String value) {
    city = value;
    public String getState() {
    return state;
    public void setState(String value) {
    state = value;
    public String getZip() {
    return zip;
    public void setZip(String value) {
    zip = value;
    public String getEmailAddress() {
    return email;
    public void setEmailAddress(String value) {
    email = value;
    public String getPhoneNumber() {
    return phone;
    public void setPhoneNumber(String value) {
    phone = value;
    public String getFaxNumber() {
    return fax;
    public void setFaxNumber(String value) {
    fax = value;
    public String getNote() {
    return note;
    public void setNote(String value) {
    note = value;
    public String getCaution() {
    return caution;
    public void setCaution(String value) {
    caution = value;
    public String getTip() {
    return tip;
    public void setTip(String value) {
    tip = value;
    public String getDetails() {
    return details;
    public void setDetails(String value) {
    details = value;
    public String getWarning() {
    return warning;
    public void setWarning(String value) {
    warning = value;
    CreateForm.java(auto-generated in a different directory mentioned in the prev. mail when I run CreateForm.jsp:
    /*@lineinfo:filename=CreateForm.jsp*/
    /*@lineinfo:generated-code*/
    package create_form_html;
    import oracle.jsp.runtime.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.servlet.jsp.*;
    import java.io.*;
    import java.util.*;
    import java.lang.reflect.*;
    import java.beans.*;
    public class CreateForm extends oracle.jsp.runtime.HttpJsp {
    public final String _globalsClassName = null;
    // ** Begin Declarations
    // ** End Declarations
    public void _jspService(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
    /* set up the intrinsic variables using the pageContext goober:
    ** session = HttpSession
    ** application = ServletContext
    ** out = JspWriter
    ** page = this
    ** config = ServletConfig
    ** all session/app beans declared in globals.jsa
    JspFactory factory = JspFactory.getDefaultFactory();
    PageContext pageContext = factory.getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);
    // Note: this is not emitted if the session directive == false
    HttpSession session = pageContext.getSession();
    if (pageContext.getAttribute(OracleJspRuntime.JSP_REQUEST_REDIRECTED, PageContext.REQUEST_SCOPE) != null) {
    pageContext.setAttribute(OracleJspRuntime.JSP_PAGE_DONTNOTIFY, "true", PageContext.PAGE_SCOPE);
    factory.releasePageContext(pageContext);
    return;
    ServletContext application = pageContext.getServletContext();
    JspWriter out = pageContext.getOut();
    CreateForm page = this;
    ServletConfig config = pageContext.getServletConfig();
    try {
    // global beans
    // end global beans
    out.println( "<html>");
    out.println( "<head>");
    out.println( " <title>Consumer Form</title>");
    out.println( "</head>");
    out.println( "");
    out.println( "<body>");
    out.println( "");
    out.println( " <form action=\"/Create_Form_html/RetrieveFormData.jsp\" method=\"post\">");
    out.println( " <table align=\"center\" cellspacing=\"2\" cellpadding=\"2\" border=\"1\">");
    out.println( " <tr>");
    out.println( " <td colspan=\"3\">");
    out.println( "");
    out.println( " <b>Product Name:</b>");
    out.println( "");
    out.print( " ");
    /*@lineinfo:user-code*//*@lineinfo:16^1*/String product = request.getParameter("product");
    if ( product != null) {
    /*@lineinfo:generated-code*/
    out.println( "");
    out.println( " <input type=\"text\"");
    out.println( " name=\"product\"");
    out.println( " size=\"40\"");
    out.println( " maxlength=\"40\">");
    out.print( " ");
    /*@lineinfo:user-code*//*@lineinfo:24^1*/}
    else{
    /*@lineinfo:generated-code*/
    out.println( "");
    out.println( " <input type=\"text\"");
    out.println( " name=\"product\"");
    out.println( " size=\"40\"");
    out.println( " maxlength=\"40\">");
    out.print( " ");
    /*@lineinfo:user-code*//*@lineinfo:32^1*/}
    /*@lineinfo:generated-code*/
    out.println( "");
    out.println( " </td>");
    out.println( " <tr>");
    out.println( " <td colspan=\"3\">");
    out.println( "");
    out.println( " <b>Company Name:</b>");
    out.println( " <input type=\"text\"");
    out.println( " name=\"company\"");
    out.println( " size=\"40\"");
    out.println( " maxlength=\"40\">");
    out.println( " </td>");
    out.println( " </tr>");
    out.println( " <tr>");
    out.println( " <td colspan=\"3\">");
    out.println( " <b>Street Address1:</b>");
    out.println( " <input type=\"text\"");
    out.println( " name=\"street1\"");
    out.println( " size=\"43\"");
    out.println( " maxlength=\"43\">");
    out.println( " </td>");
    out.println( " </tr>");
    out.println( " <tr>");
    out.println( " <td colspan=\"3\">");
    out.println( " <b>Street Address2:</b>");
    out.println( " <input type=\"text\"");
    out.println( " name=\"street2\"");
    out.println( " size=\"43\"");
    out.println( " maxlength=\"43\">");
    out.println( " </td>");
    out.println( " </tr>");
    out.println( " <tr>");
    out.println( " <td>");
    out.println( " <b>City:</b>");
    out.println( " <input type=\"text\"");
    out.println( " name=\"city\"");
    out.println( " size=\"20\"");
    out.println( " maxlength=\"20\">");
    out.println( " </td>");
    out.println( " <td>");
    out.println( " <b>State:</b>");
    out.println( " <input type=\"text\"");
    out.println( " name=\"state\"");
    out.println( " size=\"2\"");
    out.println( " maxlength=\"2\">");
    out.println( " </td>");
    out.println( " <td>");
    out.println( " <b>Zip:</b>");
    out.println( " <input type=\"text\"");
    out.println( " name=\"zip\"");
    out.println( " size=\"5\"");
    out.println( " maxlength=\"5\">");
    out.println( " </td>");
    out.println( " </tr>");
    out.println( " <tr>");
    out.println( " <td colspan=\"3\">");
    out.println( " <b>Email Address:</b>");
    out.println( " <input type=\"text\"");
    out.println( " name=\"email\"");
    out.println( " size=\"40\"");
    out.println( " maxlength=\"40\">");
    out.println( " </td>");
    out.println( " </tr>");
    out.println( " <tr>");
    out.println( " <td colspan=\"3\">");
    out.println( " <b>Phone Number:</b>");
    out.println( " <input type=\"text\"");
    out.println( " name=\"phone\"");
    out.println( " size=\"20\"");
    out.println( " maxlength=\"20\">");
    out.println( " </td>");
    out.println( " </tr>");
    out.println( " <tr>");
    out.println( " <td colspan=\"3\">");
    out.println( " <b>Fax Number:</b>");
    out.println( " <input type=\"text\"");
    out.println( " name=\"fax\"");
    out.println( " size=\"20\"");
    out.println( " maxlength=\"20\">");
    out.println( " </td>");
    out.println( " </tr>");
    out.println( " <tr>");
    out.println( " <td>");
    out.println( " <b>Note:</b>");
    out.println( " <input type=\"text\"");
    out.println( " name=\"note\"");
    out.println( " size=\"40\"");
    out.println( " maxlength=\"40\">");
    out.println( " </td>");
    out.println( " </tr>");
    out.println( " <tr>");
    out.println( " <td>");
    out.println( " <b>Caution:</b>");
    out.println( " <input type=\"text\"");
    out.println( " name=\"caution\"");
    out.println( " size=\"40\"");
    out.println( " maxlength=\"40\">");
    out.println( " </td>");
    out.println( " </tr>");
    out.println( " <tr>");
    out.println( " <td>");
    out.println( " <b>Tip:</b>");
    out.println( " <input type=\"text\"");
    out.println( " name=\"tip\"");
    out.println( " size=\"40\"");
    out.println( " maxlengt h=\"40\">");
    out.println( " </td>");
    out.println( " </tr>");
    out.println( " <tr>");
    out.println( " <td>");
    out.println( " <b>Details:</b>");
    out.println( " <input type=\"text\"");
    out.println( " name=\"details\"");
    out.println( " size=\"40\"");
    out.println( " maxlength=\"40\">");
    out.println( " </td>");
    out.println( " </tr>");
    out.println( " <tr>");
    out.println( " <td>");
    out.println( " <b>Warning:</b>");
    out.println( " <input type=\"text\"");
    out.println( " name=\"warning\"");
    out.println( " size=\"40\"");
    out.println( " maxlength=\"40\">");
    out.println( " </td>");
    out.println( " </tr>");
    out.println( " <tr>");
    out.println( " <td>");
    out.println( " <input type=\"Submit\" value=\"Submit\">");
    out.println( " </td>");
    out.println( " </tr>");
    out.println( " </table>");
    out.println( " </form>");
    out.println( "</body>");
    out.println( "</html>");
    out.flush();
    catch( Exception e) {
    try {
    if (out != null) out.clear();
    catch( Exception clearException) {
    pageContext.handlePageException( e);
    finally {
    if (out != null) out.close();
    factory.releasePageContext(pageContext);
    Hope this helps!
    TIA,
    Sassan
    null

  • Advice to "thick as a brick" in Java-files tuning, please

    I have just now installed on the NT ojsp, jswdk, jsdk, Apache
    and tried OJSP "White papers"'s example with <%@ page
    import="mybeans.NameBean" %>. I have compiled "NameBean.java"
    to "NameBean.class" and put it into the same directory where a
    jsp-coded page saved. But I got:
    Request URI: /Usebean.jsp
    Exception:
    oracle.jsp.parse.JspParseException: Line #2, Error: Unable to
    find class for bean 'pageBean' defined by tag with class:
    mybeans.NameBean
    Could somebody advice me where I can find descriptions of
    Javabeans, classes and import USING and TUNING on the filesystem?
    And where should I put NameBean.class to run "Usebean.jsp"?
    null

    GF (guest) wrote:
    : Oracle Java Technical Team wrote:
    : : GF (guest) wrote:
    : : : I have just now installed on the NT ojsp, jswdk, jsdk,
    : Apache
    : : : and tried OJSP "White papers"'s example with <%@ page
    : : : import="mybeans.NameBean" %>. I have
    : compiled "NameBean.java"
    : : : to "NameBean.class" and put it into the same directory
    : where a
    : : : jsp-coded page saved. But I got:
    : : : Request URI: /Usebean.jsp
    : : : Exception:
    : : : oracle.jsp.parse.JspParseException: Line #2, Error: Unable
    : to
    : : : find class for bean 'pageBean' defined by tag with class:
    : : : mybeans.NameBean
    : : : Could somebody advice me where I can find descriptions of
    : : : Javabeans, classes and import USING and TUNING on the
    : : filesystem?
    : : : And where should I put NameBean.class to run "Usebean.jsp"?
    : : Your download also contains documentation; "Oracle JSP
    : Developers
    : : Guide". Read the first couple of chapters including the one
    : : concerning JSP applications.
    : : The short answer to you question is you put the bean in the
    : : WEB-INF/classes directory of your application. If you have
    no
    : : application then the servers document root is considered the
    : : application (root).
    : : An alternative is to put the class where ever you want and
    : : configure either OJSP or the underlying servers classpath to
    : : include this location.
    : ===========================================================
    : Thanks a lot for the previous one.
    : There is other point of question.
    : I successfully tested "white paper"'s JDBCQuery.jsp but didn't
    : the SQLJQuery.sqljsp.
    : Could you help again? Where is the reason of Exception?
    : So,
    : It seems that I have all required records and over in
    : the "jserv.properties" file:
    : "wrapper.classpath=C:\Program Files\Apache Group\Apache
    : JServ\ApacheJServ.jar
    : wrapper.classpath=d:\Jsdk2.0\lib\jsdk.jar
    : wrapper.classpath=d:\jswdk-1.0.1\lib\servlet.jar
    : wrapper.classpath=d:\ojsp\lib\ojsp.jar
    : wrapper.classpath=d:\ojsp\lib\xmlparserv2.jar
    : wrapper.classpath=d:\jswdk-1.0.1\lib\jspengine.jar
    : wrapper.classpath=d:\jswdk-1.0.1\lib\xml.jar
    : wrapper.classpath=d:\orant\jdbc\lib\classes111.zip
    : wrapper.classpath=d:\ojsp\lib\translator.zip"
    : But running of http://nt-tst/SQLJQuery.sqljsp gives on the
    : Browser's page:
    : "JSP Error
    : Request URI: /SQLJQuery.sqljsp
    : Exception:
    : oracle.jsp.provider.JspCompileException:
    : Errors compiling: c:\jsps\\SQLJQuery.java
    : Line # Error "
    : and in "jserv.log":
    : [26/11/1999 14:52:02:280 GMT+03:00] JspServlet: unable to
    : dispatch to requested page:Exception:
    : oracle.jsp.provider.JspCompileException: <H3>Errors compiling:
    : c:\jsps\\SQLJQuery.java</H3>...
    : I checked SQLJQuery.sqlj file in the Jdeveloper 2.0
    environment.
    : There were red painted items:
    : "import oracle.jsp.runtime.*;
    : import javax.servlet.jsp.*;
    : import oracle.sqlj.runtime.Oracle;
    : oracle.jsp.runtime.HttpJsp
    : hireDate
    : JspFactory
    : PageContext
    : JspWriter".
    The error is being reported during page compile. Unfortunately,
    the compile problem isn't being reported. It is possible that
    the code is confused and the page compiled correctly -- check to
    see if SQLJQuery.class exists.
    Another thing to check is what files were generate? Does
    SQLJQuery.java exist? If not an error occurred when the SQLJ
    translator was run. If SQLJQuery.java exists but SQLJQuery.class
    doesn't then the error occurred during Java compilation. My
    advice in either case is to manually translate/compile thelast
    generated file to determine the actual compile/translation error.
    I.e. either SQLJQuery.sqlj via the SQLJ translator
    or SQLJQuery.java via the Java compiler
    null

  • XSL Transformation (XSLProcessor) doesn't work on WebSphere 3.5.4

    XSL-1013: (Error) Error in expression: '/'
    I have encountered this problem. The problem seems to be the same as running the oraxsl in the command line using java. I tried using jre instead of java and including the -nojit (Disable JIT Compiler) and it worked. The problem now is how can I do the same thing in Websphere (like how can I disable the JIT compiler and why does it affect the XSL transformation?). Take note that my servlets works (XSL transformation) in my local workstation uing JSWDK 1.0.1 and JDK 1.2.2 but when migrated to Websphere 3.5.4 the XSL transformation doesn't work anymore.
    I would gladly appreciate if somebody can give me a concrete answer.
    Thanks,
    NDC

    XSL-1013: (Error) Error in expression: '/'
    I have encountered this problem. The problem seems to be the same as running the oraxsl in the command line using java. I tried using jre instead of java and including the -nojit (Disable JIT Compiler) and it worked. The problem now is how can I do the same thing in Websphere (like how can I disable the JIT compiler and why does it affect the XSL transformation?). Take note that my servlets works (XSL transformation) in my local workstation uing JSWDK 1.0.1 and JDK 1.2.2 but when migrated to Websphere 3.5.4 the XSL transformation doesn't work anymore.
    I would gladly appreciate if somebody can give me a concrete answer.
    Thanks,
    NDC

Maybe you are looking for

  • How to use Pivot function for group range in oracle SQL

    Hi, Good Morning !!! I need to show the data in the below format. There is 2 columns 1 is State and another one is rate. State     <100     100-199     200-299     300-399     400-499     500-599     600-699     700-799     800-899     900-999     >=

  • How to make more cells in one table by DataGridView

    Hello, I have a question, Firstly I'm using VB How can I make invoice by datagridview I'm trying to type customer information in the Textbox and Inventory Items in datagridview but the problem is datagrid give me one cell and I can type one inventory

  • How can I edit reading list on safari?

    How can I edit reading list on safari?

  • Reliability of the exported method calls in AM

    I am wondering if the exported methods in app module are reliable. That is, when the method calls to the exported methods in AM fails for any reason, it will keep retrying until the method call succeeds. Also the marshalled method invocation packet i

  • Why wont my macbook pro boot with external hard drives connected?

    After two years of uninterrupted success running my MBP with five external hard drives attached (two USB, two eSATA with LaCie Expresscard 34, one FireWire 800), my MacBook Pro with Mountain Lion 10.8.2 installed will not boot with the drives attache