NEWBIE JSP QUES

I'm really new at jsp, and have a frustratingly simple question. All I'm trying to do is get a .jsp page to display in internet explorer. So I create the file and put this in it:
<%
String test = "this is a test";
%>
<html>
<%=test%>
</html>
And nothing displays!!! I've also tried not using "Sting" before the variable, but it still shows nothing when I open the file in Internet Explorer. Any explanation would be appreciated.

all I did was download and install j2sdkee1.2.1 from java.sun.com. (already having jdk 1.2.2 on my system) and then ran j2ee.bat (in ROOT:\j2sdkee1.2.1\bin). This started the J2ee server. Then all I did was put my .jsp files in the ROOT:\j2sdkee1.2.1\public_html folder and point my browser to http://localhost:8000/<name of jsp>.jsp.
So do I need to get Tomcat?

Similar Messages

  • Newbie - JSP & bean shopping cart logic error?

    Hello,
    I am attempting to bulid a shopping cart facility on a JSP site that I am building.
    I am having difficulties adding an item to the basket.
    The page below (bookDetail.jsp) displays items for sale from a database. At the foot of the page, I have set up a hyperlink to add an item to a basket bean instance created in this page.
    What happens is the page will load correctly, when i hover the mouse over the hyperlink to add the item to the basket, the status bar shows the URL of the current page with the details of the book appended. This is what I want. But when I click the link, the page will only reload showing 20% of the content.
    Netbeans throws up no errors, neither does Tomcat, so I am assuming I have made a logical error somewhere.
    I have enclosed the Book class, and the ShoppingCart class for your reference.
    Any help would be really appreciated as I am at a loss here.
    Cheers.
    Edited highlights from bookDetail.jsp
    //page header importing 2 classes - Book and ShoppingCart
    <%@ page import="java.util.*, java.sql.*, com.shopengine.Book, com.shopengine.ShoppingCart" errorPage="errorpage.jsp" %>
    //declare variables to store data retrieved from database
    String rs_BookDetail_bookRef = null;
    String rs_BookDetail_bookTitle = null;
    String rs_BookDetail_author = null;
    String rs_BookDetail_price = null;
    //code that retrieves recordset data, displays it, and places it in variables shown above
    <%=(((rs_BookDetail_bookRef = rs_BookDetail.getString("book_ref"))==null || rs_BookDetail.wasNull())?"":rs_BookDetail_bookRef)%>
    <%=(((rs_BookDetail_author = rs_BookDetail.getString("author"))==null || rs_BookDetail.wasNull())?"":rs_BookDetail_author)%>
    <%=(((rs_BookDetail_bookTitle = rs_BookDetail.getString("book_title"))==null || rs_BookDetail.wasNull())?"":rs_BookDetail_bookTitle)%>
    <%=(((rs_BookDetail_price = rs_BookDetail.getString("price"))==null || rs_BookDetail.wasNull())?"":rs_BookDetail_price)%>
    //this link is to THIS PAGE to send data to server as request parameters in Key/Value pairs
    // this facilitates the add to basket function
    <a href="<%= response.encodeURL(bookDetail.jsp?title=
    "+rs_BookDetail_bookTitle+"
    &item_id=
    "+rs_BookDetail_bookRef +"
    &author="+rs_BookDetail_author +"
    &price=
    "+rs_BookDetail_price) %> ">
    <img src="images\addtobasket.gif" border="0" alt="Add To Basket"></a></td>
    // use a bean instance to store basket items
    <jsp:useBean id="basket" class="ShoppingCart" scope="session"/>
    <% String title = request.getParameter("title");
    if(title!=null)
    String item_id = request.getParameter("item_id");
    double price = Double.parseDouble(request.getParameter("price"));
    Book item = new Book(item_id, title, author, price);
    basket.addToBasket( item );
    %>
    ShoppingCart class that is used as a bean in bookDetail.jsp shown above
    package com.shopengine;
    //import packages
    import java.util.*;
    //does not declare explicit constructor which automatically creates a zero argument constructor
    //as this class will be instantiated as a bean
    public class ShoppingCart
    //using private instance variables as per JavaBean api
         private Vector basket;
         public ShoppingCart()
              basket = new Vector();
         }//close constructor
    //add object to vector
         public void addToBasket (Book book)
              basket.addElement(book);
         }//close addToBasket method
    //if strings are equal, delete object from vector
         public void deleteFromBasket (String foo)
    for(Enumeration enum = getBasketContents();
    enum.hasMoreElements();)
    //enumerate elements in vector
    Book item = (Book)enum.nextElement();
    //if BookRef is equal to Ref of item for deletion
    //then delete object from vector.
    if (item.getBookRef().equals(foo))
    basket.removeElement(item);
    break;
    }//close if statement
    }//close for loop
         }//close deleteFromBasket method
    //overwrite vector with new empty vector for next customer
         public void emptyBasket()
    basket = new Vector();
         }//close emptyBasket method
         //return size of vector to show how many items it contains
    public int getSizeOfBasket()
    return basket.size();
         }//close getSizeOfBasket method
    //return objects stored in Vector
         public Enumeration getBasketContents()
    return basket.elements();
         }//close getBasketContents method
         public double getTotalPrice()
    //collect book objects using getBasketContents method
    Enumeration enum = getBasketContents();
    //instantiate variable to accrue billng total for each enummeration
    double totalBillAmount;
    //instantiate object to store data for each enummeration
    Book item;
    //create a loop to add up the total cost of items in basket
    for (totalBillAmount=0.0D; enum.hasMoreElements(); totalBillAmount += item.getPrice())
    item = (Book)enum.nextElement();
    }//close for loop
    return totalBillAmount;
         }//close getTotalPrice method
    }//close shopping cart class
    Book Class that is used as an object model for items stored in basket
    package com.shopengine;
    import java.util.*;
    public class Book{
         //define variables
    private String bookRef, bookTitle, author;
         private double price;
    //define class
    public Book(String bookRef, String bookTitle, String author, double price)
    this.bookRef= bookRef;
    this.bookTitle=bookTitle;
    this.author=author;
    this.price=price;
    //create accessor methods
         public String getBookRef()
              return this.bookRef;
         public String getBookTitle()
              return this.bookTitle;
         public String getAuthor()
              return this.author;
         public double getPrice()
              return this.price;
    }//close class

    page will only reload showing 20% of the content.Im building some carts too and I had a similiar problem getting null values from the mysql database. Are you getting null values or are they just not showing up or what?
    On one of the carts I'm building I have a similiar class to yours called products that I cast onto a hashmap works alot better. Mine looks like this, maybe this is no help I don't know.......
    public class Product {
        /**An Item that is for sale.*/
          private String productID = "Missing";
          private String categoryID = "Missing";
          private String modelNumber = "Missing";
          private String modelName = "Missing";
          private String productImage = "Missing";
          private double unitCost;
          private String description = "Missing";
          public Product( 
                           String productID,
                           String categoryID,
                           String modelNumber,
                           String modelName,
                           String productImage,
                           double unitCost,
                           String description) {
                           setProductID(productID);
                           setCategoryID(categoryID);
                           setModelNumber(modelNumber);
                           setModelName(modelName);
                           setProductImage(productImage);
                           setUnitCost(unitCost);
                           setDescription(description);        
          public String getProductID(){
             return(productID);
          private void setProductID(String productID){
             this.productID = productID;
          public String getCategoryID(){
             return(categoryID);
          private void setCategoryID(String categoryID){
             this.categoryID = categoryID;
          public String getModelNumber(){
             return(modelNumber);
          private void setModelNumber(String modelNumber){
             this.modelNumber = modelNumber;
          public String getModelName(){
             return(modelName);
          private void setModelName(String modelName){
             this.modelName = modelName;
          public String getProductImage(){
             return(productImage);
          private void setProductImage(String productImage){
             this.productImage = productImage;
          public double getUnitCost(){
              return(unitCost);
          private void setUnitCost(double unitCost){
              this.unitCost = unitCost;
          public String getDescription(){
              return(description);
          private void setDescription(String description){
              this.description = description;

  • Newbie - JSP and TAG library problem

    I am trying to execute a JSP program on a server with
    jakarta-tomcat-4.1.29.
    Here is a program:
    <%@ taglib uri="testTagURL" prefix="testTagPrefix" %>
    <testTagPrefix:myFirstTag/>
    in web.xml I have definition:
    <taglib>
    <taglib-uri>testTagURL</taglib-uri>
    <taglib-location>/WEB-INF/tld/testTag.tld</taglib-location>
    </taglib>
    I have testTag.tld file located at: /WEB-INF/tld
    When I execute my program I am getting:
    org.apache.jasper.JasperException: File "/test-jsp/testTagURL" not
    found
    My question: how come my program is looking for "/test-jsp/testTagURL" and
    not for "/WEB-INF/tld/testTag.tld"?
    Thanks,
    Zalek

    means what it says.
    If you look in the file WEB-INF/displaytag.tld you'll see it
    has a definition for a custom tag, I'm guessing it's called column.
    The tld states that this tag has an attribute called "value". ie that
    in a jsp file you would write
       <display:column value="SomeSuperValue" /> However the java class that implements that custom tag
    does not have a setter method for value. ie. the class
    org.displaytag.tags.ColumnTag is missing the method
    public void setValue(String value) { .... }

  • Newbie:  jsp compile error w/ tomcat 5.0.19

    Hello there, this is my first time try to write something in jsp/ servlets, and i encounter a minor installation problem:
    using mdk linux with j2sdk1.4.2 (locate at /usr/local/), tomcat is also locate at /usr/local.
    I am able to see HelloServlet.java, and HelloWorld.html at http://localhost:8080/servlet/HelloServlet
    and http://localhost:8080/testing/HelloWorld.html
    but i'm unable to see HelloWorld.jsp at http://localhost:880/HellowWorld.jsp (my HelloWorld.html and HellowWorld.jsp are locate at the same dir)
    here's are the things i added in my /etc/profile so far:
    CATALINA_HOME="/usr/local/Tomcat"
    export CATALINA_HOME
    JAVA_HOME="/usr/local/j2sdk1.4.2"
    export JAVA_HOME
    JavaPath="/usr/local/j2sdk1.4.2/bin"
    export JavaPath
    PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
    export PKG_CONFIG_PATH
    CLASSPATH=$CLASSPATH:/usr/local/Tomcat/common/lib/servlet-api.jar:/usr/local/Tomcat/
    common/lib/jsp-api.jar:/home/allen/programming/j2ee/:./
    export CLASSPATH
    when do java -verison, i see:
    [root@localhost local]# java -version
    java version "1.4.2"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
    Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)
    when start tomcat, i got:
    [root@localhost bin]# ./startup.sh
    Using CATALINA_BASE: /usr/local/Tomcat
    Using CATALINA_HOME: /usr/local/Tomcat
    Using CATALINA_TMPDIR: /usr/local/Tomcat/temp
    Using JAVA_HOME: /usr/local/j2sdk1.4.2
    i thought i did everything that was told, yet i can't see jsp page on my browser, while i can see servlets and html,
    thank you for your time in advance ^_^

    sorry, it was a typo, yea...it was for http://localhost:8080/testing/Hello.jsp
    this morning, i copied "tool.jar" from j2sdk1.4.2 to my /usr/local/tomcat/common/lib, restarted, fire it up again using "./catalina.sh" just to see where the problems came from, and here's where the compile error occue:
    Compile failed; see the compiler error output for details.
            at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:978)
            at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:799)
            at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:387)
            at org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
            at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
            at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:553)
            at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
            at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
            at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:732)
            at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619)
            at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688)
            at java.lang.Thread.run(Thread.java:534)
    Mar 16, 2005 7:28:37 AM org.apache.jasper.compiler.Compiler generateClass
    SEVERE: Env: Compile: javaFileName=/usr/local/jakarta-tomcat-5.0.19/work/Catalina/localhost/_//org/apache/jsp/testing/Hello_jsp.java
        classpath=/usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/classes/:/usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/lib/catalina-root.jar:/usr/local/jakarta-tomcat-5.0.19/work/Catalina/localhost/_:/usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/classes/:/usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/lib/catalina-root.jar:/usr/local/jakarta-tomcat-5.0.19/shared/classes/:/usr/local/jakarta-tomcat-5.0.19/common/classes/:/usr/local/jakarta-tomcat-5.0.19/common/endorsed/xercesImpl.jar:/usr/local/jakarta-tomcat-5.0.19/common/endorsed/xmlParserAPIs.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/ant.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/commons-collections.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/commons-dbcp-1.1.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/commons-el.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/commons-pool-1.1.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/jasper-compiler.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/jasper-runtime.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/jmx.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/jsp-api.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/naming-common.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/naming-factory.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/naming-java.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/naming-resources.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/servlet-api.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/tools.jar:/usr/local/j2sdk1.4.2/lib/tools.jar:/usr/local/jakarta-tomcat-5.0.19/bin/bootstrap.jar:/usr/local/jakarta-tomcat-5.0.19/bin/commons-logging-api.jar:/usr/local/j2sdk1.4.2/jre/lib/ext/sunjce_provider.jar:/usr/local/j2sdk1.4.2/jre/lib/ext/dnsns.jar:/usr/local/j2sdk1.4.2/jre/lib/ext/ldapsec.jar:/usr/local/j2sdk1.4.2/jre/lib/ext/localedata.jar
        cp=/usr/local/j2sdk1.4.2/lib/tools.jar:/usr/local/Tomcat/bin/bootstrap.jar:/usr/local/Tomcat/bin/commons-logging-api.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/classes
        cp=/usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/lib/catalina-root.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/work/Catalina/localhost/_
        cp=/usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/classes
        cp=/usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/lib/catalina-root.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/shared/classes
        cp=/usr/local/jakarta-tomcat-5.0.19/common/classes
        cp=/usr/local/jakarta-tomcat-5.0.19/common/endorsed/xercesImpl.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/endorsed/xmlParserAPIs.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/ant.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/commons-collections.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/commons-dbcp-1.1.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/commons-el.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/commons-pool-1.1.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/jasper-compiler.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/jasper-runtime.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/jmx.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/jsp-api.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/naming-common.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/naming-factory.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/naming-java.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/naming-resources.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/servlet-api.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/tools.jar
        cp=/usr/local/j2sdk1.4.2/lib/tools.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/bin/bootstrap.jar
        cp=/usr/local/jakarta-tomcat-5.0.19/bin/commons-logging-api.jar
        cp=/usr/local/j2sdk1.4.2/jre/lib/ext/sunjce_provider.jar
        cp=/usr/local/j2sdk1.4.2/jre/lib/ext/dnsns.jar
        cp=/usr/local/j2sdk1.4.2/jre/lib/ext/ldapsec.jar
        cp=/usr/local/j2sdk1.4.2/jre/lib/ext/localedata.jar
        work dir=/usr/local/jakarta-tomcat-5.0.19/work/Catalina/localhost/_
        extension dir=/usr/local/j2sdk1.4.2/jre/lib/ext
        srcDir=/usr/local/jakarta-tomcat-5.0.19/work/Catalina/localhost/_
        include=org/apache/jsp/testing/Hello_jsp.java
    Mar 16, 2005 7:28:37 AM org.apache.jasper.compiler.Compiler generateClass
    SEVERE: Error compiling file: /usr/local/jakarta-tomcat-5.0.19/work/Catalina/localhost/_//org/apache/jsp/testing/Hello_jsp.java     [javac] Compiling 1 source file
        [javac] /usr/local/jakarta-tomcat-5.0.19/work/Catalina/localhost/_/org/apache/jsp/testing/Hello_jsp.java:48: cannot resolve symbol
        [javac] symbol  : class Data
        [javac] location: package util
        [javac]       out.print( new java.util.Data() );
        [javac]                               ^
        [javac] 1 error
    Mar 16, 2005 7:32:34 AM org.apache.jasper.compiler.Compiler generateClass
    looking over the compiler error, it seems to me tomcat is able to recongize /usr/local/j2sdk1.4 's location. which i assume it implied JAVA_HOME and CLASSPATH are setup correctly.
    Dunno why it just won't display jsp pages and kept saying compiler error...
    thank you for helping

  • Newbie jsp question

    Hello, I am coming from php, and I was looking for a server side language I could use, but would also hide the source code(meaning i can give people a binary to put on there servers liek with regular java,c,or c++). I searched around for information reagrding this and jsp, and I am unable to tell if i can just give the jsp server a compiled app to run. I am interestd in writing some simple webapps such as a webmial interface, do you think that js pis too overboard for a project like that? Do you guys know of any other server side langauges that might be more useful to me in a situation like that, but can also run off compiled programs instead of reading a script like php and perl? Sincerely,
    Jason

    java binaries (bytecode) do not hide implementation. All that is lost in compiling java sources are tho comments and variable names. Even more, if compiled without the parameter -g:none, some debuging info is left in the bytecode, so it is possible to determine the name of the local variables. For someone who is familiar to java, reading a decompiled source is not very difficult.

  • Newbie jsp/javabean

    Hello,
    I'm trying to do my first web app. First I must log a user from a server database. I thought using JSP to display html pages and javabean to contain logic and functions. In my first page there are a login form with a submit button. How can I call a javabean after pressing button and then read a validate property value from it to login again or pass to next form? To call logic procedures must call setproperty method and do anything inside?
    Thanks,
    Julian.

    You do realize that Java runs on the server don't you? So it you want use java to validate, you would have to do this:
    1) submit username + password to a JSP or servlet
    2) inside that JSP or servlet, read the values from the request and validate them using your bean
    3a) if correct, go on
    3b) if not correct, display error message and show login form again
    How to call the javabean depends on what you are using. If you are using scriptlets, simply call the method as if it were a regular java class. If you are using JSTL, you should read up on that right now because learning that by just coding away is far to difficult. Check out the book you can download for free on this website.
    http://www.coreservlets.com

  • [Newbie] JSP precompilation & dumps

    Hey there,
    I've just gotten started on my first JSP project. I've done some extensive googling, but can't work out the following two issues.
    1) One of my pages, takes around 10-15 seconds to load in the browser. I'm assuming thats because tomcat is putting it through some compilation process (does a JSP page get dynamically converted to a servlet at runtime?) This is not just on the first access, but any subsequent request. There is only a few db queries and some XML output using XJTL.
    In $tomcat\conf\web.xml I've set
    <init-param>
    <param-name>development</param-name>
    <param-value>false</param-value>
    </init-param>
    <init-param>
    <param-name>checkInterval</param-name>
    <param-value>60</param-value>
    </init-param>
    under the JSP servlet element, but it seems to make no difference.
    2) I' m an experienced ColdFusion developer, so alot of the tag based concepts are the same, but I'm finding the datatypes are a lot more focused, where the CF datatypes are very generic and no real casting is required. In CF there is a "CFDUMP" tag which you can throw any variable at and it will recurisvely write it out, no matter how deep the array or structure. Is there anything similar for JSP?
    Any help is appreciated.
    Cheers,
    Jon

    1) >This is not just on the first access, but any subsequent request.
    The jsp transforms to a servlet on first request. The servlet is compiled and executed and its this output that's streamed to the browser. The keyword is 'first request' which in turn means the first access may be a bit slow (& which can be overcome by precompilation), but if subsequent access to the resource still takes a long time, you have other problems.
    The check interval in tomcat's web.xml is to address a wholly different issue. Its the interval that the container checks for newer versions of the jsp (in a development environment) and will not solve your problem.
    2) Hmmm, you want to output readable data when you print out a variable ? For user defined datatypes, you could override the toString() method in the class.
    cheers,
    ram.

  • Newbie :  JSP session problem after reload with IE refresh button.

    Hi,
    I had an issue with JSP reloading using tomcat 4.* and IE.
    I have a jsp1.jsp is opened in two different IE windows(one by one). Once i refreshed using IE refresh button from the first window, its loaded with second windows session details. Its changess whole http request object with second window.
    Am not sure , why its happening ? Could anybody shed light on this ?
    Thanks and Regards
    PV

    Hello,
    No, am not saving any form details . But i noticed session id is changing completely for the first window once i loads frame on the second window.
    javascript:alert(document.cookie) Above scriptlet (IE address bar) returns session id from the second window rather than current window without refreshing, that means, its removed whole request completely or somehow manipulated previous sessions. Can anybody explain this behaviour ?
    Thanks

  • Newbie JSP/Servlet general question

    Hi,
    I am currently studying the life cycle of a JSP page from the Java EE 5 Tutorial (http://java.sun.com/javaee/5/docs/tutorial/doc/bnahe.html). This document says that: "+If an instance of the JSP page’s servlet does not exist, the container loads the JSP page’s servlet class, instantiates an instance of the servlet class, initializes the servlet instance by calling the jspInit method+".
    My two questions are:
    i) Does this JSP servlet implement the HttpJspPage interface defined in javax.servlet.jsp?
    ii) Does Struts and Spring MVC provide such JSP servlet Java classes implementations or are these part of other packages? If not, which packages offer such implementations?
    Thanks,
    J.

    Jrm wrote:
    Hi,
    I am currently studying the life cycle of a JSP page from the Java EE 5 Tutorial (http://java.sun.com/javaee/5/docs/tutorial/doc/bnahe.html). This document says that: "+If an instance of the JSP page&#146;s servlet does not exist, the container loads the JSP page&#146;s servlet class, instantiates an instance of the servlet class, initializes the servlet instance by calling the jspInit method+".
    My two questions are:
    i) Does this JSP servlet implement the HttpJspPage interface defined in javax.servlet.jsp?Yes.
    >
    ii) Does Struts and Spring MVC provide such JSP servlet Java classes implementations or are these part of other packages? If not, which packages offer such implementations?No, the implementation for the JSP servlet is usually provided by the Servlet Container, not a framework, since the Servlet Container is responsible for creating and compiling the JSP.
    >
    Thanks,
    J.

  • Newbie: JSP Setup (WBL6) ? _ TIA

    Hello, I am trying to test a simple JSP page i created ( JSP code =
              "<%= "Hello" %>", but i am getting an error page (Error Message
              described below)
              I probably didn't set up correctly but I couldn't find anything on the
              edocs about setting JSP.
              This is what I did:
              - Install Weblogic 6
              - Found the path to index.html (http://localhost:7001/index.html)
              - Created the sample JSP page and placed it on the same path as
              INDEX.HTML
              - Replaced index.html for mypage.JSP
              (http://localhost:7001/mypage.jsp)
              - Received error message.
              - Thanks in advance for all your help
              *** ERROR MESSAGE STARTS ******
              Compilation of
              'D:\bea\wlserver6.0\config\mydomain\applications\DefaultWebApp_myserver\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp_myserver\jsp_servlet\_001.java'
              failed:
              D:\bea\wlserver6.0\config\mydomain\applications\DefaultWebApp_myserver\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp_myserver\jsp_servlet\_001.java
              error=2
              Full compiler error(s):
              java.io.IOException: CreateProcess: javac -classpath
              D:\bea\wlserver6.0\config\mydomain\applications\DefaultWebApp_myserver;D:\bea\wlserver6.0\config\mydomain\applications\DefaultWebApp_myserver\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp_myserver;d:\bea\jdk130\jre\lib\rt.jar;d:\bea\jdk130\jre\lib\i18n.jar;d:\bea\jdk130\jre\lib\sunrsasign.jar;d:\bea\jdk130\jre\classes;.;d:\bea\wlserver6.0\lib\weblogic_sp.jar;d:\bea\wlserver6.0\lib\weblogic.jar;null
              -d
              D:\bea\wlserver6.0\config\mydomain\applications\DefaultWebApp_myserver\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp_myserver
              D:\bea\wlserver6.0\config\mydomain\applications\DefaultWebApp_myserver\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp_myserver\jsp_servlet\_001.java
              error=2
                   at java.lang.Win32Process.create(Native Method)
                   at java.lang.Win32Process.<init>(Win32Process.java:66)
                   at java.lang.Runtime.execInternal(Native Method)
                   at java.lang.Runtime.exec(Runtime.java:551)
                   at java.lang.Runtime.exec(Runtime.java:477)
                   at java.lang.Runtime.exec(Runtime.java:443)
                   at weblogic.utils.Executable.exec(Executable.java:144)
                   at weblogic.utils.Executable.exec(Executable.java:108)
                   at
              weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:555)
                   at
              weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:354)
                   at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:359)
                   at
              weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:180)
                   at
              weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:148)
                   at
              weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:306)
                   at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:208)
                   at
              weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:1265)
                   at
              weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1631)
                   at
              weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
                   at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              ********* ERROR MESSAGE ENDS ************************
              

    This might sound very silly, but when i download tomcat? do I need to upload that to my web space? Or jsp pages just won't work if my web space provider didn't offer that?
    Do i need to install tomcat so that I can view it? or others can view it?
    Sorry for the silly questions, but I am just so confused right now. Thanks for all the help.

  • Newbie: JSP - JSPX

    I am trying to create an app in jdeveloper. after following examples with JSP (pages), i got a few pages up and running. My pages were a combination of html with a few buttons for navigation, with the html formatted via CSS - pretty simple stuff. Now I need to add some fairly complex interface components, and I have read that it is "suggested" that developers use JSPX (documents as opposed to pages) when they are going to use ADF components.
    So I thought I would begin again but with JSPX instead of JSP - but I cannot get it to make sense... If I include html elements (eg <div id="anId"> for formatting, and plain text with links included some places) - these will not be well formed XML elements (?), and they do not show in the development environment's design view - however they appear when I run/deploy. Maybe this is just a fluke?
    Am I missing something?? how do I use html elements (text, links, layout etc) in JSPX? all the examples I find have bound fields to display information - but this surely cannot always be the best way to show basic information.
    Should I use a combination of JSP and JSPX (JSP for the simple pages that are mostly info, links (html), and use JSPX when i want heavier app stuff)???
    any comments / tips / links are appreciated...
    /caj

    thanks for you comments! I actually got this working myself before reading your relpy, but I did extactly what you suggested - so it was great to get a confirmation that I am on the right track...
    I just got a bit too caught up in using adf:document and panel pages, like in oracles SRDemo app (these were much too complex for my initial needs). I am now creating simpler pages OK, hopefully things will go smoothy when I come to the pages with more complex structures (tree menu with a work area that changes based on the chosen branch).
    I have now come to another issue (with backing beans), which I will no post in a new post!
    thanks!!!
    /caj

  • NEWBIE JSP Deployment Problems

    I know this is will probly bore to some of you but I'm trying to evalutate this software.
    I created a test JSP via the wizard and ran it in Jdev ok. Deployed and Copied the files to the Apache web server provided with 8.1.7. Ran on browser and got this error:
    java.lang.RuntimeException: JSP Registry could not locate runtime property file:....
    I included the business classes but apparently I'm still missing something...
    I have been searching for documentation on this error but not much luck so far...

    I have deployed a JSP with BC4J Application on an Oracle IAS and it works fine, but to do it i had to include a path to the .jar file that contains my classes in Jserv.properties
    When i need to change, add or manipulate something in the jar file or include a new jar file, i have to shut down the service because while active, the files that are being pointed by the conf file become locked... I have read something about "zones" and i have no idea about apache or OracleJSP configuration. I began yesterday to read the JavaServer Pages Developer4s Guide and Reference... But it has 420 pages and i will last a lot till i find what i4m looking for.
    If you can explain me the way you make your jar file accesible by the system in a correct way or the pages in which it is explained, please, make me know.

  • Newbie ACE Ques:

    Hi
    Cat6k
    "sup-bootdisk:s72033-ipservicesk9-mz.122-18.SXF8.bin"
    ACE10-6500-K9 with 3.0(0)A1(3b)
    What is the recommend way for session persistence or if no recommend, what do most folks use? IP-Source-Address, Cookie injection from ACE or Cookie injection from the WebServers
    I am testin IP-Source-address. Any body can post sample configs?

    First UPGRADE.
    A1(3b) is DEAD !!!
    Go to A2(1.1) as soon as possible.
    The best sticky method for HTTP traffic is most probably cookie injection from ACE.
    But more CPU intensive than sticky source-ip.
    Gilles.

  • Newbie: Advanced Queing sample...

    Hello,
    I'm new to Oracle AQ, so I'm researching whether or not this is what we want to use - we would like to setup a messaging queue to be accessed using web services and soap calls via the internet.
    I see the advanced queuing sample for Oracle 9i, but we have installed the Oracle 10g database - I'm wondering if I can just install and run that sample as is? Or is their a better sample out there I can reference for the web service wrappers around the enqueue/dequeue messages, and how to set that up?
    Can anyone point me in the right direction for a good sample app to reference for the developing the client app for referencing Oracle AQ?
    Thanks,
    Greg

    You have to install the samples from the companion disk or download, but the samples are older than 10g. Also read the docs on this and you may find some answers to what you need to do.
    ben

  • No me funciona el Response Urgente que te cagas

    Me da este error:
    Servlet API error : send Error with commited buffer
    Es urgente mis huevos dependen de ello.

    Ver�s resulta que estoy trabajando con un servidor Tomcat 3.2.1
    Y sin motivo aparente el maldito se caer sin previo aviso. He revisado TODAS la conexiones y esta se cierran correctamente. Cierro todos los statement, los resultSet, las llamada a procedimientos almacenados,... Todo lo cierro todo, y el maldito se sigue callendo sin mostrar un patr�n. Usamos el Poolman.jar como pool de conexiones. Y lo �nico 'raro' que he hecho, ha sido crearme unos tags de jsp que se lanzan en todas las p�ginas. No se me ocurre que puede ser. Sabr�as a que se puede deber. Much�simas gracias
    Un saludo.

Maybe you are looking for

  • LR shows images strange after videocard update.

    I had a videocard update, after that, the new pictures that I imported on my computer, showed strange on my explorer. I also imported the pictures in LR and then the pictures looked like this (the same as they showed in my explorer). [url=http://s112

  • My app store not open, my app store not open

    No abre la app store , me envia a ITUNE .

  • Plsql_trace_events

    Hi, under sys I've runned the script tracetab.sql, which has creted the two tables : PLSQL_TRACE_EVENTS and PLSQL_TRACE_RUNS. after that i grant the necessary privileges (under sys): GRANT DELETE, INSERT, SELECT ON SYS.PLSQL_TRACE_EVENTS TO HR; GRANT

  • Why can't I increase the cache size in FF 4?

    OK, first of all, to be honest I really don't like FF 4. I see absolutely no advantages over the previous versions and I can't find anything to like about FF 4.. One big and annoying factor (besides the how UI and layout) is why can't I increase the

  • What is flex appilcation error in VC?

    hi, please iam facing a problem in VC while deploying my application,the error is *Error in compiling Flex application (1). Consult log file for details*so please frds help me out of this problem Thanks KISHORE.